summaryrefslogtreecommitdiffstats
path: root/src/file/format/mod.rs
diff options
context:
space:
mode:
authorRyan Leckey <ryan@launchbadge.com>2017-06-22 23:10:56 -0700
committerRyan Leckey <ryan@launchbadge.com>2017-06-22 23:10:56 -0700
commitc798fd881fa8652e5d9ea2873babed55da1ad05f (patch)
tree85819daff6b8f715cc11a5ede003881cdd034b94 /src/file/format/mod.rs
parentde0de66f1cd01c5e6184b9e326ca58e201289326 (diff)
Add a test to ensure we can get dates out of config
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();