Skip to content

Commit d13897b

Browse files
committed
change the applicability of if_then_some_else_none to MachineApplicable
1 parent 88a00a8 commit d13897b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/if_then_some_else_none.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl<'tcx> LateLintPass<'tcx> for IfThenSomeElseNone {
9595
expr.span,
9696
format!("this could be simplified with `bool::{method_name}`"),
9797
|diag| {
98-
let mut app = Applicability::Unspecified;
98+
let mut app = Applicability::MachineApplicable;
9999
let cond_snip = Sugg::hir_with_context(cx, cond, expr.span.ctxt(), "[condition]", &mut app)
100100
.maybe_par()
101101
.to_string();

0 commit comments

Comments
 (0)