diff options
| author | xFrednet <xFrednet@gmail.com> | 2022-03-14 22:02:10 +0100 |
|---|---|---|
| committer | xFrednet <xFrednet@gmail.com> | 2022-03-14 22:02:10 +0100 |
| commit | fc5540a4d3ae28e5dbf127b6fcddcae41baf218f (patch) | |
| tree | 44b6409db83eff9fe846057fa7b2bf9c2330eea8 | |
| parent | dc5423ad448877e33cca28db2f1445c9c4473c75 (diff) | |
| download | rust-fc5540a4d3ae28e5dbf127b6fcddcae41baf218f.tar.gz rust-fc5540a4d3ae28e5dbf127b6fcddcae41baf218f.zip | |
Make `search_is_some`s suggestion `MachineApplicable`
| -rw-r--r-- | clippy_utils/src/sugg.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_utils/src/sugg.rs b/clippy_utils/src/sugg.rs index 63c442e7008..1fc9979f3dd 100644 --- a/clippy_utils/src/sugg.rs +++ b/clippy_utils/src/sugg.rs @@ -808,7 +808,7 @@ pub fn deref_closure_args<'tcx>(cx: &LateContext<'_>, closure: &'tcx hir::Expr<' closure_arg_is_type_annotated_double_ref, next_pos: closure.span.lo(), suggestion_start: String::new(), - applicability: Applicability::MaybeIncorrect, + applicability: Applicability::MachineApplicable, }; let fn_def_id = cx.tcx.hir().local_def_id(closure.hir_id); |
