From 169d835e220c99220931c292c21b0c08746a6a74 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Thu, 21 Apr 2016 13:19:01 +0200 Subject: [PATCH] Remove unused deref() call --- libimagentrylist/src/listers/core.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libimagentrylist/src/listers/core.rs b/libimagentrylist/src/listers/core.rs index e7c5bb84..8c7ccf72 100644 --- a/libimagentrylist/src/listers/core.rs +++ b/libimagentrylist/src/listers/core.rs @@ -1,6 +1,5 @@ use std::io::stdout; use std::io::Write; -use std::ops::Deref; use lister::Lister; use result::Result; @@ -30,7 +29,7 @@ impl<'a> Lister for CoreLister<'a> { entries.fold(Ok(()), |accu, entry| { accu.and_then(|_| { - write!(stdout(), "{:?}\n", (self.lister)(entry.deref())) + write!(stdout(), "{:?}\n", (self.lister)(&entry)) .map_err(|e| LE::new(LEK::FormatError, Some(Box::new(e)))) }) })