Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Oct 14, 2023
1 parent 6336a10 commit 48e6089
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/boolean.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ impl Parse for bool {
match &*text.to_lowercase() {
"1" => Some(true),
"0" => Some(false),
"ok" | "okay" | "on" | "true" | "yep" | "yes" if locale_matches(locale, &en) => Some(true),
"ok" | "okay" | "on" | "true" | "yep" | "yes" if locale_matches(locale, &en) => {
Some(true)
}
"false" | "no" | "nope" | "off" if locale_matches(locale, &en) => Some(false),
_ => None,
}
Expand Down

0 comments on commit 48e6089

Please sign in to comment.