Skip to content

Commit

Permalink
transports/tcp: fix clippy::from-over-into (#2774)
Browse files Browse the repository at this point in the history
  • Loading branch information
elenaf9 committed Jul 25, 2022
1 parent 0ec3bbc commit 74f01e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions transports/tcp/src/provider/tokio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ impl Provider for Tcp {
#[derive(Debug)]
pub struct TcpStream(pub tokio_crate::net::TcpStream);

impl Into<tokio_crate::net::TcpStream> for TcpStream {
fn into(self: TcpStream) -> tokio_crate::net::TcpStream {
self.0
impl From<TcpStream> for tokio_crate::net::TcpStream {
fn from(t: TcpStream) -> tokio_crate::net::TcpStream {
t.0
}
}

Expand Down

0 comments on commit 74f01e4

Please sign in to comment.