diff options
Diffstat (limited to 'src/file/mod.rs')
-rw-r--r-- | src/file/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/file/mod.rs b/src/file/mod.rs index d5744f4..0160d7c 100644 --- a/src/file/mod.rs +++ b/src/file/mod.rs @@ -4,7 +4,7 @@ pub mod source; use std::path::{Path, PathBuf}; use crate::error::*; -use crate::map::MapImpl; +use crate::map::Map; use crate::source::Source; use crate::value::Value; @@ -99,7 +99,7 @@ where Box::new((*self).clone()) } - fn collect(&self) -> Result<MapImpl<String, Value>> { + fn collect(&self) -> Result<Map<String, Value>> { // Coerce the file contents to a string let (uri, contents, format) = match self .source @@ -110,7 +110,7 @@ where Err(error) => { if !self.required { - return Ok(MapImpl::new()); + return Ok(Map::new()); } return Err(error); |