summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index 8ce3978..3977c40 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -14,7 +14,7 @@ use rayon::prelude::*;
mod format;
-type Map = BTreeMap<&'static str, String>;
+type Map = BTreeMap<&'static str, serde_yaml::Value>;
fn main() -> io::Result<()> {
@@ -69,8 +69,7 @@ fn mkmap(e: &DirEntry) -> Map {
("Gid", format::gid(&e)),
("Group", format::group(&e)),
];
- let mut map: BTreeMap<&str, String> =
- BTreeMap::from(fields.iter().cloned().collect());
+ let mut map: Map = BTreeMap::from(fields.iter().cloned().collect());
if let Ok(m) = e.metadata() {
if m.is_file() {