]> git.proxmox.com Git - rustc.git/blobdiff - src/libsyntax/parse/classify.rs
Imported Upstream version 1.6.0+dfsg1
[rustc.git] / src / libsyntax / parse / classify.rs
index d46d078c776be0b2ea59b01cc3e7565d1fe109a5..8b3faaaca146a9d7d512201b7f4cade3ce3fef65 100644 (file)
@@ -53,7 +53,7 @@ pub fn stmt_ends_with_semi(stmt: &ast::Stmt_) -> bool {
                 ast::DeclItem(_) => false
             }
         }
-        ast::StmtExpr(ref e, _) => { expr_requires_semi_to_be_stmt(&**e) }
+        ast::StmtExpr(ref e, _) => { expr_requires_semi_to_be_stmt(e) }
         ast::StmtSemi(..) => { false }
         ast::StmtMac(..) => { false }
     }