diff --git a/clippy_lints/src/types.rs b/clippy_lints/src/types.rs index f3fe719e1a51..aef113a14d58 100644 --- a/clippy_lints/src/types.rs +++ b/clippy_lints/src/types.rs @@ -1222,7 +1222,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Casts { cx, CAST_PTR_ALIGNMENT, expr.span, - &format!("casting from `{}` to a more-strictly-aligned pointer (`{}`) ({} < {})", cast_from, cast_to, from_align.bytes(), to_align.bytes()) + &format!("casting from `{}` to a more-strictly-aligned pointer (`{}`) ({} < {} bytes)", cast_from, cast_to, from_align.bytes(), to_align.bytes()) ); } }