summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Orchard <if_coding@fastmail.com>2021-08-02 23:15:59 -0700
committerDavid Orchard <if_coding@fastmail.com>2021-08-15 10:32:15 -0700
commit0e0ae2b359b5c943055c988c3c78f36db2503468 (patch)
treee2b9fec4caed5524b5c999a085833fdf360c5181 /src
parentea62693f6fff0dd24865b934334260d06f190e01 (diff)
Remove unnecessary uses for feature/map
Diffstat (limited to 'src')
-rw-r--r--src/file/format/mod.rs5
1 files changed, 3 insertions, 2 deletions
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<FileFormat, Vec<&'static str>> = {
- let mut formats: MapImpl<FileFormat, Vec<_>> = MapImpl::new();
+ pub static ref ALL_EXTENSIONS: HashMap<FileFormat, Vec<&'static str>> = {
+ let mut formats: HashMap<FileFormat, Vec<_>> = HashMap::new();
#[cfg(feature = "toml")]
formats.insert(FileFormat::Toml, vec!["toml"]);