Remove uneccessary variable
This commit is contained in:
parent
80563cb340
commit
93393751b2
1 changed files with 2 additions and 3 deletions
|
@ -139,7 +139,7 @@ fn get_filtered_files_from_backend<'a>(module: &'a Module,
|
||||||
debug!("Tags: {:?}", tags);
|
debug!("Tags: {:?}", tags);
|
||||||
env.bk.iter_files(module, &parser)
|
env.bk.iter_files(module, &parser)
|
||||||
.map(|files| {
|
.map(|files| {
|
||||||
let f = files.filter(|file| {
|
files.filter(|file| {
|
||||||
debug!("Backend returns file: {:?}", file);
|
debug!("Backend returns file: {:?}", file);
|
||||||
check_tags(&tags, file)
|
check_tags(&tags, file)
|
||||||
}).filter(|file| {
|
}).filter(|file| {
|
||||||
|
@ -147,8 +147,7 @@ fn get_filtered_files_from_backend<'a>(module: &'a Module,
|
||||||
get_matcher(env.rt, env.matches)
|
get_matcher(env.rt, env.matches)
|
||||||
.and_then(|r| Some(file.matches_with(&r)))
|
.and_then(|r| Some(file.matches_with(&r)))
|
||||||
.unwrap_or(true)
|
.unwrap_or(true)
|
||||||
}).collect::<Vec<File>>();
|
}).collect::<Vec<File>>().into_iter()
|
||||||
f.into_iter()
|
|
||||||
}).map_err(|e| {
|
}).map_err(|e| {
|
||||||
debug!("Error from Backend: {:?}", e);
|
debug!("Error from Backend: {:?}", e);
|
||||||
let mut merr = ModuleError::new("Could not filter files");
|
let mut merr = ModuleError::new("Could not filter files");
|
||||||
|
|
Loading…
Reference in a new issue