diff options
author | Eric Huss <eric@huss.org> | 2019-05-08 12:12:14 -0700 |
---|---|---|
committer | Eric Huss <eric@huss.org> | 2019-05-08 12:12:14 -0700 |
commit | 1b016589133e48d34dd5ae1b440581ded4cb4cdb (patch) | |
tree | 0a869218250d4876ec098aaaff4b7b59147663e7 /test-suite/tests/macros.rs | |
parent | d038a0bc5687cede01e626138868d83f487ba69c (diff) | |
download | milf-rs-1b016589133e48d34dd5ae1b440581ded4cb4cdb.tar.gz milf-rs-1b016589133e48d34dd5ae1b440581ded4cb4cdb.zip |
Migrate to 2018 edition.
Diffstat (limited to 'test-suite/tests/macros.rs')
-rw-r--r-- | test-suite/tests/macros.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test-suite/tests/macros.rs b/test-suite/tests/macros.rs index 6b77c81..db94549 100644 --- a/test-suite/tests/macros.rs +++ b/test-suite/tests/macros.rs @@ -7,6 +7,8 @@ use std::f64; macro_rules! table { ($($key:expr => $value:expr,)*) => {{ + // https://github.com/rust-lang/rust/issues/60643 + #[allow(unused_mut)] let mut table = toml::value::Table::new(); $( table.insert($key.to_string(), $value.into()); @@ -17,6 +19,8 @@ macro_rules! table { macro_rules! array { ($($element:expr,)*) => {{ + // https://github.com/rust-lang/rust/issues/60643 + #[allow(unused_mut)] let mut array = toml::value::Array::new(); $( array.push($element.into()); |