diff --git a/bin/core/imag-header/src/main.rs b/bin/core/imag-header/src/main.rs index 11a967a2..6a9ce305 100644 --- a/bin/core/imag-header/src/main.rs +++ b/bin/core/imag-header/src/main.rs @@ -93,7 +93,7 @@ fn main() { }) .into_iter(); - let iter = StoreIdIterator::new(Box::new(sids.into_iter().map(Ok))) + let iter = StoreIdIterator::new(Box::new(sids.map(Ok))) .into_get_iter(rt.store()) .trace_unwrap_exit() .filter_map(|x| x); diff --git a/bin/core/imag-header/src/ui.rs b/bin/core/imag-header/src/ui.rs index f9d1bcbd..5ead92c2 100644 --- a/bin/core/imag-header/src/ui.rs +++ b/bin/core/imag-header/src/ui.rs @@ -237,7 +237,6 @@ impl IdPathProvider for PathProvider { fn get_ids(matches: &ArgMatches) -> Result>> { matches.values_of("id") .map(|v| v - .into_iter() .map(PathBuf::from) .map(|pb| pb.into_storeid()) .collect::>>()