mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-05-11 06:09:08 -07:00
appease clippy
This commit is contained in:
15
src/main.rs
15
src/main.rs
@@ -129,16 +129,13 @@ async fn main() -> io::Result<()> {
|
|||||||
tokio::spawn(async move {
|
tokio::spawn(async move {
|
||||||
loop {
|
loop {
|
||||||
let mut dev_ = dev_clone.lock().await;
|
let mut dev_ = dev_clone.lock().await;
|
||||||
match dev_.read_response().await.unwrap() {
|
if let Some(msg) = dev_.read_response().await.unwrap() {
|
||||||
Some(msg) => {
|
let mut clients_ = clients_clone.lock().await;
|
||||||
let mut clients_ = clients_clone.lock().await;
|
for client in clients_.iter_mut() {
|
||||||
for client in clients_.iter_mut() {
|
for buf in &msg {
|
||||||
for buf in &msg {
|
let _ = client.write(buf).await.unwrap();
|
||||||
client.write(buf).await.unwrap();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
None => {},
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user