Skip to content

Commit

Permalink
Merge pull request #379 from JunichiSugiura/clonable-builder-state
Browse files Browse the repository at this point in the history
Add clone to builder state types
  • Loading branch information
matthiasbeyer committed Oct 12, 2022
2 parents 1ccfc0a + 02c80a5 commit 655a02d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/builder.rs
Expand Up @@ -98,7 +98,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 @@ -124,7 +124,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 655a02d

Please sign in to comment.