Skip to content

Commit 02c80a5

Browse files
add clone trait to builder state
1 parent 0d58da2 commit 02c80a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/builder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ pub struct ConfigBuilder<St: BuilderState> {
9898
pub trait BuilderState {}
9999

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

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

0 commit comments

Comments
 (0)