chore: fix clippy (#3488)

This commit is contained in:
Tony
2026-07-15 16:01:07 +08:00
committed by GitHub
parent cad301fcc1
commit 13c63af965
3 changed files with 39 additions and 42 deletions
+2 -4
View File
@@ -479,10 +479,8 @@ fn read_line<F: Fn(Vec<u8>) -> CommandEvent + Send + Copy + 'static>(
let _ = block_on_task(async move { tx_.send(wrapper(buf)).await });
}
Err(e) => {
let tx_ = tx.clone();
let _ = block_on_task(
async move { tx_.send(CommandEvent::Error(e.to_string())).await },
);
let _ =
block_on_task(async move { tx.send(CommandEvent::Error(e.to_string())).await });
break;
}
}