about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/parse/parser.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse/parser.rs b/src/parse/parser.rs
index 6bc53159b38..7045a7dd9ce 100644
--- a/src/parse/parser.rs
+++ b/src/parse/parser.rs
@@ -114,7 +114,7 @@ impl<'a> Parser<'a> {
             let mut parser = new_parser_from_file(sess.inner(), path, Some(span));
             match parser.parse_mod(&TokenKind::Eof) {
                 Ok((a, i, spans)) => Some((a, i, spans.inner_span)),
-                Err(mut e) => {
+                Err(e) => {
                     e.emit();
                     if sess.can_reset_errors() {
                         sess.reset_errors();
@@ -165,7 +165,7 @@ impl<'a> Parser<'a> {
 
         match catch_unwind(move || parser.parse_crate_mod()) {
             Ok(Ok(k)) => Ok(k),
-            Ok(Err(mut db)) => {
+            Ok(Err(db)) => {
                 db.emit();
                 Err(ParserError::ParseError)
             }