File tree 3 files changed +4
-19
lines changed
3 files changed +4
-19
lines changed Original file line number Diff line number Diff line change @@ -120,11 +120,7 @@ pub struct DefaultState {
120
120
///
121
121
/// Refer to [`ConfigBuilder`] for similar API sample usage or to the examples folder of the crate, where such a source is implemented.
122
122
#[ derive( Debug , Clone , Default ) ]
123
- pub struct AsyncConfigBuilder {
124
- defaults : Map < Expression , Value > ,
125
- overrides : Map < Expression , Value > ,
126
- sources : Vec < SourceType > ,
127
- }
123
+ pub struct AsyncConfigBuilder { }
128
124
129
125
/// Represents data specific to builder in asychronous state, with support for async.
130
126
#[ derive( Debug , Default ) ]
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use crate::map::Map;
5
5
use crate :: source:: Source ;
6
6
use crate :: value:: { Value , ValueKind } ;
7
7
8
- #[ derive( Clone , Debug ) ]
8
+ #[ derive( Clone , Debug , Default ) ]
9
9
pub struct Environment {
10
10
/// Optional prefix that will limit access to the environment to only keys that
11
11
/// begin with the defined prefix.
@@ -63,17 +63,6 @@ impl Environment {
63
63
}
64
64
}
65
65
66
- impl Default for Environment {
67
- fn default ( ) -> Environment {
68
- Environment {
69
- prefix : None ,
70
- separator : None ,
71
- ignore_empty : false ,
72
- try_parsing : false ,
73
- }
74
- }
75
- }
76
-
77
66
impl Source for Environment {
78
67
fn clone_into_box ( & self ) -> Box < dyn Source + Send + Sync > {
79
68
Box :: new ( ( * self ) . clone ( ) )
Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ impl Expression {
193
193
match value. kind {
194
194
ValueKind :: Table ( ref incoming_map) => {
195
195
// Pull out another table
196
- let mut target = if let ValueKind :: Table ( ref mut map) = root. kind {
196
+ let target = if let ValueKind :: Table ( ref mut map) = root. kind {
197
197
map. entry ( id. clone ( ) )
198
198
. or_insert_with ( || Map :: < String , Value > :: new ( ) . into ( ) )
199
199
} else {
@@ -202,7 +202,7 @@ impl Expression {
202
202
203
203
// Continue the deep merge
204
204
for ( key, val) in incoming_map {
205
- Expression :: Identifier ( key. clone ( ) ) . set ( & mut target, val. clone ( ) ) ;
205
+ Expression :: Identifier ( key. clone ( ) ) . set ( target, val. clone ( ) ) ;
206
206
}
207
207
}
208
208
You can’t perform that action at this time.
0 commit comments