diff --git a/src/config/loading/mod.rs b/src/config/loading/mod.rs index 7bd8d27624afd..f7ac2d4c648bc 100644 --- a/src/config/loading/mod.rs +++ b/src/config/loading/mod.rs @@ -69,17 +69,15 @@ pub fn merge_path_lists( /// Expand a list of paths (potentially containing glob patterns) into real /// config paths, replacing it with the default paths when empty. pub fn process_paths(config_paths: &[ConfigPath]) -> Option> { - let default_paths = default_config_paths(); - let starting_paths = if !config_paths.is_empty() { - config_paths + config_paths.to_owned() } else { - &default_paths + default_config_paths() }; let mut paths = Vec::new(); - for config_path in starting_paths { + for config_path in &starting_paths { let config_pattern: &PathBuf = config_path.into(); let matches: Vec = match glob(config_pattern.to_str().expect("No ability to glob"))