Refactor: changed name of error, other -> err

This commit is contained in:
Óscar M. Lage 2021-11-19 18:33:38 +01:00
parent 1a032eda8f
commit a16fdd3c5f

View File

@ -91,7 +91,7 @@ fn main() {
// println!("{:#?}", added); // println!("{:#?}", added);
match added.status() { match added.status() {
reqwest::StatusCode::OK => println!("OK"), reqwest::StatusCode::OK => println!("OK"),
other => println!("KO: {:?}, something happened", other), err => println!("KO: {:?}, something happened", err),
} }
} }
@ -125,7 +125,7 @@ fn main() {
let added = stamp.add(&config_file); let added = stamp.add(&config_file);
match added.status() { match added.status() {
reqwest::StatusCode::OK => println!("OK"), reqwest::StatusCode::OK => println!("OK"),
other => println!("KO: {:?}, something happened", other), err => println!("KO: {:?}, something happened", err),
} }
} }
} }
@ -144,7 +144,7 @@ fn main() {
let stopped = stamp.stop(&config_file); let stopped = stamp.stop(&config_file);
match stopped.status() { match stopped.status() {
reqwest::StatusCode::OK => println!("OK"), reqwest::StatusCode::OK => println!("OK"),
other => println!("KO: {:?}, something happened", other), err => println!("KO: {:?}, something happened", err),
} }
} }
else if update == 1 { else if update == 1 {