Skip to content

Commit 288f02d

Browse files
Lythenasflip1995
andauthored
Print assert macro name in backticks
Co-Authored-By: Philipp Krones <hello@philkrones.com>
1 parent 3557084 commit 288f02d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnitCmp {
544544
UNIT_CMP,
545545
expr.span,
546546
&format!(
547-
"{} of unit values detected. This will always {}",
547+
"`{}` of unit values detected. This will always {}",
548548
symbol.as_str(),
549549
result
550550
),

0 commit comments

Comments
 (0)