Skip to content

Commit 9ce6fb3

Browse files
authored
Satisfy dogfood
1 parent 8c9bb89 commit 9ce6fb3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

clippy_lints/src/doc.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,9 @@ pub fn check_attrs<'a>(cx: &EarlyContext, valid_idents: &[String], attrs: &'a [a
150150
spans.extend_from_slice(&current_spans);
151151
doc.push_str(&current);
152152
}
153-
} else {
153+
} else if attr.name() == "doc" {
154154
// ignore mix of sugared and non-sugared doc
155-
if attr.name() == "doc" {
156-
return;
157-
}
155+
return;
158156
}
159157
}
160158

0 commit comments

Comments
 (0)