Print assert macro name in backticks

Co-Authored-By: Philipp Krones <hello@philkrones.com>
This commit is contained in:
Matthias Seiffert 2019-10-03 11:43:39 +02:00 committed by GitHub
parent 3557084b01
commit 288f02da44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
),