Fix Clippy redundant-guards warning ()

This commit is contained in:
Chris Wong 2023-08-03 00:11:10 +10:00 committed by GitHub
parent 0d4d194e62
commit 811c7402ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -152,7 +152,7 @@ fn match_expr_with_guards() {
for &(input, output) in &[(Some(1), "one"), (None, "none"), (Some(2), "2")] {
let result = html! {
@match input {
Some(value) if value == 1 => "one",
Some(value) if value % 3 == 1 => "one",
Some(value) => (value),
None => "none",
}