Remove unused deref() call
This commit is contained in:
parent
cb3683940e
commit
985d273787
1 changed files with 1 additions and 2 deletions
|
@ -1,6 +1,5 @@
|
|||
use std::io::stdout;
|
||||
use std::io::Write;
|
||||
use std::ops::Deref;
|
||||
|
||||
use lister::Lister;
|
||||
use result::Result;
|
||||
|
@ -28,7 +27,7 @@ impl Lister for PathLister {
|
|||
use error::ListErrorKind as LEK;
|
||||
|
||||
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| {
|
||||
if self.absolute {
|
||||
pb.canonicalize().map_err(|e| LE::new(LEK::FormatError, Some(Box::new(e))))
|
||||
|
|
Loading…
Reference in a new issue