Skip to content

Clippy complains about else { if .. } blocks #93

@lambda-fairy

Description

@lambda-fairy
error: this `else { if .. }` block can be collapsed
  --> tests/control_structures.rs:9:17
   |
9  |           let s = html! {
   |  _________________^
10 | |             @if number == 1 {
11 | |                 "one"
12 | |             } @else if number == 2 {
...  |
18 | |             }
19 | |         }.into_string();
   | |_________^
   |
   = help: for further information visit https://github.com/Manishearth/rust-clippy/wiki#collapsible_if

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions