chore: fix Clippy lints

This commit is contained in:
Harsh Shandilya 2023-08-25 03:39:55 +05:30
parent 969e158b01
commit ea7b11c3ff
No known key found for this signature in database
2 changed files with 5 additions and 5 deletions

View File

@ -41,6 +41,6 @@ mod test {
#[test]
fn cli_assert() {
<Opts as clap::CommandFactory>::command().debug_assert()
<Opts as clap::CommandFactory>::command().debug_assert();
}
}

View File

@ -40,12 +40,12 @@ fn main() -> Result<()> {
if let Some(val) = opts.output {
let write_file = File::create(val).unwrap();
let mut writer = BufWriter::new(&write_file);
match write!(&mut writer, "{}", contents) {
match write!(&mut writer, "{contents}") {
Ok(_) => {}
Err(e) => eprintln!("{}", e),
Err(e) => eprintln!("{e}"),
};
} else {
println!("{}", contents);
println!("{contents}");
};
Ok(())
}
@ -67,7 +67,7 @@ fn parse_sources_config_file(filepath: &str) -> HashMap<String, Source> {
);
});
} else {
eprintln!("Problem opening file: {}", filepath);
eprintln!("Problem opening file: {filepath}");
};
list
}