diff options
| author | xFrednet <xFrednet@gmail.com> | 2022-05-21 13:24:00 +0200 |
|---|---|---|
| committer | xFrednet <xFrednet@gmail.com> | 2022-05-21 13:24:00 +0200 |
| commit | 4587b6628d1dff4a3c23ffcaadb7276d12f1e165 (patch) | |
| tree | 1945f71c35dfc6788c1d22a65ce5194145756930 /clippy_lints/src/entry.rs | |
| parent | 8d04a32ab4939c70c8db1c67a29600c64c6499a4 (diff) | |
| download | rust-4587b6628d1dff4a3c23ffcaadb7276d12f1e165.tar.gz rust-4587b6628d1dff4a3c23ffcaadb7276d12f1e165.zip | |
Merge 'rust-clippy/master' into clippyup
Diffstat (limited to 'clippy_lints/src/entry.rs')
| -rw-r--r-- | clippy_lints/src/entry.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/entry.rs b/clippy_lints/src/entry.rs index d3d3ed2c235..c5a987842c3 100644 --- a/clippy_lints/src/entry.rs +++ b/clippy_lints/src/entry.rs @@ -63,7 +63,7 @@ declare_clippy_lint! { declare_lint_pass!(HashMapPass => [MAP_ENTRY]); impl<'tcx> LateLintPass<'tcx> for HashMapPass { - #[allow(clippy::too_many_lines)] + #[expect(clippy::too_many_lines)] fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { let (cond_expr, then_expr, else_expr) = match higher::If::hir(expr) { Some(higher::If { cond, then, r#else }) => (cond, then, r#else), @@ -319,7 +319,7 @@ struct Insertion<'tcx> { /// `or_insert_with`. /// * Determine if there's any sub-expression that can't be placed in a closure. /// * Determine if there's only a single insert statement. `or_insert` can be used in this case. -#[allow(clippy::struct_excessive_bools)] +#[expect(clippy::struct_excessive_bools)] struct InsertSearcher<'cx, 'tcx> { cx: &'cx LateContext<'tcx>, /// The map expression used in the contains call. |
