From 124eb09f6862b46b24682c601cb0613813665c30 Mon Sep 17 00:00:00 2001 From: clux Date: Mon, 23 Dec 2024 07:56:33 +0000 Subject: [PATCH] fix clippy lint on useless from Signed-off-by: clux --- kube-client/src/api/portforward.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kube-client/src/api/portforward.rs b/kube-client/src/api/portforward.rs index 6439f9dc7..e28ffbc22 100644 --- a/kube-client/src/api/portforward.rs +++ b/kube-client/src/api/portforward.rs @@ -228,8 +228,7 @@ where .map_err(Error::ReceiveWebSocketMessage)? { match msg { - ws::Message::Binary(bin) if bin.len() > 1 => { - let mut bytes = Bytes::from(bin); + ws::Message::Binary(mut bytes) if bytes.len() > 1 => { let ch = bytes.split_to(1)[0]; sender .send(Message::FromPod(ch, bytes))