Skip to content

Commit

Permalink
Drop unnecessary manual Clone impl
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralith committed Nov 5, 2021
1 parent 0b6531b commit ef9ec22
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions quinn/src/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ impl Future for ConnectionDriver {
/// May be cloned to obtain another handle to the same connection.
///
/// [`Connection::close()`]: Connection::close
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct Connection(ConnectionRef);

impl Connection {
Expand Down Expand Up @@ -510,12 +510,6 @@ impl Connection {
}
}

impl Clone for Connection {
fn clone(&self) -> Self {
Connection(self.0.clone())
}
}

/// A stream of unidirectional QUIC streams initiated by a remote peer.
///
/// Incoming streams are *always* opened in the same order that the peer created them, but data can
Expand Down

0 comments on commit ef9ec22

Please sign in to comment.