summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflip1995 <hello@philkrones.com>2019-08-27 10:40:25 +0200
committerMatthias Beyer <mail@beyermatthias.de>2019-08-28 18:18:40 +0200
commitdfa2c97c8dff0f0e27d24a9d0b91422ae32ee607 (patch)
treee84205eb4bebe3f350e7c089849a4a665bb30a6c
parente2395b0474a69c7a88dfadeb1c537fc042908bd0 (diff)
[Auto] bin/core/header: Fix Clippy warnings
Signed-off-by: flip1995 <hello@philkrones.com> Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--bin/core/imag-header/src/main.rs2
-rw-r--r--bin/core/imag-header/src/ui.rs1
2 files changed, 1 insertions, 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<Option<Vec<StoreId>>> {
matches.values_of("id")
.map(|v| v
- .into_iter()
.map(PathBuf::from)
.map(|pb| pb.into_storeid())
.collect::<Result<Vec<_>>>()