Skip to content

Commit

Permalink
Ignore comparison_chain clippy lint
Browse files Browse the repository at this point in the history
    warning: `if` chain can be rewritten with `match`
       --> src/normalize.rs:423:21
        |
    423 | /                     if *count_other_types == 9 {
    424 | |                         if let Some(next) = self.all_lines.get(index + 1) {
    425 | |                             let next_trim_start = next.trim_start();
    426 | |                             let next_indent = next.len() - next_trim_start.len();
    ...   |
    432 | |                         return None;
    433 | |                     }
        | |_____________________^
        |
        = help: consider rewriting the `if` chain to use `cmp` and `match`
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#comparison_chain
        = note: `#[warn(clippy::comparison_chain)]` on by default
  • Loading branch information
dtolnay committed Jul 6, 2024
1 parent b1b7064 commit 883a38d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@
#![doc(html_root_url = "https://docs.rs/trybuild/1.0.96")]
#![allow(
clippy::collapsible_if,
clippy::comparison_chain,
clippy::default_trait_access,
clippy::derive_partial_eq_without_eq,
clippy::doc_markdown,
Expand Down

0 comments on commit 883a38d

Please sign in to comment.