Use error variables directly in the format! string

This commit is contained in:
Martin Frost 2023-02-13 21:37:33 +01:00
parent 7668fefbb2
commit e932c00e85
1 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ pub fn get_available_coauthors() -> BTreeMap<String, Author> {
match parse_coauthors_file() {
Ok(coauthors) => coauthors,
Err(e) => {
eprintln!("{}", e);
eprintln!("{e:?}");
BTreeMap::new()
}
}
@ -105,7 +105,7 @@ pub fn write_coauthors_file(authors: BTreeMap<String, Author>) {
match fs::write(coauthors_file_path(), json_data) {
Ok(_) => {}
Err(e) => {
eprintln!("Error writing git-coauthors file: {:?}", e);
eprintln!("Error writing git-coauthors file: {e:?}");
process::exit(1);
}
}