From da3b463ff007b78921fa0e78d2ed3eab8255f1e8 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 17 Apr 2016 21:07:14 +0200 Subject: [PATCH] imag-counter: Replace .err().unwrap() with .unwrap_err() --- imag-counter/src/list.rs | 4 ++-- imag-counter/src/main.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/imag-counter/src/list.rs b/imag-counter/src/list.rs index 2d1c80bb..b7276957 100644 --- a/imag-counter/src/list.rs +++ b/imag-counter/src/list.rs @@ -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()); } diff --git a/imag-counter/src/main.rs b/imag-counter/src/main.rs index 964556e3..538149dc 100644 --- a/imag-counter/src/main.rs +++ b/imag-counter/src/main.rs @@ -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); } };