diff options
-rw-r--r-- | src/parser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parser.rs b/src/parser.rs index c405a68..7c991c4 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -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)); |