Skip to content

Commit

Permalink
Fix Clippy redundant-guards warning (#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
lambda-fairy authored Aug 2, 2023
1 parent 0d4d194 commit 811c740
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maud/tests/control_structures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
Expand Down

0 comments on commit 811c740

Please sign in to comment.