From 0e0ae2b359b5c943055c988c3c78f36db2503468 Mon Sep 17 00:00:00 2001 From: David Orchard Date: Mon, 2 Aug 2021 23:15:59 -0700 Subject: Remove unnecessary uses for feature/map --- src/file/format/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/file/format/mod.rs b/src/file/format/mod.rs index df59ca6..640ef28 100644 --- a/src/file/format/mod.rs +++ b/src/file/format/mod.rs @@ -2,6 +2,7 @@ // BUG: ? For some reason this doesn't do anything if I try and function scope this #![allow(unused_mut)] +use std::collections::HashMap; use std::error::Error; use crate::map::MapImpl; @@ -62,8 +63,8 @@ pub enum FileFormat { lazy_static! { #[doc(hidden)] // #[allow(unused_mut)] ? - pub static ref ALL_EXTENSIONS: MapImpl> = { - let mut formats: MapImpl> = MapImpl::new(); + pub static ref ALL_EXTENSIONS: HashMap> = { + let mut formats: HashMap> = HashMap::new(); #[cfg(feature = "toml")] formats.insert(FileFormat::Toml, vec!["toml"]); -- cgit v1.2.3