diff options
author | Radosław Kot <rdkt13@gmail.com> | 2021-04-24 19:44:27 +0200 |
---|---|---|
committer | Radosław Kot <rdkt13@gmail.com> | 2021-05-08 17:43:16 +0200 |
commit | 98662dd899d4eaab5dc2da07d5bb658960b588a6 (patch) | |
tree | c7513c9038ee817c62e444ff02507bca2da363bc /src/builder.rs | |
parent | 82d23c76a8637360e03c0b43d9a1c0c26d820d9f (diff) |
Modify tests to use both ConfigBuilder and Config
Diffstat (limited to 'src/builder.rs')
-rw-r--r-- | src/builder.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/builder.rs b/src/builder.rs index 8f3081c..8c0e82d 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -1,9 +1,7 @@ use std::str::FromStr; use std::{collections::HashMap, iter::IntoIterator}; -use crate::{ - config::Config, error, error::ConfigError, path::Expression, source::Source, value::Value, -}; +use crate::{config::Config, error, path::Expression, source::Source, value::Value}; /// A configuration builder /// @@ -142,7 +140,7 @@ impl ConfigBuilder { fn build_internal( defaults: HashMap<Expression, Value>, overrides: HashMap<Expression, Value>, - sources: &Vec<Box<dyn Source + Send + Sync>>, + sources: &[Box<dyn Source + Send + Sync>], ) -> error::Result<Config> { let mut cache: Value = HashMap::<String, Value>::new().into(); |