File tree Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -125,9 +125,8 @@ enum SourceType {
125
125
impl BuilderState for DefaultState { }
126
126
impl BuilderState for AsyncState { }
127
127
128
+ /// Operations allowed in any state
128
129
impl < St : BuilderState > ConfigBuilder < St > {
129
- // operations allowed in any state
130
-
131
130
/// Set a default `value` at `key`
132
131
///
133
132
/// This value can be overwritten by any [`Source`], [`AsyncSource`] or override.
@@ -183,9 +182,8 @@ impl<St: BuilderState> ConfigBuilder<St> {
183
182
}
184
183
}
185
184
185
+ /// Operations allowed in sync state
186
186
impl ConfigBuilder < DefaultState > {
187
- // operations allowed in sync state
188
-
189
187
/// Registers new [`Source`] in this builder.
190
188
///
191
189
/// Calling this method does not invoke any I/O. [`Source`] is only saved in internal register for later use.
@@ -273,9 +271,8 @@ impl ConfigBuilder<DefaultState> {
273
271
}
274
272
}
275
273
274
+ /// Operations allowed in async state
276
275
impl ConfigBuilder < AsyncState > {
277
- // operations allowed in async state
278
-
279
276
/// Registers new [`Source`] in this builder.
280
277
///
281
278
/// Calling this method does not invoke any I/O. [`Source`] is only saved in internal register for later use.
Original file line number Diff line number Diff line change @@ -11,8 +11,9 @@ use crate::ser::ConfigSerializer;
11
11
use crate :: source:: Source ;
12
12
use crate :: value:: { Table , Value } ;
13
13
14
- /// A prioritized configuration repository. It maintains a set of
15
- /// configuration sources, fetches values to populate those, and provides
14
+ /// A prioritized configuration repository.
15
+ ///
16
+ /// It maintains a set of configuration sources, fetches values to populate those, and provides
16
17
/// them according to the source's priority.
17
18
#[ derive( Clone , Debug ) ]
18
19
pub struct Config {
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ use crate::map::Map;
9
9
10
10
/// Underlying kind of the configuration value.
11
11
///
12
- /// Standard operations on a `Value` by users of this crate do not require
13
- /// knowledge of `ValueKind`. Introspection of underlying kind is only required
12
+ /// Standard operations on a [ `Value`] by users of this crate do not require
13
+ /// knowledge of [ `ValueKind`] . Introspection of underlying kind is only required
14
14
/// when the configuration values are unstructured or do not have known types.
15
15
#[ derive( Debug , Clone , PartialEq ) ]
16
16
pub enum ValueKind {
You can’t perform that action at this time.
0 commit comments