about summary refs log tree commit diff
path: root/src/temporary_assignment.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2016-01-04 09:56:12 +0530
committerManish Goregaokar <manishsmail@gmail.com>2016-01-04 09:56:12 +0530
commitc9342d01213ca1663d2cdf23289bae024823ae6a (patch)
tree505829eeee2dc85b41f7e2aa7cc44df3d9862a9e /src/temporary_assignment.rs
parent839ad09689e417d1d9e84eb24c627226765f8322 (diff)
downloadrust-c9342d01213ca1663d2cdf23289bae024823ae6a.tar.gz
rust-c9342d01213ca1663d2cdf23289bae024823ae6a.zip
fmt clippy
Diffstat (limited to 'src/temporary_assignment.rs')
-rw-r--r--src/temporary_assignment.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/temporary_assignment.rs b/src/temporary_assignment.rs
index 622bf5bc25e..7d5057d8377 100644
--- a/src/temporary_assignment.rs
+++ b/src/temporary_assignment.rs
@@ -40,11 +40,10 @@ impl LateLintPass for TemporaryAssignmentPass {
             match target.node {
                 ExprField(ref base, _) | ExprTupField(ref base, _) => {
                     if is_temporary(base) && !is_adjusted(cx, base) {
-                        span_lint(cx, TEMPORARY_ASSIGNMENT, expr.span,
-                                  "assignment to temporary");
+                        span_lint(cx, TEMPORARY_ASSIGNMENT, expr.span, "assignment to temporary");
                     }
                 }
-                _ => ()
+                _ => (),
             }
         }
     }