commit e0043a0e594792655e8b779ee92382e68e5c1a05 from: Thomas Böhler date: Sun Oct 22 18:19:14 2023 UTC Use `()` instead of `_` for closure If the function argument to a closure is of type `()` clippy wants this to be captured with a `()`, even if the argument isn't used. Signed-off-by: Thomas Böhler commit - bc6fb9a91750c4bf7c6dc6318f8a6c6bf0e0289f commit + e0043a0e594792655e8b779ee92382e68e5c1a05 blob - a72e1d4282795ab9a62b1b4a888d4ad1c2ec93ab blob + 804bcfb55db1b9346dcfd760424f175b9afd18a2 --- src/types.rs +++ src/types.rs @@ -538,7 +538,7 @@ impl<'a> &'a str, ), ) -> Result, Self::Error> { - let completed = completed.map_or(false, |_| true); + let completed = completed.map_or(false, |()| true); let priority = priority.map_or(0, u8::from); let (completion_date, creation_date): (Option, Option) = match (first_date, second_date) {