Skip to content

Commit

Permalink
add Copy implementation for SyncCallback
Browse files Browse the repository at this point in the history
  • Loading branch information
rambip committed Oct 21, 2023
1 parent d67c5f1 commit c966858
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions leptos_reactive/src/callback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ impl<In, Out> Clone for SyncCallback<In, Out> {
}
}

impl<In: 'static, Out: 'static> Copy for SyncCallback<In, Out> {}

impl<In: 'static, Out: 'static> SyncCallback<In, Out> {
/// Creates a new callback from the given function.
pub fn new<F>(fun: F) -> Self
Expand Down

0 comments on commit c966858

Please sign in to comment.