Skip to content

Commit

Permalink
fix new clippy
Browse files Browse the repository at this point in the history
Signed-off-by: Chmouel Boudjnah <chmouel@chmouel.com>
  • Loading branch information
chmouel committed Dec 19, 2022
1 parent b90c868 commit 16e5bd8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ pub fn extract_info(rawline: &str, config: &Config) -> HashMap<String, String> {
others.push_str(crate::utils::convert_pac_provider_to_fa_icon(
p.other["provider"].as_str().unwrap(),
));
msg.insert("others".to_string(), format!("{} ", others));

msg.insert("others".to_string(), format!("{others} "));
}
}

Expand Down Expand Up @@ -260,7 +261,7 @@ pub fn read_from_stdin(config: &Arc<Config>) {
// read from file and output to the writer. This makes it easy to unittest
pub fn read_a_file(config: &Config, filename: &str, writeto: &mut dyn io::Write) {
let file = File::open(filename).map_err(|e| {
eprintln!("file {}, {}", filename, e);
eprintln!("file {filename}, {e}");
std::process::exit(1);
});
let buf_reader = BufReader::new(file.unwrap());
Expand Down

0 comments on commit 16e5bd8

Please sign in to comment.