From 8c9bb8960811ca77e7a1f4fb2f1a036131ff6d94 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Fri, 4 May 2018 10:17:30 +0200 Subject: [PATCH] Update inline_fn_without_body.rs --- clippy_lints/src/inline_fn_without_body.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/inline_fn_without_body.rs b/clippy_lints/src/inline_fn_without_body.rs index 1679833873b..34196a1728f 100644 --- a/clippy_lints/src/inline_fn_without_body.rs +++ b/clippy_lints/src/inline_fn_without_body.rs @@ -45,7 +45,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Pass { fn check_attrs(cx: &LateContext, name: &Name, attrs: &[Attribute]) { for attr in attrs { - if attr.name() == "inline" { + if attr.name() != "inline" { continue; }