imag-counter: Replace .err().unwrap() with .unwrap_err()
This commit is contained in:
parent
ad18fdd604
commit
da3b463ff0
2 changed files with 3 additions and 3 deletions
|
@ -15,11 +15,11 @@ pub fn list(rt: &Runtime) {
|
|||
let value = c.value();
|
||||
|
||||
if name.is_err() {
|
||||
trace_error(&name.err().unwrap());
|
||||
trace_error(&name.unwrap_err());
|
||||
} else {
|
||||
|
||||
if value.is_err() {
|
||||
trace_error(&value.err().unwrap());
|
||||
trace_error(&value.unwrap_err());
|
||||
} else {
|
||||
println!("{} - {}", name.unwrap(), value.unwrap());
|
||||
}
|
||||
|
|
|
@ -59,7 +59,7 @@ fn main() {
|
|||
rt.unwrap()
|
||||
} else {
|
||||
println!("Could not set up Runtime");
|
||||
println!("{:?}", rt.err().unwrap());
|
||||
println!("{:?}", rt.unwrap_err());
|
||||
exit(1);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue