Skip to content

Commit

Permalink
refactor: remove clone
Browse files Browse the repository at this point in the history
  • Loading branch information
marieaurore123 committed Oct 21, 2024
1 parent d75e4bb commit 2865134
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rig-core/examples/calculator_chatbot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ struct MathError;
#[error("Init error")]
struct InitError;

#[derive(Deserialize, Serialize, Clone)]
#[derive(Deserialize, Serialize)]
struct Add;
impl Tool for Add {
const NAME: &'static str = "add";
Expand Down Expand Up @@ -77,7 +77,7 @@ impl ToolEmbedding for Add {
fn context(&self) -> Self::Context {}
}

#[derive(Deserialize, Serialize, Clone)]
#[derive(Deserialize, Serialize)]
struct Subtract;
impl Tool for Subtract {
const NAME: &'static str = "subtract";
Expand Down

0 comments on commit 2865134

Please sign in to comment.