Skip to content

Commit 64c9cc9

Browse files
committed
Improved message
1 parent 22cfdfa commit 64c9cc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/undocumented_unsafe_blocks.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ fn check_has_safety_comment(cx: &LateContext<'_>, item: &hir::Item<'_>, (span, h
263263
UNNECESSARY_SAFETY_COMMENT,
264264
span,
265265
format!(
266-
"{} has safety comment, but maybe a `# Safety` segment would be better",
266+
"{} has unnecessary safety comment",
267267
cx.tcx.def_descr(item.owner_id.to_def_id()),
268268
),
269269
|diag| {

0 commit comments

Comments
 (0)