Skip to content

Commit

Permalink
An example change
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexendoo committed Feb 24, 2023
1 parent 47ec899 commit 0be1ab8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/misc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ impl LintPass {
if !in_constant(cx, e.hir_id);
then {
let (msg, sugg_fn) = match mut_ty.mutbl {
Mutability::Mut => ("`0 as *mut _` detected", "ptr::null_mut"),
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"),
};

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

0 comments on commit 0be1ab8

Please sign in to comment.