diff options
| author | Kalle Wachsmuth <kalle.wachsmuth@gmail.com> | 2024-10-29 20:49:22 +0100 |
|---|---|---|
| committer | Kalle Wachsmuth <kalle.wachsmuth@gmail.com> | 2025-01-26 12:15:12 +0100 |
| commit | 25a77cf4f420d2a6fb7863297fab0615f4a4d2e9 (patch) | |
| tree | 345310e18b4b2d2caec2c168c88e8009d1cb68ae /clippy_dev | |
| parent | 618062263053a24ff6a319a6bddf56fbcbe3a171 (diff) | |
| download | rust-25a77cf4f420d2a6fb7863297fab0615f4a4d2e9.tar.gz rust-25a77cf4f420d2a6fb7863297fab0615f4a4d2e9.zip | |
remove `clippy::double_neg`
Diffstat (limited to 'clippy_dev')
| -rw-r--r-- | clippy_dev/src/new_lint.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_dev/src/new_lint.rs b/clippy_dev/src/new_lint.rs index 24d1a53266a..35dd986ff61 100644 --- a/clippy_dev/src/new_lint.rs +++ b/clippy_dev/src/new_lint.rs @@ -455,7 +455,7 @@ fn setup_mod_file(path: &Path, lint: &LintData<'_>) -> io::Result<&'static str> }); // Find both the last lint declaration (declare_clippy_lint!) and the lint pass impl - while let Some(LintDeclSearchResult { content, .. }) = iter.find(|result| result.token == TokenKind::Ident) { + while let Some(LintDeclSearchResult { content, .. }) = iter.find(|result| result.token_kind == TokenKind::Ident) { let mut iter = iter .by_ref() .filter(|t| !matches!(t.token_kind, TokenKind::Whitespace | TokenKind::LineComment { .. })); @@ -465,7 +465,7 @@ fn setup_mod_file(path: &Path, lint: &LintData<'_>) -> io::Result<&'static str> // matches `!{` match_tokens!(iter, Bang OpenBrace); if let Some(LintDeclSearchResult { range, .. }) = - iter.find(|result| result.token == TokenKind::CloseBrace) + iter.find(|result| result.token_kind == TokenKind::CloseBrace) { last_decl_curly_offset = Some(range.end); } |
