Skip to content

Commit

Permalink
Satisfy dogfood
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk authored May 4, 2018
1 parent 8c9bb89 commit 9ce6fb3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions clippy_lints/src/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,9 @@ pub fn check_attrs<'a>(cx: &EarlyContext, valid_idents: &[String], attrs: &'a [a
spans.extend_from_slice(&current_spans);
doc.push_str(&current);
}
} else {
} else if attr.name() == "doc" {
// ignore mix of sugared and non-sugared doc
if attr.name() == "doc" {
return;
}
return;
}
}

Expand Down

0 comments on commit 9ce6fb3

Please sign in to comment.