Skip to content

Commit

Permalink
Add Clone for SyncConnectionWrapper
Browse files Browse the repository at this point in the history
Clone is needed for some async stuff like teloxide.
  • Loading branch information
pickfire committed Aug 6, 2024
1 parent 702ae3f commit a565db5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/sync_connection_wrapper/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,14 @@ impl<C> SyncConnectionWrapper<C> {
}
}

impl<C> Clone for SyncConnectionWrapper<C> {
fn clone(&self) -> Self {
Self {
inner: self.inner.clone()
}
}
}

#[cfg(any(
feature = "deadpool",
feature = "bb8",
Expand Down

0 comments on commit a565db5

Please sign in to comment.