Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Its-Just-Nans authored and bootandy committed Jan 15, 2025
1 parent eeb6865 commit 609fc1e
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,16 +258,15 @@ pub fn get_config(conf_path: Option<String>) -> Config {
Some(path_str) => {
let path = Path::new(&path_str);
if path.exists() {
match Config::from_config_file(&path) {
match Config::from_config_file(path) {
Ok(config) => return config,
Err(e) => eprintln!(
"Ignoring invalid config file ({}): {:?}",
&path.display(),
e
),
Err(e) => {
eprintln!("Ignoring invalid config file '{}': {}", &path.display(), e)
}
}
} else {
eprintln!("Config file {:?} doesn't exists", &path.display());
}
eprintln!("Config file {:?} doesn't exists", &path.display());
}
None => {
if let Some(home) = directories::BaseDirs::new() {
Expand Down

0 comments on commit 609fc1e

Please sign in to comment.