diff options
| author | Philipp Hansch <dev@phansch.net> | 2019-08-19 08:00:39 +0200 |
|---|---|---|
| committer | Philipp Hansch <dev@phansch.net> | 2019-08-28 07:23:23 +0200 |
| commit | 31cf2f2f354722a6463d564a585086fe203588d0 (patch) | |
| tree | 13712234f9498c96664fc8055c48d1a3d6389607 | |
| parent | 8a161d71f8fb99d93afd83a6bcb0ccf9653fc73b (diff) | |
| download | rust-31cf2f2f354722a6463d564a585086fe203588d0.tar.gz rust-31cf2f2f354722a6463d564a585086fe203588d0.zip | |
Change float_cmp Applicability to `HasPlaceholders`
The suggestion includes an 'errors' placeholder currently, so it's not `MachineApplicable`
| -rw-r--r-- | clippy_lints/src/misc.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/misc.rs b/clippy_lints/src/misc.rs index b9c05bb2bd3..c6bcb845c7a 100644 --- a/clippy_lints/src/misc.rs +++ b/clippy_lints/src/misc.rs @@ -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."); }); |
