diff options
author | kpcyrd <git@rxv.cc> | 2021-05-06 17:37:28 +0200 |
---|---|---|
committer | kpcyrd <git@rxv.cc> | 2021-05-07 16:33:37 +0200 |
commit | e57d716e5c88057b652fe52d4fc6f6518b4758e1 (patch) | |
tree | 029cc66d4f58a83c53a6700e57d3f48ab0b3851e /src | |
parent | 86f87764fed802f876a7b8bf1fc7f824c28d28c8 (diff) |
Update to rust 2018 edition
Diffstat (limited to 'src')
-rw-r--r-- | src/error.rs | 1 | ||||
-rw-r--r-- | src/file/format/hjson.rs | 2 | ||||
-rw-r--r-- | src/file/format/json.rs | 2 | ||||
-rw-r--r-- | src/file/format/ron.rs | 2 | ||||
-rw-r--r-- | src/file/format/toml.rs | 2 | ||||
-rw-r--r-- | src/lib.rs | 12 |
6 files changed, 6 insertions, 15 deletions
diff --git a/src/error.rs b/src/error.rs index c7578d8..28142b5 100644 --- a/src/error.rs +++ b/src/error.rs @@ -2,7 +2,6 @@ use std::error::Error; use std::fmt; use std::result; -use nom; use serde::de; use serde::ser; diff --git a/src/file/format/hjson.rs b/src/file/format/hjson.rs index 8a1e474..f94b1d3 100644 --- a/src/file/format/hjson.rs +++ b/src/file/format/hjson.rs @@ -1,8 +1,6 @@ use std::collections::HashMap; use std::error::Error; -use serde_hjson; - use crate::value::{Value, ValueKind}; pub fn parse( diff --git a/src/file/format/json.rs b/src/file/format/json.rs index 568a16b..87a6e61 100644 --- a/src/file/format/json.rs +++ b/src/file/format/json.rs @@ -1,8 +1,6 @@ use std::collections::HashMap; use std::error::Error; -use serde_json; - use crate::value::{Value, ValueKind}; pub fn parse( diff --git a/src/file/format/ron.rs b/src/file/format/ron.rs index d3a97cb..f7dbce3 100644 --- a/src/file/format/ron.rs +++ b/src/file/format/ron.rs @@ -1,8 +1,6 @@ use std::collections::HashMap; use std::error::Error; -use ron; - use crate::value::{Value, ValueKind}; pub fn parse( diff --git a/src/file/format/toml.rs b/src/file/format/toml.rs index c5b7a7d..c7c5972 100644 --- a/src/file/format/toml.rs +++ b/src/file/format/toml.rs @@ -1,8 +1,6 @@ use std::collections::HashMap; use std::error::Error; -use toml; - use crate::value::{Value, ValueKind}; pub fn parse( @@ -61,9 +61,9 @@ mod ser; mod source; mod value; -pub use config::Config; -pub use env::Environment; -pub use error::ConfigError; -pub use file::{File, FileFormat, FileSourceFile, FileSourceString}; -pub use source::Source; -pub use value::Value; +pub use crate::config::Config; +pub use crate::env::Environment; +pub use crate::error::ConfigError; +pub use crate::file::{File, FileFormat, FileSourceFile, FileSourceString}; +pub use crate::source::Source; +pub use crate::value::Value; |