Skip to content

Commit

Permalink
Accept more safety comments (notably those that are on multiple lines…
Browse files Browse the repository at this point in the history
… without text after SAFETY:)
  • Loading branch information
poliorcetics committed Aug 11, 2020
1 parent cbe7c5c commit 883dffa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/tidy/src/style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ pub fn check(path: &Path, bad: &mut bool) {
suppressible_tidy_err!(err, skip_undocumented_unsafe, "undocumented unsafe");
}
}
if line.contains("// SAFETY: ") || line.contains("// Safety: ") {
if line.contains("// SAFETY:") || line.contains("// Safety:") {
last_safety_comment = true;
} else if line.trim().starts_with("//") || line.trim().is_empty() {
// keep previous value
Expand Down

0 comments on commit 883dffa

Please sign in to comment.