From 883a38daa03e97053180f70e0b7b6446f1b7724a Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 6 Jul 2024 12:05:30 -0700 Subject: [PATCH] Ignore comparison_chain clippy lint 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 --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 29d6b75..5fc2a75 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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,