Move away from deprecated syntax
This commit is contained in:
parent
39ffe7a449
commit
1bebfa1394
|
@ -1124,7 +1124,7 @@ trimmed in raw strings.
|
||||||
macro_rules! t {
|
macro_rules! t {
|
||||||
($actual:expr, $expected:expr) => ({
|
($actual:expr, $expected:expr) => ({
|
||||||
let f = format!("foo = {}", $actual);
|
let f = format!("foo = {}", $actual);
|
||||||
let mut p = Parser::new(&f[]);
|
let mut p = Parser::new(&f);
|
||||||
let table = Table(p.parse().unwrap());
|
let table = Table(p.parse().unwrap());
|
||||||
assert_eq!(table.lookup("foo").and_then(|k| k.as_float()),
|
assert_eq!(table.lookup("foo").and_then(|k| k.as_float()),
|
||||||
Some($expected));
|
Some($expected));
|
||||||
|
@ -1239,7 +1239,7 @@ trimmed in raw strings.
|
||||||
macro_rules! t {
|
macro_rules! t {
|
||||||
($actual:expr, $expected:expr) => ({
|
($actual:expr, $expected:expr) => ({
|
||||||
let f = format!("foo = {}", $actual);
|
let f = format!("foo = {}", $actual);
|
||||||
let mut p = Parser::new(&f[]);
|
let mut p = Parser::new(&f);
|
||||||
let table = Table(p.parse().unwrap());
|
let table = Table(p.parse().unwrap());
|
||||||
assert_eq!(table.lookup("foo").and_then(|k| k.as_integer()),
|
assert_eq!(table.lookup("foo").and_then(|k| k.as_integer()),
|
||||||
Some($expected));
|
Some($expected));
|
||||||
|
|
Loading…
Reference in a new issue