1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-03 17:14:08 +02:00

clippy fix

This commit is contained in:
Robin Appelman 2024-06-12 15:06:49 +02:00
commit 90ffcc0a1c
3 changed files with 3 additions and 3 deletions

View file

@ -67,7 +67,7 @@ pub async fn exec_tty<S1: AsRef<str>, S2: Into<String>, Env: Into<String>>(
let mut stdin = async_stdin().bytes();
loop {
if let Some(Ok(byte)) = stdin.next() {
input.write(&[byte]).await.ok();
input.write_all(&[byte]).await.ok();
} else {
sleep(Duration::from_nanos(10)).await;
}