fix some pedantic lints

This commit is contained in:
steven-omaha
2023-02-14 14:02:37 +01:00
parent d468163afd
commit 38a44f1745
6 changed files with 7 additions and 12 deletions
+2 -3
View File
@@ -25,9 +25,8 @@ impl Config {
if e.kind() == ErrorKind::NotFound {
println!("creating default config under {}", file.to_string_lossy());
return Self::use_default_and_save_to(file);
} else {
bail!("unexpected error occured: {e:?}");
};
}
bail!("unexpected error occured: {e:?}");
}
let content = from_file.expect("we already handled that error");