Skip to content

Commit 31cf2f2

Browse files
committed
Change float_cmp Applicability to HasPlaceholders
The suggestion includes an 'errors' placeholder currently, so it's not `MachineApplicable`
1 parent 8a161d7 commit 31cf2f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/misc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MiscLints {
407407
lhs - rhs,
408408
if op == BinOpKind::Eq { '<' } else { '>' }
409409
),
410-
Applicability::MachineApplicable, // snippet
410+
Applicability::HasPlaceholders, // snippet
411411
);
412412
db.span_note(expr.span, "std::f32::EPSILON and std::f64::EPSILON are available.");
413413
});

0 commit comments

Comments
 (0)