Skip to content

Commit 0e0ae2b

Browse files
author
David Orchard
committed
Remove unnecessary uses for feature/map
1 parent ea62693 commit 0e0ae2b

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/file/format/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// BUG: ? For some reason this doesn't do anything if I try and function scope this
33
#![allow(unused_mut)]
44

5+
use std::collections::HashMap;
56
use std::error::Error;
67

78
use crate::map::MapImpl;
@@ -62,8 +63,8 @@ pub enum FileFormat {
6263
lazy_static! {
6364
#[doc(hidden)]
6465
// #[allow(unused_mut)] ?
65-
pub static ref ALL_EXTENSIONS: MapImpl<FileFormat, Vec<&'static str>> = {
66-
let mut formats: MapImpl<FileFormat, Vec<_>> = MapImpl::new();
66+
pub static ref ALL_EXTENSIONS: HashMap<FileFormat, Vec<&'static str>> = {
67+
let mut formats: HashMap<FileFormat, Vec<_>> = HashMap::new();
6768

6869
#[cfg(feature = "toml")]
6970
formats.insert(FileFormat::Toml, vec!["toml"]);

tests/async_builder.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![cfg(feature = "preserve_order")]
2-
31
use async_trait::async_trait;
42
use config::*;
53
use std::{env, fs, path, str::FromStr};

tests/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![cfg(all(feature = "toml", feature = "preserve_order"))]
1+
#![cfg(feature = "toml")]
22

33
extern crate config;
44

0 commit comments

Comments
 (0)