Skip to content

Commit bab6e30

Browse files
Merge pull request #398 from matthiasbeyer/backport-379
Backport 379: Add clone trait to builder state
2 parents a2b7276 + 09b5858 commit bab6e30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/builder.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ pub struct ConfigBuilder<St: BuilderState> {
9797
pub trait BuilderState {}
9898

9999
/// Represents data specific to builder in default, sychronous state, without support for async.
100-
#[derive(Debug, Default)]
100+
#[derive(Debug, Default, Clone)]
101101
pub struct DefaultState {
102102
sources: Vec<Box<dyn Source + Send + Sync>>,
103103
}
@@ -123,7 +123,7 @@ pub struct DefaultState {
123123
pub struct AsyncConfigBuilder {}
124124

125125
/// Represents data specific to builder in asychronous state, with support for async.
126-
#[derive(Debug, Default)]
126+
#[derive(Debug, Default, Clone)]
127127
pub struct AsyncState {
128128
sources: Vec<SourceType>,
129129
}

0 commit comments

Comments
 (0)