imag-counter: Replace .err().unwrap() with .unwrap_err()

This commit is contained in:
Matthias Beyer 2016-04-17 21:07:14 +02:00
parent ad18fdd604
commit da3b463ff0
2 changed files with 3 additions and 3 deletions

View file

@ -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());
}

View file

@ -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);
}
};