Change float_cmp Applicability to HasPlaceholders

The suggestion includes an 'errors' placeholder currently, so it's not
`MachineApplicable`
This commit is contained in:
Philipp Hansch 2019-08-19 08:00:39 +02:00
parent 8a161d71f8
commit 31cf2f2f35
No known key found for this signature in database
GPG Key ID: 82AA61CAA11397E6

View File

@ -407,7 +407,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MiscLints {
lhs - rhs,
if op == BinOpKind::Eq { '<' } else { '>' }
),
Applicability::MachineApplicable, // snippet
Applicability::HasPlaceholders, // snippet
);
db.span_note(expr.span, "std::f32::EPSILON and std::f64::EPSILON are available.");
});