Skip to content

Commit 582048c

Browse files
committed
Change float_cmp Applicability to HasPlaceholders
The suggestion includes an 'errors' placeholder currently, so it's not `MachineApplicable`
1 parent a17ea1c commit 582048c

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
@@ -401,7 +401,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MiscLints {
401401
lhs - rhs,
402402
if op == BinOpKind::Eq { '<' } else { '>' }
403403
),
404-
Applicability::MachineApplicable, // snippet
404+
Applicability::HasPlaceholders, // snippet
405405
);
406406
db.span_note(expr.span, "std::f32::EPSILON and std::f64::EPSILON are available.");
407407
});

0 commit comments

Comments
 (0)