From 93393751b298b8d01999cfc6d7fb72ed70182422 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 5 Dec 2015 11:06:22 +0100 Subject: [PATCH] Remove uneccessary variable --- src/module/bm/commands.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/module/bm/commands.rs b/src/module/bm/commands.rs index edc4f3d6..c72266d1 100644 --- a/src/module/bm/commands.rs +++ b/src/module/bm/commands.rs @@ -139,7 +139,7 @@ fn get_filtered_files_from_backend<'a>(module: &'a Module, debug!("Tags: {:?}", tags); env.bk.iter_files(module, &parser) .map(|files| { - let f = files.filter(|file| { + files.filter(|file| { debug!("Backend returns file: {:?}", file); check_tags(&tags, file) }).filter(|file| { @@ -147,8 +147,7 @@ fn get_filtered_files_from_backend<'a>(module: &'a Module, get_matcher(env.rt, env.matches) .and_then(|r| Some(file.matches_with(&r))) .unwrap_or(true) - }).collect::>(); - f.into_iter() + }).collect::>().into_iter() }).map_err(|e| { debug!("Error from Backend: {:?}", e); let mut merr = ModuleError::new("Could not filter files");