Remove all use of format!("string literal")
This commit is contained in:
parent
5fe6e9f911
commit
222086d62b
3 changed files with 5 additions and 5 deletions
|
|
@ -589,7 +589,7 @@ fn lint_extend(cx: &LateContext, expr: &Expr, args: &MethodArgs) {
|
|||
span_lint(cx,
|
||||
EXTEND_FROM_SLICE,
|
||||
expr.span,
|
||||
&format!("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({}{})",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue