1
0
mirror of https://github.com/sharkdp/bat synced 2026-08-10 20:01:45 +00:00

fix some clippy warnings

This commit is contained in:
MarcoIeni
2020-11-05 22:29:04 +01:00
committed by David Peter
parent 51463a4b41
commit 43b2ee5e71
7 changed files with 11 additions and 25 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ pub fn get_args_from_config_file() -> Result<Vec<OsString>, shell_words::ParseEr
.ok()
.map(|content| get_args_from_str(&content))
.transpose()?
.unwrap_or_else(|| vec![]))
.unwrap_or_else(Vec::new))
}
pub fn get_args_from_env_var() -> Option<Result<Vec<OsString>, shell_words::ParseError>> {