From cb571bf2e2b3b4f9696a9ed4d93f599a2b044fd6 Mon Sep 17 00:00:00 2001 From: llogiq Date: Thu, 3 Sep 2015 10:57:11 +0200 Subject: [PATCH] also ignore functions --- src/misc.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/misc.rs b/src/misc.rs index 5f32a93d3dd..1376bf41b38 100644 --- a/src/misc.rs +++ b/src/misc.rs @@ -98,8 +98,11 @@ impl LintPass for FloatCmp { Some(NodeTraitItem(&TraitItem{ id: _, ref ident, .. })) | Some(NodeImplItem(&ImplItem{ id: _, ref ident, .. })) => { let name = ident.name.as_str(); - if &*name == "eq" || name.starts_with("eq_") || - name.ends_with("_eq") { return; } + if &*name == "eq" || &*name == "ne" || + name.starts_with("eq_") || + name.ends_with("_eq") { + return; + } }, _ => (), }