From 09b58582d5cd6d4bfb8ebd4aa96f89504d0c19b9 Mon Sep 17 00:00:00 2001 From: JunichiSugiura Date: Tue, 27 Sep 2022 20:46:45 +0200 Subject: [PATCH] Add Clone trait to builder state (cherry picked from commit 02c80a5c5a68022bd2d9eee7a67acff02062abb0) Signed-off-by: Matthias Beyer --- src/builder.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/builder.rs b/src/builder.rs index 6f928c69..ee266d41 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -97,7 +97,7 @@ pub struct ConfigBuilder { 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>, } @@ -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, }