Annotate that we have a closure which takes &Entry here

This commit is contained in:
Matthias Beyer 2016-07-04 20:13:45 +02:00
parent 2cd511c0c1
commit 66cdc192c2
1 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ use libimagdiary::error::DiaryErrorKind as DEK;
use libimagentrylist::listers::core::CoreLister;
use libimagentrylist::lister::Lister;
use libimagrt::runtime::Runtime;
use libimagstore::store::Entry;
use libimagstore::storeid::StoreId;
use libimagerror::trace::trace_error;
@ -41,7 +42,7 @@ pub fn list(rt: &Runtime) {
let base = rt.store().path();
CoreLister::new(&move |e| location_to_listing_string(e.get_location(), base))
CoreLister::new(&move |e: &Entry| location_to_listing_string(e.get_location(), base))
.list(es) // TODO: Do not ignore non-ok()s
.map_err(|e| DE::new(DEK::IOError, Some(Box::new(e))))
})