From 169b63a84abf1598a83038fcdedceba40255288a Mon Sep 17 00:00:00 2001 From: mcarton Date: Wed, 29 Jun 2016 22:45:58 +0200 Subject: [PATCH] Improve `TOPLEVEL_REF_ARG` message --- clippy_lints/src/misc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/misc.rs b/clippy_lints/src/misc.rs index e5bfc3c34b1..0931d5aca6b 100644 --- a/clippy_lints/src/misc.rs +++ b/clippy_lints/src/misc.rs @@ -70,7 +70,7 @@ fn check_stmt(&mut self, cx: &LateContext, s: &Stmt) { span_lint_and_then(cx, TOPLEVEL_REF_ARG, l.pat.span, - "`ref` on an entire `let` pattern is discouraged, take a reference with & instead", + "`ref` on an entire `let` pattern is discouraged, take a reference with `&` instead", |db| { let init = &Sugg::hir(cx, init, ".."); db.span_suggestion(s.span, -- 2.44.0