Skip to content

Commit

Permalink
clippy hint: copy instead of clone for callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
rambip committed Sep 28, 2023
1 parent fde1432 commit c93f1a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions leptos_reactive/src/callback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ impl<In> fmt::Debug for Callback<In> {

impl<In, Out> Clone for Callback<In, Out> {
fn clone(&self) -> Self {
Self(self.0.clone())
Self(self.0)
}
}

Expand Down Expand Up @@ -176,7 +176,7 @@ impl<In, Out> Callable<In, Out> for SyncCallback<In, Out> {

impl<In, Out> Clone for SyncCallback<In, Out> {
fn clone(&self) -> Self {
Self(self.0.clone())
Self(self.0)
}
}

Expand Down

0 comments on commit c93f1a3

Please sign in to comment.