aboutsummaryrefslogtreecommitdiff
path: root/test-suite/tests/serde.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test-suite/tests/serde.rs')
-rw-r--r--test-suite/tests/serde.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/test-suite/tests/serde.rs b/test-suite/tests/serde.rs
index c1b6d78..6bcd145 100644
--- a/test-suite/tests/serde.rs
+++ b/test-suite/tests/serde.rs
@@ -9,6 +9,7 @@ use serde::{Deserialize, Deserializer};
use toml::Value;
use toml::Value::{Table, Integer, Array, Float};
+use toml::map::Map;
macro_rules! t {
($e:expr) => (match $e {
@@ -63,7 +64,7 @@ macro_rules! error {
}
macro_rules! map( ($($k:ident: $v:expr),*) => ({
- let mut _m = BTreeMap::new();
+ let mut _m = Map::new();
$(_m.insert(stringify!($k).to_string(), $v);)*
_m
}) );
@@ -97,7 +98,7 @@ fn smoke_hyphen() {
a_b: isize,
}
- let mut m = BTreeMap::new();
+ let mut m = Map::new();
m.insert("a-b".to_string(), Integer(2));
equivalent! {
Foo2 { a_b: 2 },