From be82af2a474b9c6ac85ec1e001af1704521820e6 Mon Sep 17 00:00:00 2001 From: David Orchard Date: Mon, 2 Aug 2021 23:17:08 -0700 Subject: Rename MapImpl to Map --- src/path/mod.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/path') 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::::new().into(); + *value = Map::::new().into(); if let ValueKind::Table(ref mut map) = value.kind { Some( @@ -186,7 +186,7 @@ impl Expression { ValueKind::Table(_) => {} _ => { - *root = MapImpl::::new().into(); + *root = Map::::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::::new().into()) + .or_insert_with(|| Map::::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::::new().into(); + *parent = Map::::new().into(); Expression::Identifier(key.clone()).set(parent, value); } -- cgit v1.2.3