Fix clippy for Rust 1.95

This commit is contained in:
Markus Unterwaditzer
2026-04-16 21:11:44 +02:00
committed by Brad Warren
parent a1a29b5ec8
commit ca30a146b2
4 changed files with 19 additions and 23 deletions

View File

@@ -42,10 +42,7 @@ pub async fn telnet_send_command_with_output(
let mut read_buf = Vec::new();
timeout(Duration::from_secs(10), async {
loop {
let Ok(byte) = reader.read_u8().await else {
break;
};
while let Ok(byte) = reader.read_u8().await {
read_buf.push(byte);
// when we see this string we know the command is done and can terminate.