From 6df6411b7234c36555e5b38aa7084f641354cce2 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 31 Jan 2023 23:57:33 +0100 Subject: fix clippy --- src/client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client.rs') diff --git a/src/client.rs b/src/client.rs index d82c91e..607dd17 100644 --- a/src/client.rs +++ b/src/client.rs @@ -65,7 +65,7 @@ impl ClientConn { debug!( "Handshake complete (client) with {}@{}", - hex::encode(&peer_id), + hex::encode(peer_id), remote_addr ); @@ -250,7 +250,7 @@ impl CancelOnDrop { fn for_stream(self, stream: ByteStream) -> CancelOnDropStream { CancelOnDropStream { cancel: Some(self), - stream: stream, + stream, } } } -- cgit v1.2.3