summaryrefslogtreecommitdiffstats
path: root/src/path
diff options
context:
space:
mode:
authorDavid Orchard <if_coding@fastmail.com>2021-08-02 23:17:08 -0700
committerDavid Orchard <if_coding@fastmail.com>2021-08-15 10:34:05 -0700
commitbe82af2a474b9c6ac85ec1e001af1704521820e6 (patch)
treeb065f9a4adaddfad570b370937e8081cd6fa70ed /src/path
parent0e0ae2b359b5c943055c988c3c78f36db2503468 (diff)
Rename MapImpl to Map
Diffstat (limited to 'src/path')
-rw-r--r--src/path/mod.rs10
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);
}