Move away from deprecated syntax

This commit is contained in:
Alex Crichton 2015-02-23 14:45:02 -08:00
parent 39ffe7a449
commit 1bebfa1394

View file

@ -1124,7 +1124,7 @@ trimmed in raw strings.
macro_rules! t {
($actual:expr, $expected:expr) => ({
let f = format!("foo = {}", $actual);
let mut p = Parser::new(&f[]);
let mut p = Parser::new(&f);
let table = Table(p.parse().unwrap());
assert_eq!(table.lookup("foo").and_then(|k| k.as_float()),
Some($expected));
@ -1239,7 +1239,7 @@ trimmed in raw strings.
macro_rules! t {
($actual:expr, $expected:expr) => ({
let f = format!("foo = {}", $actual);
let mut p = Parser::new(&f[]);
let mut p = Parser::new(&f);
let table = Table(p.parse().unwrap());
assert_eq!(table.lookup("foo").and_then(|k| k.as_integer()),
Some($expected));