summaryrefslogtreecommitdiffstats
path: root/libimagentrylist
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2016-04-21 13:18:22 +0200
committerMatthias Beyer <mail@beyermatthias.de>2016-04-21 13:18:22 +0200
commit985d2737872adc2a465b4d4a549560c8f5052321 (patch)
tree18eaf13ef6e23b738557a16cb960548521bf735b /libimagentrylist
parentcb3683940e7f97a40f88d04b5816e816d8bae5eb (diff)
Remove unused deref() call
Diffstat (limited to 'libimagentrylist')
-rw-r--r--libimagentrylist/src/listers/path.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/libimagentrylist/src/listers/path.rs b/libimagentrylist/src/listers/path.rs
index 285802e2..0f1deac5 100644
--- a/libimagentrylist/src/listers/path.rs
+++ b/libimagentrylist/src/listers/path.rs
@@ -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))))