Remove unused deref() call

This commit is contained in:
Matthias Beyer 2016-04-21 13:19:01 +02:00
parent 985d273787
commit 169d835e22

View file

@ -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))))
})
})