Refactor: changed name of error, other -> err
This commit is contained in:
parent
1a032eda8f
commit
a16fdd3c5f
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user