Make search_is_somes suggestion MachineApplicable

This commit is contained in:
xFrednet 2022-03-14 22:02:10 +01:00
parent dc5423ad44
commit fc5540a4d3
No known key found for this signature in database
GPG key ID: FCDCBF29AF64D601

View file

@ -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);