diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-02-24 03:04:58 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-02-24 03:04:58 -0500 |
commit | 27aa8c71d7946c3a11f76c7493afb9d827ada4bd (patch) | |
tree | 273d60f99ea07d4a6e9c3c78a7ee55598f7c193a | |
parent | 6b5bf76f565be7727d3bc624589e6b728e93106b (diff) | |
download | pty-process-27aa8c71d7946c3a11f76c7493afb9d827ada4bd.tar.gz pty-process-27aa8c71d7946c3a11f76c7493afb9d827ada4bd.zip |
use write_all instead of write
-rw-r--r-- | examples/smol.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/smol.rs b/examples/smol.rs index 3f743bf..dd6fba3 100644 --- a/examples/smol.rs +++ b/examples/smol.rs @@ -47,7 +47,7 @@ async fn run( loop { match stdin.read(&mut buf).await { Ok(bytes) => { - child.pty().write(&buf[..bytes]).await.unwrap(); + child.pty().write_all(&buf[..bytes]).await.unwrap(); } Err(e) => { eprintln!("stdin read failed: {:?}", e); |