From 1bebfa139436d49d6934976c2c5529f014847fc1 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 23 Feb 2015 14:45:02 -0800 Subject: [PATCH] Move away from deprecated syntax --- src/parser.rs | 4 ++-- 1 file 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));