Skip to content

Commit 0be1ab8

Browse files
committed
An example change
1 parent 47ec899 commit 0be1ab8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/misc.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,8 @@ impl LintPass {
335335
if !in_constant(cx, e.hir_id);
336336
then {
337337
let (msg, sugg_fn) = match mut_ty.mutbl {
338-
Mutability::Mut => ("`0 as *mut _` detected", "ptr::null_mut"),
339-
Mutability::Not => ("`0 as *const _` detected", "ptr::null"),
338+
Mutability::Mut => ("found `0 as *mut _`", "ptr::null_mut"),
339+
Mutability::Not => ("found `0 as *const _`", "ptr::null"),
340340
};
341341

342342
let (sugg, appl) = if let TyKind::Infer = mut_ty.ty.kind {

0 commit comments

Comments
 (0)