Fix Clippy redundant-guards warning (#387)
This commit is contained in:
parent
0d4d194e62
commit
811c7402ff
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ fn match_expr_with_guards() {
|
||||||
for &(input, output) in &[(Some(1), "one"), (None, "none"), (Some(2), "2")] {
|
for &(input, output) in &[(Some(1), "one"), (None, "none"), (Some(2), "2")] {
|
||||||
let result = html! {
|
let result = html! {
|
||||||
@match input {
|
@match input {
|
||||||
Some(value) if value == 1 => "one",
|
Some(value) if value % 3 == 1 => "one",
|
||||||
Some(value) => (value),
|
Some(value) => (value),
|
||||||
None => "none",
|
None => "none",
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue