Skip to content

Commit

Permalink
fix clippy lint on useless from
Browse files Browse the repository at this point in the history
Signed-off-by: clux <[email protected]>
  • Loading branch information
clux committed Dec 23, 2024
1 parent 73ca510 commit 124eb09
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kube-client/src/api/portforward.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {

Check warning on line 231 in kube-client/src/api/portforward.rs

View check run for this annotation

Codecov / codecov/patch

kube-client/src/api/portforward.rs#L231

Added line #L231 was not covered by tests
let ch = bytes.split_to(1)[0];
sender
.send(Message::FromPod(ch, bytes))
Expand Down

0 comments on commit 124eb09

Please sign in to comment.