mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-05-07 04:19:07 -07:00
Fix clippy for Rust 1.95
This commit is contained in:
committed by
Brad Warren
parent
a1a29b5ec8
commit
ca30a146b2
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user