Skip to content

Commit

Permalink
Make search_is_somes suggestion MachineApplicable
Browse files Browse the repository at this point in the history
  • Loading branch information
xFrednet committed Mar 14, 2022
1 parent dc5423a commit fc5540a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_utils/src/sugg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fc5540a

Please sign in to comment.