Remove unused variables

This commit is contained in:
Matthias Beyer 2017-12-22 11:03:42 +01:00
parent 90ed0c0e10
commit 9bf4b9604b
2 changed files with 2 additions and 2 deletions

View file

@ -171,7 +171,7 @@ impl HabitTemplate for Entry {
"habit.template.name",
"habit.template.basedate",
"habit.template.comment",
].iter().fold(Ok(true), |acc, path| acc.and_then(|b| {
].iter().fold(Ok(true), |acc, path| acc.and_then(|_| {
self.get_header()
.read(path)
.map(|o| is_match!(o, Some(&Value::String(_))))

View file

@ -52,7 +52,7 @@ impl HabitInstance for Entry {
"habit.instance.name",
"habit.instance.date",
"habit.instance.comment",
].iter().fold(Ok(true), |acc, path| acc.and_then(|b| {
].iter().fold(Ok(true), |acc, path| acc.and_then(|_| {
self.get_header()
.read(path)
.map(|o| is_match!(o, Some(&Value::String(_))))