fix the lint as requested
This commit is contained in:
parent
6b5f2753f7
commit
8ecbb7e39a
1 changed files with 2 additions and 4 deletions
|
@ -37,10 +37,8 @@ impl Lint {
|
|||
}
|
||||
|
||||
fn is_ignored(&self) -> bool {
|
||||
self.doc
|
||||
.iter()
|
||||
.filter(|line| line.starts_with("```rust"))
|
||||
.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"))
|
||||
}
|
||||
|
||||
/// Checks the doc style of the lint.
|
||||
|
|
Loading…
Add table
Reference in a new issue