From dfa2c97c8dff0f0e27d24a9d0b91422ae32ee607 Mon Sep 17 00:00:00 2001 From: flip1995 Date: Tue, 27 Aug 2019 10:40:25 +0200 Subject: [PATCH] [Auto] bin/core/header: Fix Clippy warnings Signed-off-by: flip1995 Signed-off-by: Matthias Beyer --- bin/core/imag-header/src/main.rs | 2 +- bin/core/imag-header/src/ui.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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::>>()