Skip to content

Commit

Permalink
Merge pull request #398 from matthiasbeyer/backport-379
Browse files Browse the repository at this point in the history
Backport 379: Add clone trait to builder state
  • Loading branch information
matthiasbeyer authored Dec 4, 2022
2 parents a2b7276 + 09b5858 commit bab6e30
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 bab6e30

Please sign in to comment.