mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-03 17:41:27 +03:00
address clippy lints
This commit is contained in:
@@ -229,11 +229,11 @@ impl FrontendListener {
|
||||
// TODO do simultaneously
|
||||
for tx in self.tx_streams.iter_mut() {
|
||||
// write len + payload
|
||||
if let Err(_) = tx.write(&len).await {
|
||||
if tx.write(&len).await.is_err() {
|
||||
keep.push(false);
|
||||
continue;
|
||||
}
|
||||
if let Err(_) = tx.write(payload).await {
|
||||
if tx.write(payload).await.is_err() {
|
||||
keep.push(false);
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user