Track Rust master
authorCarl Lerche <me@carllerche.com>
Mon, 16 Jun 2014 19:57:34 +0000 (12:57 -0700)
committerCarl Lerche <me@carllerche.com>
Mon, 16 Jun 2014 19:57:34 +0000 (12:57 -0700)
src/bin/cargo-verify-project.rs
src/cargo/core/version_req.rs

index 974cfaed5f7e8a5e0afdee39b7756e8f12da7aeb..13f860b29805b17a5501f424c7cc2b61dbfdb26d 100644 (file)
@@ -50,6 +50,6 @@ fn main() {
 }
 
 fn fail(reason: &str, value: &str) {
-    println!(r#"\{ "{:s}", "{:s}" \}"#, reason, value);
+    println!(r#"{{ "{:s}", "{:s}" }}"#, reason, value);
     set_exit_status(1);
 }
index 656196d4316f7eb71f4a70209dc4602f110393e3..1b4d7bcf77769bd90423647f778b935e6fc19a30 100644 (file)
@@ -286,7 +286,10 @@ impl<'a> Iterator<Token<'a>> for Lexer<'a> {
                         c = n_char;
                         idx = n_idx;
                     }
-                    _ => return self.flush(idx + 1, self.state)
+                    _ => {
+                      let s = self.state;
+                      return self.flush(idx + 1, s)
+                    }
                 }
             ))