Skip to content

Commit

Permalink
add Clone implementation for use_bridge (#2150)
Browse files Browse the repository at this point in the history
  • Loading branch information
deftsp authored Nov 16, 2021
1 parent ee54bbd commit a5c343d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/yew-agent/src/hooks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,11 @@ where

UseBridgeHandle { inner: bridge }
}

impl<T: Agent> Clone for UseBridgeHandle<T> {
fn clone(&self) -> Self {
Self {
inner: self.inner.clone(),
}
}
}

0 comments on commit a5c343d

Please sign in to comment.