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