summaryrefslogtreecommitdiffstats
path: root/src/file/format/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/file/format/mod.rs')
-rw-r--r--src/file/format/mod.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/file/format/mod.rs b/src/file/format/mod.rs
index 1988513..366fa45 100644
--- a/src/file/format/mod.rs
+++ b/src/file/format/mod.rs
@@ -1,3 +1,7 @@
+// If no features are used, there is an "unused mut" warning in `ALL_EXTENSIONS`
+// BUG: ? For some reason this doesn't do anything if I try and function scope this
+#![allow(unused_mut)]
+
use source::Source;
use value::Value;
use std::error::Error;
@@ -29,6 +33,7 @@ pub enum FileFormat {
lazy_static! {
#[doc(hidden)]
+ // #[allow(unused_mut)] ?
pub static ref ALL_EXTENSIONS: HashMap<FileFormat, Vec<&'static str>> = {
let mut formats: HashMap<FileFormat, Vec<_>> = HashMap::new();