diff options
Diffstat (limited to 'src/file/format/ini.rs')
-rw-r--r-- | src/file/format/ini.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/file/format/ini.rs b/src/file/format/ini.rs index b5f742d..9295e60 100644 --- a/src/file/format/ini.rs +++ b/src/file/format/ini.rs @@ -2,19 +2,19 @@ use std::error::Error; use ini::Ini; -use crate::map::MapImpl; +use crate::map::Map; use crate::value::{Value, ValueKind}; pub fn parse( uri: Option<&String>, text: &str, -) -> Result<MapImpl<String, Value>, Box<dyn Error + Send + Sync>> { - let mut map: MapImpl<String, Value> = MapImpl::new(); +) -> Result<Map<String, Value>, Box<dyn Error + Send + Sync>> { + let mut map: Map<String, Value> = Map::new(); let i = Ini::load_from_str(text)?; for (sec, prop) in i.iter() { match sec { Some(sec) => { - let mut sec_map: MapImpl<String, Value> = MapImpl::new(); + let mut sec_map: Map<String, Value> = Map::new(); for (k, v) in prop.iter() { sec_map.insert( k.to_owned(), |