diff options
Diffstat (limited to 'src/path/mod.rs')
-rw-r--r-- | src/path/mod.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/path/mod.rs b/src/path/mod.rs index 8ce51f9..cd7ccd7 100644 --- a/src/path/mod.rs +++ b/src/path/mod.rs @@ -1,7 +1,7 @@ use std::str::FromStr; use crate::error::*; -use crate::map::MapImpl; +use crate::map::Map; use crate::value::{Value, ValueKind}; mod parser; @@ -135,7 +135,7 @@ impl Expression { ), _ => { - *value = MapImpl::<String, Value>::new().into(); + *value = Map::<String, Value>::new().into(); if let ValueKind::Table(ref mut map) = value.kind { Some( @@ -186,7 +186,7 @@ impl Expression { ValueKind::Table(_) => {} _ => { - *root = MapImpl::<String, Value>::new().into(); + *root = Map::<String, Value>::new().into(); } } @@ -195,7 +195,7 @@ impl Expression { // Pull out another table let mut target = if let ValueKind::Table(ref mut map) = root.kind { map.entry(id.clone()) - .or_insert_with(|| MapImpl::<String, Value>::new().into()) + .or_insert_with(|| Map::<String, Value>::new().into()) } else { unreachable!(); }; @@ -228,7 +228,7 @@ impl Expression { _ => { // Didn't find a table. Oh well. Make a table and do this anyway - *parent = MapImpl::<String, Value>::new().into(); + *parent = Map::<String, Value>::new().into(); Expression::Identifier(key.clone()).set(parent, value); } |