about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSteven Casper <sebastiancasper3@gmail.com>2022-11-04 20:59:31 -0700
committerSteven Casper <sebastiancasper3@gmail.com>2022-11-04 20:59:31 -0700
commit93dab8fea2a8cd01faca7dc729a4005a3394ae27 (patch)
tree4fe409ff7a335ab76a5a192c17297cf39d05ed44
parentb7d9af278cc7e2d3bc8845156a0ab405a3536724 (diff)
downloadrust-93dab8fea2a8cd01faca7dc729a4005a3394ae27.tar.gz
rust-93dab8fea2a8cd01faca7dc729a4005a3394ae27.zip
More backticks
-rw-r--r--clippy_lints/src/let_underscore.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/clippy_lints/src/let_underscore.rs b/clippy_lints/src/let_underscore.rs
index 8da7b8c3543..61f87b91400 100644
--- a/clippy_lints/src/let_underscore.rs
+++ b/clippy_lints/src/let_underscore.rs
@@ -114,7 +114,7 @@ impl<'tcx> LateLintPass<'tcx> for LetUnderscore {
                     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 @@ impl<'tcx> LateLintPass<'tcx> for LetUnderscore {
                     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 @@ impl<'tcx> LateLintPass<'tcx> for LetUnderscore {
                     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 @@ impl<'tcx> LateLintPass<'tcx> for LetUnderscore {
                     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",
                 );