aboutsummaryrefslogtreecommitdiff
path: root/src/client.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-01-31 23:57:33 +0100
committerAlex Auvolat <alex@adnab.me>2023-01-31 23:57:33 +0100
commit6df6411b7234c36555e5b38aa7084f641354cce2 (patch)
tree47c439bcc32ea818fcf225c5d63c29ab6fba47af /src/client.rs
parente4c0be848d50c0480fc54c69074bc8b3f88d83bf (diff)
downloadnetapp-6df6411b7234c36555e5b38aa7084f641354cce2.tar.gz
netapp-6df6411b7234c36555e5b38aa7084f641354cce2.zip
fix clippy
Diffstat (limited to 'src/client.rs')
-rw-r--r--src/client.rs4
1 files changed, 2 insertions, 2 deletions
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,
}
}
}