Skip to content

Commit

Permalink
Add Clone trait to builder state
Browse files Browse the repository at this point in the history
(cherry picked from commit 02c80a5)
Signed-off-by: Matthias Beyer <[email protected]>
  • Loading branch information
JunichiSugiura authored and matthiasbeyer committed Dec 4, 2022
1 parent 46e6afc commit bfa2eae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ pub struct ConfigBuilder<St: BuilderState> {
pub trait BuilderState {}

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

/// Represents data specific to builder in asychronous state, with support for async.
#[derive(Debug, Default)]
#[derive(Debug, Default, Clone)]
pub struct AsyncState {
sources: Vec<SourceType>,
}
Expand Down

0 comments on commit bfa2eae

Please sign in to comment.