diff options
author | Alex Crichton <alex@alexcrichton.com> | 2015-02-23 14:45:02 -0800 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2015-02-23 14:45:02 -0800 |
commit | 1bebfa139436d49d6934976c2c5529f014847fc1 (patch) | |
tree | e78196e38d14982b93679d683869c95a23ef75e4 | |
parent | 39ffe7a4495283d2c99f5a4b9d10fbb001a8605c (diff) | |
download | milf-rs-1bebfa139436d49d6934976c2c5529f014847fc1.tar.gz milf-rs-1bebfa139436d49d6934976c2c5529f014847fc1.zip |
Move away from deprecated syntax
-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)); |