Print assert macro name in backticks
Co-Authored-By: Philipp Krones <hello@philkrones.com>
This commit is contained in:
parent
3557084b01
commit
288f02da44
@ -544,7 +544,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnitCmp {
|
||||
UNIT_CMP,
|
||||
expr.span,
|
||||
&format!(
|
||||
"{} of unit values detected. This will always {}",
|
||||
"`{}` of unit values detected. This will always {}",
|
||||
symbol.as_str(),
|
||||
result
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user