mirror of
https://github.com/soywod/himalaya.git
synced 2024-07-03 07:55:13 +00: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:
parent
0b066b7529
commit
87eac50eb7
|
@ -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")),
|
||||
|
|
Loading…
Reference in a new issue