summaryrefslogtreecommitdiffstats
path: root/src/file/format
diff options
context:
space:
mode:
Diffstat (limited to 'src/file/format')
-rw-r--r--src/file/format/hjson.rs6
-rw-r--r--src/file/format/ini.rs6
-rw-r--r--src/file/format/json.rs6
-rw-r--r--src/file/format/mod.rs3
-rw-r--r--src/file/format/toml.rs4
-rw-r--r--src/file/format/yaml.rs4
6 files changed, 20 insertions, 9 deletions
diff --git a/src/file/format/hjson.rs b/src/file/format/hjson.rs
index 41631ea..8a1e474 100644
--- a/src/file/format/hjson.rs
+++ b/src/file/format/hjson.rs
@@ -1,7 +1,9 @@
-use serde_hjson;
use std::collections::HashMap;
use std::error::Error;
-use value::{Value, ValueKind};
+
+use serde_hjson;
+
+use crate::value::{Value, ValueKind};
pub fn parse(
uri: Option<&String>,
diff --git a/src/file/format/ini.rs b/src/file/format/ini.rs
index 0deefb5..b45695a 100644
--- a/src/file/format/ini.rs
+++ b/src/file/format/ini.rs
@@ -1,7 +1,9 @@
-use ini::Ini;
use std::collections::HashMap;
use std::error::Error;
-use value::{Value, ValueKind};
+
+use ini::Ini;
+
+use crate::value::{Value, ValueKind};
pub fn parse(
uri: Option<&String>,
diff --git a/src/file/format/json.rs b/src/file/format/json.rs
index 6a05051..568a16b 100644
--- a/src/file/format/json.rs
+++ b/src/file/format/json.rs
@@ -1,7 +1,9 @@
-use serde_json;
use std::collections::HashMap;
use std::error::Error;
-use value::{Value, ValueKind};
+
+use serde_json;
+
+use crate::value::{Value, ValueKind};
pub fn parse(
uri: Option<&String>,
diff --git a/src/file/format/mod.rs b/src/file/format/mod.rs
index c6367c4..0ceeaf4 100644
--- a/src/file/format/mod.rs
+++ b/src/file/format/mod.rs
@@ -4,7 +4,8 @@
use std::collections::HashMap;
use std::error::Error;
-use value::Value;
+
+use crate::value::Value;
#[cfg(feature = "toml")]
mod toml;
diff --git a/src/file/format/toml.rs b/src/file/format/toml.rs
index 409f73f..c5b7a7d 100644
--- a/src/file/format/toml.rs
+++ b/src/file/format/toml.rs
@@ -1,7 +1,9 @@
use std::collections::HashMap;
use std::error::Error;
+
use toml;
-use value::{Value, ValueKind};
+
+use crate::value::{Value, ValueKind};
pub fn parse(
uri: Option<&String>,
diff --git a/src/file/format/yaml.rs b/src/file/format/yaml.rs
index 18716f6..2526395 100644
--- a/src/file/format/yaml.rs
+++ b/src/file/format/yaml.rs
@@ -2,9 +2,11 @@ use std::collections::HashMap;
use std::error::Error;
use std::fmt;
use std::mem;
-use value::{Value, ValueKind};
+
use yaml_rust as yaml;
+use crate::value::{Value, ValueKind};
+
pub fn parse(
uri: Option<&String>,
text: &str,