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:
Perma Alesheikh 2024-01-09 14:34:05 +03:30 committed by Clément DOUIN
parent 0b066b7529
commit 87eac50eb7
No known key found for this signature in database
GPG key ID: 353E4A18EE0FAB72

View file

@ -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")),