More backticks

This commit is contained in:
Steven Casper 2022-11-04 20:59:31 -07:00
parent b7d9af278c
commit 93dab8fea2

View File

@ -114,7 +114,7 @@ fn check_local(&mut self, cx: &LateContext<'_>, local: &Local<'_>) {
cx,
LET_UNDERSCORE_LOCK,
local.span,
"non-binding let on a synchronization lock",
"non-binding `let` on a synchronization lock",
None,
"consider using an underscore-prefixed named \
binding or dropping explicitly with `std::mem::drop`",
@ -125,7 +125,7 @@ fn check_local(&mut self, cx: &LateContext<'_>, local: &Local<'_>) {
cx,
LET_UNDERSCORE_FUTURE,
local.span,
"non-binding let on a future",
"non-binding `let` on a future",
None,
"consider awaiting the future or dropping explicitly with `std::mem::drop`"
);
@ -134,7 +134,7 @@ fn check_local(&mut self, cx: &LateContext<'_>, local: &Local<'_>) {
cx,
LET_UNDERSCORE_MUST_USE,
local.span,
"non-binding let on an expression with `#[must_use]` type",
"non-binding `let` on an expression with `#[must_use]` type",
None,
"consider explicitly using expression value",
);
@ -143,7 +143,7 @@ fn check_local(&mut self, cx: &LateContext<'_>, local: &Local<'_>) {
cx,
LET_UNDERSCORE_MUST_USE,
local.span,
"non-binding let on a result of a `#[must_use]` function",
"non-binding `let` on a result of a `#[must_use]` function",
None,
"consider explicitly using function result",
);