From 2e493d6bb7339bd278a597555b707aa379eebbcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Sat, 9 Dec 2023 13:40:26 -0800 Subject: [PATCH] feat(thinker): make ThinkerBuilder be Clone Fixes: https://github.com/zkat/big-brain/issues/85 --- src/choices.rs | 2 +- src/thinker.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/choices.rs b/src/choices.rs index 1913164..425fe8f 100644 --- a/src/choices.rs +++ b/src/choices.rs @@ -28,7 +28,7 @@ impl Choice { } /// Builds a new [`Choice`]. -#[derive(Debug, Reflect)] +#[derive(Clone, Debug, Reflect)] #[reflect(from_reflect = false)] pub struct ChoiceBuilder { when_label: Option, diff --git a/src/thinker.rs b/src/thinker.rs index 7dac192..e028510 100644 --- a/src/thinker.rs +++ b/src/thinker.rs @@ -160,7 +160,7 @@ impl Thinker { /// This is what you actually use to configure Thinker behavior. It's a plain /// old [`ActionBuilder`], as well. -#[derive(Component, Debug, Default)] +#[derive(Component, Clone, Debug, Default)] pub struct ThinkerBuilder { picker: Option>, otherwise: Option,