summaryrefslogtreecommitdiffstats
path: root/src/bin/bat/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/bat/config.rs')
-rw-r--r--src/bin/bat/config.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/bat/config.rs b/src/bin/bat/config.rs
index 659f67b3..4b4e8ff2 100644
--- a/src/bin/bat/config.rs
+++ b/src/bin/bat/config.rs
@@ -91,7 +91,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::new))
+ .unwrap_or_default())
}
pub fn get_args_from_env_var() -> Option<Result<Vec<OsString>, shell_words::ParseError>> {