mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
whitespace
This commit is contained in:
parent
b393752814
commit
27f8fa75e1
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ impl LintPass for StringAdd {
|
|||
}
|
||||
|
||||
fn check_expr(&mut self, cx: &Context, e: &Expr) {
|
||||
if let &ExprAssign(ref target, ref src) =&e.node {
|
||||
if let &ExprAssign(ref target, ref src) = &e.node {
|
||||
if is_string(cx, target) && is_add(src, target) {
|
||||
span_lint(cx, STRING_ADD_ASSIGN, e.span,
|
||||
"You assign the result of adding something to this string. \
|
||||
|
|
Loading…
Reference in a new issue