Skip to content

Commit 8c9bb89

Browse files
authored
Update inline_fn_without_body.rs
1 parent 00b549a commit 8c9bb89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/inline_fn_without_body.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Pass {
4545

4646
fn check_attrs(cx: &LateContext, name: &Name, attrs: &[Attribute]) {
4747
for attr in attrs {
48-
if attr.name() == "inline" {
48+
if attr.name() != "inline" {
4949
continue;
5050
}
5151

0 commit comments

Comments
 (0)