Skip to content

Commit 57f0dad

Browse files
committed
fix: match existing peer clone signature
1 parent 9614cdb commit 57f0dad

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

crates/rmcp/src/service.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -554,12 +554,11 @@ pub struct Peer<R: ServiceRole> {
554554
subscription_channels: Arc<std::sync::RwLock<SubscriptionChannelMap<R::PeerNot>>>,
555555
}
556556

557-
impl<R> Clone for Peer<R>
557+
impl<R: Clone + ServiceRole> Clone for Peer<R>
558558
where
559-
R: Clone + ServiceRole,
560559
R::PeerInfo: Clone,
561560
{
562-
fn clone(&self) -> Self {
561+
fn clone(&self) -> Peer<R> {
563562
Self {
564563
tx: self.tx.clone(),
565564
request_id_provider: self.request_id_provider.clone(),

0 commit comments

Comments
 (0)