diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-04-17 21:07:57 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-04-20 21:45:26 +0200 |
commit | c1b4ce55b5d1a68bd0183261b47cb092c0af8671 (patch) | |
tree | e3e650f10142f04bebc28fa7a181b50c7837f35c /imag-view | |
parent | c8e5ea49ce05293268a586f082c2e5c4ee50bdde (diff) |
imag-view: Replace .err().unwrap() with .unwrap_err()
Diffstat (limited to 'imag-view')
-rw-r--r-- | imag-view/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/imag-view/src/main.rs b/imag-view/src/main.rs index 1f18ca17..f12e639d 100644 --- a/imag-view/src/main.rs +++ b/imag-view/src/main.rs @@ -54,7 +54,7 @@ fn main() { rt.unwrap() } else { println!("Could not set up Runtime"); - println!("{:?}", rt.err().unwrap()); + println!("{:?}", rt.unwrap_err()); exit(1); // we can afford not-executing destructors here } }; @@ -102,7 +102,7 @@ fn main() { let entry = load_entry(entry_id, entry_version, &rt); if entry.is_err() { - trace_error(&entry.err().unwrap()); + trace_error(&entry.unwrap_err()); exit(1); // we can afford not-executing destructors here } let entry = entry.unwrap(); |