diff options
author | David Orchard <if_coding@fastmail.com> | 2021-08-02 23:17:08 -0700 |
---|---|---|
committer | David Orchard <if_coding@fastmail.com> | 2021-08-15 10:34:05 -0700 |
commit | be82af2a474b9c6ac85ec1e001af1704521820e6 (patch) | |
tree | b065f9a4adaddfad570b370937e8081cd6fa70ed /src/file/mod.rs | |
parent | 0e0ae2b359b5c943055c988c3c78f36db2503468 (diff) |
Rename MapImpl to Map
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); |