Small cleanup

This commit is contained in:
mcarton
2016-02-20 21:20:56 +01:00
parent ba3be83488
commit 1a64a4890c
5 changed files with 8 additions and 8 deletions

View File

@@ -589,7 +589,7 @@ fn lint_extend(cx: &LateContext, expr: &Expr, args: &MethodArgs) {
span_lint(cx,
EXTEND_FROM_SLICE,
expr.span,
&"use of `extend` to extend a Vec by a slice")
"use of `extend` to extend a Vec by a slice")
.span_suggestion(expr.span,
"try this",
format!("{}.extend_from_slice({}{})",