diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2022-12-04 15:25:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-04 15:25:59 +0100 |
commit | bab6e3084d570d00a0bcfef97b705bd406b1a55e (patch) | |
tree | c8ba4cb3aadb577647dfc2d8800fe64bd9c26d4b | |
parent | a2b72760d3ceffc52b4201ea49b789347e26b57f (diff) | |
parent | 09b58582d5cd6d4bfb8ebd4aa96f89504d0c19b9 (diff) |
Merge pull request #398 from matthiasbeyer/backport-379
Backport 379: Add clone trait to builder state
-rw-r--r-- | src/builder.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/builder.rs b/src/builder.rs index 6f928c6..ee266d4 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -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>>, } @@ -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>, } |