diff options
author | Jesse Luehrs <doy@tozt.net> | 2022-02-23 02:53:56 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2022-02-23 02:53:56 -0500 |
commit | 4f0b0ae8d1e3ff3c3af616e88ee7c51e583743b1 (patch) | |
tree | af881d51c4853786d9cd815351b9ecce8c42a351 /src/writer.rs | |
parent | 2b48b4b867a89fd134434437adee708c2a1a0043 (diff) | |
download | ttyrec-4f0b0ae8d1e3ff3c3af616e88ee7c51e583743b1.tar.gz ttyrec-4f0b0ae8d1e3ff3c3af616e88ee7c51e583743b1.zip |
move to tokio
Diffstat (limited to 'src/writer.rs')
-rw-r--r-- | src/writer.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/writer.rs b/src/writer.rs index 9eb3aaa..6e52db1 100644 --- a/src/writer.rs +++ b/src/writer.rs @@ -1,12 +1,12 @@ -use futures_lite::io::AsyncWriteExt as _; +use tokio::io::AsyncWriteExt as _; /// Writes ttyrec frames to a [`futures_lite::io::AsyncWrite`] instance. -pub struct Writer<T: futures_lite::io::AsyncWrite> { +pub struct Writer<T: tokio::io::AsyncWrite> { output: T, creator: crate::Creator, } -impl<T: futures_lite::io::AsyncWrite + std::marker::Unpin + Send> Writer<T> { +impl<T: tokio::io::AsyncWrite + std::marker::Unpin + Send> Writer<T> { /// Creates a new [`Writer`](Self) from a [`futures_lite::io::AsyncWrite`] /// instance. pub fn new(output: T) -> Self { |