From c8e5ea49ce05293268a586f082c2e5c4ee50bdde Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 17 Apr 2016 21:07:47 +0200 Subject: [PATCH] imag-tag: Replace .err().unwrap() with .unwrap_err() --- imag-tag/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/imag-tag/src/main.rs b/imag-tag/src/main.rs index 2b6201dc..e1a35a34 100644 --- a/imag-tag/src/main.rs +++ b/imag-tag/src/main.rs @@ -32,7 +32,7 @@ fn main() { rt.unwrap() } else { println!("Could not set up Runtime"); - println!("{:?}", rt.err().unwrap()); + println!("{:?}", rt.unwrap_err()); exit(1); } }; @@ -127,7 +127,7 @@ fn list(id: &str, rt: &Runtime) { if entry.is_err() { debug!("Could not retrieve '{:?}' => {:?}", id, path); warn!("Could not retrieve entry '{}'", id); - trace_error(&entry.err().unwrap()); + trace_error(&entry.unwrap_err()); exit(1); } let entry = entry.unwrap(); @@ -146,7 +146,7 @@ fn list(id: &str, rt: &Runtime) { let tags = entry.get_tags(); if tags.is_err() { - trace_error(&tags.err().unwrap()); + trace_error(&tags.unwrap_err()); exit(1); } let tags = tags.unwrap();