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

This commit is contained in:
Matthias Beyer 2016-04-17 21:07:57 +02:00
parent c8e5ea49ce
commit c1b4ce55b5

View file

@ -54,7 +54,7 @@ fn main() {
rt.unwrap() rt.unwrap()
} else { } else {
println!("Could not set up Runtime"); println!("Could not set up Runtime");
println!("{:?}", rt.err().unwrap()); println!("{:?}", rt.unwrap_err());
exit(1); // we can afford not-executing destructors here exit(1); // we can afford not-executing destructors here
} }
}; };
@ -102,7 +102,7 @@ fn main() {
let entry = load_entry(entry_id, entry_version, &rt); let entry = load_entry(entry_id, entry_version, &rt);
if entry.is_err() { if entry.is_err() {
trace_error(&entry.err().unwrap()); trace_error(&entry.unwrap_err());
exit(1); // we can afford not-executing destructors here exit(1); // we can afford not-executing destructors here
} }
let entry = entry.unwrap(); let entry = entry.unwrap();