Skip to content

Commit

Permalink
feat(thinker): make ThinkerBuilder be Clone
Browse files Browse the repository at this point in the history
Fixes: #85
  • Loading branch information
zkat committed Dec 9, 2023
1 parent 09d1b7d commit 2e493d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/choices.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>,
Expand Down
2 changes: 1 addition & 1 deletion src/thinker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Arc<dyn Picker>>,
otherwise: Option<ActionBuilderWrapper>,
Expand Down

0 comments on commit 2e493d6

Please sign in to comment.