We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbe7c5c commit 883dffaCopy full SHA for 883dffa
src/tools/tidy/src/style.rs
@@ -263,7 +263,7 @@ pub fn check(path: &Path, bad: &mut bool) {
263
suppressible_tidy_err!(err, skip_undocumented_unsafe, "undocumented unsafe");
264
}
265
266
- if line.contains("// SAFETY: ") || line.contains("// Safety: ") {
+ if line.contains("// SAFETY:") || line.contains("// Safety:") {
267
last_safety_comment = true;
268
} else if line.trim().starts_with("//") || line.trim().is_empty() {
269
// keep previous value
0 commit comments