Skip to content

Commit 0e1311b

Browse files
committed
Auto merge of #8536 - xFrednet:8062-applicability-search-is-some, r=camsteffen
Make `search_is_some`s suggestion `MachineApplicable` My biggest PR to date, about 0.3 Lines have been changed! Closes #8062 The suggestion seems to work well, as we've received no error reports since the implementation in December. This PR therefore promotes the suggestion to `MachineApplicable`. The tests already include `.fixed` files :) changelog: [`search_is_some`]: Make more suggestions `MachineApplicable`
2 parents dc5423a + fc5540a commit 0e1311b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_utils/src/sugg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ pub fn deref_closure_args<'tcx>(cx: &LateContext<'_>, closure: &'tcx hir::Expr<'
808808
closure_arg_is_type_annotated_double_ref,
809809
next_pos: closure.span.lo(),
810810
suggestion_start: String::new(),
811-
applicability: Applicability::MaybeIncorrect,
811+
applicability: Applicability::MachineApplicable,
812812
};
813813

814814
let fn_def_id = cx.tcx.hir().local_def_id(closure.hir_id);

0 commit comments

Comments
 (0)