We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00b549a commit 8c9bb89Copy full SHA for 8c9bb89
clippy_lints/src/inline_fn_without_body.rs
@@ -45,7 +45,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Pass {
45
46
fn check_attrs(cx: &LateContext, name: &Name, attrs: &[Attribute]) {
47
for attr in attrs {
48
- if attr.name() == "inline" {
+ if attr.name() != "inline" {
49
continue;
50
}
51
0 commit comments