summaryrefslogtreecommitdiffstats
path: root/src/file
diff options
context:
space:
mode:
Diffstat (limited to 'src/file')
-rw-r--r--src/file/format/hjson.rs1
-rw-r--r--src/file/format/ini.rs1
-rw-r--r--src/file/format/json.rs1
-rw-r--r--src/file/format/mod.rs1
-rw-r--r--src/file/format/toml.rs3
-rw-r--r--src/file/format/yaml.rs1
-rw-r--r--src/file/source/file.rs3
-rw-r--r--src/file/source/mod.rs1
-rw-r--r--src/file/source/string.rs6
9 files changed, 2 insertions, 16 deletions
diff --git a/src/file/format/hjson.rs b/src/file/format/hjson.rs
index 457cfbf..41631ea 100644
--- a/src/file/format/hjson.rs
+++ b/src/file/format/hjson.rs
@@ -1,5 +1,4 @@
use serde_hjson;
-use source::Source;
use std::collections::HashMap;
use std::error::Error;
use value::{Value, ValueKind};
diff --git a/src/file/format/ini.rs b/src/file/format/ini.rs
index bc51def..0deefb5 100644
--- a/src/file/format/ini.rs
+++ b/src/file/format/ini.rs
@@ -1,5 +1,4 @@
use ini::Ini;
-use source::Source;
use std::collections::HashMap;
use std::error::Error;
use value::{Value, ValueKind};
diff --git a/src/file/format/json.rs b/src/file/format/json.rs
index 0ff2beb..6a05051 100644
--- a/src/file/format/json.rs
+++ b/src/file/format/json.rs
@@ -1,5 +1,4 @@
use serde_json;
-use source::Source;
use std::collections::HashMap;
use std::error::Error;
use value::{Value, ValueKind};
diff --git a/src/file/format/mod.rs b/src/file/format/mod.rs
index f46ae13..c6367c4 100644
--- a/src/file/format/mod.rs
+++ b/src/file/format/mod.rs
@@ -2,7 +2,6 @@
// BUG: ? For some reason this doesn't do anything if I try and function scope this
#![allow(unused_mut)]
-use source::Source;
use std::collections::HashMap;
use std::error::Error;
use value::Value;
diff --git a/src/file/format/toml.rs b/src/file/format/toml.rs
index a40104e..409f73f 100644
--- a/src/file/format/toml.rs
+++ b/src/file/format/toml.rs
@@ -1,5 +1,4 @@
-use source::Source;
-use std::collections::{BTreeMap, HashMap};
+use std::collections::HashMap;
use std::error::Error;
use toml;
use value::{Value, ValueKind};
diff --git a/src/file/format/yaml.rs b/src/file/format/yaml.rs
index c458c3c..18716f6 100644
--- a/src/file/format/yaml.rs
+++ b/src/file/format/yaml.rs
@@ -1,4 +1,3 @@
-use source::Source;
use std::collections::HashMap;
use std::error::Error;
use std::fmt;
diff --git a/src/file/source/file.rs b/src/file/source/file.rs
index 804d108..12805fd 100644
--- a/src/file/source/file.rs
+++ b/src/file/source/file.rs
@@ -1,6 +1,4 @@
use std::error::Error;
-use std::result;
-use std::str::FromStr;
use file::format::ALL_EXTENSIONS;
use std::env;
@@ -10,7 +8,6 @@ use std::iter::Iterator;
use std::path::{Path, PathBuf};
use super::{FileFormat, FileSource};
-use source::Source;
/// Describes a file sourced from a file
#[derive(Clone, Debug)]
diff --git a/src/file/source/mod.rs b/src/file/source/mod.rs
index ab276d0..7d8e6a5 100644
--- a/src/file/source/mod.rs
+++ b/src/file/source/mod.rs
@@ -5,7 +5,6 @@ use std::error::Error;
use std::fmt::Debug;
use super::FileFormat;
-use source::Source;
/// Describes where the file is sourced
pub trait FileSource: Debug + Clone {
diff --git a/src/file/source/string.rs b/src/file/source/string.rs
index 3896cce..cd2089d 100644
--- a/src/file/source/string.rs
+++ b/src/file/source/string.rs
@@ -1,9 +1,5 @@
-use std::error::Error;
-use std::result;
-use std::str::FromStr;
-
use super::{FileFormat, FileSource};
-use source::Source;
+use std::error::Error;
/// Describes a file sourced from a string
#[derive(Clone, Debug)]