We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b5f275 commit 8ecbb7eCopy full SHA for 8ecbb7e
src/tools/lint-docs/src/lib.rs
@@ -37,10 +37,8 @@ impl Lint {
37
}
38
39
fn is_ignored(&self) -> bool {
40
- self.doc
41
- .iter()
42
- .filter(|line| line.starts_with("```rust"))
43
- .all(|line| line.contains(",ignore"))
+ let blocks: Vec<_> = self.doc.iter().filter(|line| line.starts_with("```rust")).collect();
+ !blocks.is_empty() && blocks.iter().all(|line| line.contains(",ignore"))
44
45
46
/// Checks the doc style of the lint.
0 commit comments