Fix clippy warnings with latest stable
This commit is contained in:
parent
c435c1d557
commit
ee5b90653b
|
|
@ -25,7 +25,7 @@ fn main() {
|
||||||
|
|
||||||
fn list_coauthors() {
|
fn list_coauthors() {
|
||||||
for (abbrev, author) in &get_available_coauthors() {
|
for (abbrev, author) in &get_available_coauthors() {
|
||||||
println!("{}\t{}", abbrev, author);
|
println!("{abbrev}\t{author}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -34,7 +34,7 @@ fn override_main_author(initials: &str) {
|
||||||
match all_authors.get(initials) {
|
match all_authors.get(initials) {
|
||||||
Some(new_main_author) => set_main_author(new_main_author),
|
Some(new_main_author) => set_main_author(new_main_author),
|
||||||
None => {
|
None => {
|
||||||
eprintln!("Error: author with initials {} not found", initials);
|
eprintln!("Error: author with initials {initials} not found");
|
||||||
process::exit(1);
|
process::exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -51,11 +51,11 @@ fn write_coauthors_to_gitmessage_file(coauthor_initials: &[String]) {
|
||||||
Ok(_) => {
|
Ok(_) => {
|
||||||
println!("{}", get_main_author());
|
println!("{}", get_main_author());
|
||||||
for author in &coauthors {
|
for author in &coauthors {
|
||||||
println!("{}", author);
|
println!("{author}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
eprintln!("Error writing to .gitmessage template: {}", e);
|
eprintln!("Error writing to .gitmessage template: {e}");
|
||||||
process::exit(1);
|
process::exit(1);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -69,7 +69,7 @@ fn select_coauthors(coauthor_initials: &[String]) -> Vec<Author> {
|
||||||
match all_coauthors.get(initial) {
|
match all_coauthors.get(initial) {
|
||||||
Some(coauthor) => coauthors.push(coauthor.clone()),
|
Some(coauthor) => coauthors.push(coauthor.clone()),
|
||||||
None => {
|
None => {
|
||||||
eprintln!("Error: author with initials {} not found", initial);
|
eprintln!("Error: author with initials {initial} not found");
|
||||||
process::exit(1);
|
process::exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ use std::fs::File;
|
||||||
fn main() {
|
fn main() {
|
||||||
let _opt = cli::GitSolo::parse();
|
let _opt = cli::GitSolo::parse();
|
||||||
let main_author = get_main_author();
|
let main_author = get_main_author();
|
||||||
println!("{}", main_author);
|
println!("{main_author}");
|
||||||
|
|
||||||
with_gitmessage_template_path_or_exit(|path| {
|
with_gitmessage_template_path_or_exit(|path| {
|
||||||
let _template = File::create(path);
|
let _template = File::create(path);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue