Remove unused deref() call

This commit is contained in:
Matthias Beyer 2016-04-21 13:18:22 +02:00
parent cb3683940e
commit 985d273787

View file

@ -1,6 +1,5 @@
use std::io::stdout; use std::io::stdout;
use std::io::Write; use std::io::Write;
use std::ops::Deref;
use lister::Lister; use lister::Lister;
use result::Result; use result::Result;
@ -28,7 +27,7 @@ impl Lister for PathLister {
use error::ListErrorKind as LEK; use error::ListErrorKind as LEK;
entries.fold(Ok(()), |accu, entry| { entries.fold(Ok(()), |accu, entry| {
accu.and_then(|_| Ok(entry.deref().get_location().clone())) accu.and_then(|_| Ok(entry.get_location().clone()))
.and_then(|pb| { .and_then(|pb| {
if self.absolute { if self.absolute {
pb.canonicalize().map_err(|e| LE::new(LEK::FormatError, Some(Box::new(e)))) pb.canonicalize().map_err(|e| LE::new(LEK::FormatError, Some(Box::new(e))))