Skip to content

Commit 512b08f

Browse files
authored
change the applicability of if_then_some_else_none to MachineApplicable (#14106)
`MachineApplicable` is appropriate for the applicability of this lint. changelog: [`if_then_some_else_none`]: change the applicability to `MachineApplicable`
2 parents 888365d + d13897b commit 512b08f

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

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

0 commit comments

Comments
 (0)