diff options
Diffstat (limited to 'src/file/format/ron.rs')
-rw-r--r-- | src/file/format/ron.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/file/format/ron.rs b/src/file/format/ron.rs index a527d6f..769fd53 100644 --- a/src/file/format/ron.rs +++ b/src/file/format/ron.rs @@ -1,17 +1,17 @@ -use linked_hash_map::LinkedHashMap; use std::error::Error; +use crate::map::MapImpl; use crate::value::{Value, ValueKind}; pub fn parse( uri: Option<&String>, text: &str, -) -> Result<LinkedHashMap<String, Value>, Box<dyn Error + Send + Sync>> { +) -> Result<MapImpl<String, Value>, Box<dyn Error + Send + Sync>> { let value = from_ron_value(uri, ron::from_str(text)?)?; match value.kind { ValueKind::Table(map) => Ok(map), - _ => Ok(LinkedHashMap::new()), + _ => Ok(MapImpl::new()), } } @@ -56,7 +56,7 @@ fn from_ron_value( Ok((key, value)) }) - .collect::<Result<LinkedHashMap<_, _>, _>>()?; + .collect::<Result<MapImpl<_, _>, _>>()?; ValueKind::Table(map) } |