We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47ec899 commit 0be1ab8Copy full SHA for 0be1ab8
clippy_lints/src/misc.rs
@@ -335,8 +335,8 @@ impl LintPass {
335
if !in_constant(cx, e.hir_id);
336
then {
337
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"),
+ Mutability::Mut => ("found `0 as *mut _`", "ptr::null_mut"),
+ Mutability::Not => ("found `0 as *const _`", "ptr::null"),
340
};
341
342
let (sugg, appl) = if let TyKind::Infer = mut_ty.ty.kind {
0 commit comments