Skip to content

Commit

Permalink
add clone trait to builder state
Browse files Browse the repository at this point in the history
  • Loading branch information
JunichiSugiura committed Sep 27, 2022
1 parent 0d58da2 commit 02c80a5
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 @@ -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 02c80a5

Please sign in to comment.