diff options
Diffstat (limited to 'libimagentrylist/src/listers/line.rs')
-rw-r--r-- | libimagentrylist/src/listers/line.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libimagentrylist/src/listers/line.rs b/libimagentrylist/src/listers/line.rs index a5af428b..536d2039 100644 --- a/libimagentrylist/src/listers/line.rs +++ b/libimagentrylist/src/listers/line.rs @@ -28,8 +28,8 @@ impl<'a> Lister for LineLister<'a> { use error::ListErrorKind as LEK; entries.fold_defresult(|entry| { - write!(stdout(), "{:?}\n", entry.get_location().to_str().unwrap_or(self.unknown_output)) - .map_err(|e| LE::new(LEK::FormatError, Some(Box::new(e)))) + let s = entry.get_location().to_str().unwrap_or(String::from(self.unknown_output)); + write!(stdout(), "{:?}\n", s).map_err(|e| LE::new(LEK::FormatError, Some(Box::new(e)))) }) } |