mirror of
https://github.com/pimalaya/himalaya.git
synced 2026-06-16 20:57:53 +08:00
remove comparison with boolean value
Reasons: - The bool value itself is enough for the filter expression. - Simplifies the expression. Signed-off-by: Perma Alesheikh <me@prma.dev>
This commit is contained in:
committed by
Clément DOUIN
parent
0b066b7529
commit
87eac50eb7
+1
-1
@@ -152,7 +152,7 @@ impl TomlConfig {
|
||||
.find_map(|(name, account)| {
|
||||
account
|
||||
.default
|
||||
.filter(|default| *default == true)
|
||||
.filter(|default| *default)
|
||||
.map(|_| (name.to_owned(), account.clone()))
|
||||
})
|
||||
.ok_or_else(|| anyhow!("cannot find default account")),
|
||||
|
||||
Reference in New Issue
Block a user