diff --git a/lib/domain/libimaghabit/src/habit.rs b/lib/domain/libimaghabit/src/habit.rs index ee9c1eee..fe113969 100644 --- a/lib/domain/libimaghabit/src/habit.rs +++ b/lib/domain/libimaghabit/src/habit.rs @@ -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(_)))) diff --git a/lib/domain/libimaghabit/src/instance.rs b/lib/domain/libimaghabit/src/instance.rs index 9a58207a..84bd9b5c 100644 --- a/lib/domain/libimaghabit/src/instance.rs +++ b/lib/domain/libimaghabit/src/instance.rs @@ -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(_))))