aboutsummaryrefslogtreecommitdiffstats
path: root/src/reader.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2022-02-23 02:53:56 -0500
committerJesse Luehrs <doy@tozt.net>2022-02-23 02:53:56 -0500
commit4f0b0ae8d1e3ff3c3af616e88ee7c51e583743b1 (patch)
treeaf881d51c4853786d9cd815351b9ecce8c42a351 /src/reader.rs
parent2b48b4b867a89fd134434437adee708c2a1a0043 (diff)
downloadttyrec-4f0b0ae8d1e3ff3c3af616e88ee7c51e583743b1.tar.gz
ttyrec-4f0b0ae8d1e3ff3c3af616e88ee7c51e583743b1.zip
move to tokio
Diffstat (limited to 'src/reader.rs')
-rw-r--r--src/reader.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/reader.rs b/src/reader.rs
index 3426dcb..0b0666b 100644
--- a/src/reader.rs
+++ b/src/reader.rs
@@ -1,13 +1,13 @@
-use futures_lite::io::AsyncReadExt as _;
+use tokio::io::AsyncReadExt as _;
/// Reads ttyrec frames from a [`futures_lite::io::AsyncRead`] instance.
-pub struct Reader<T: futures_lite::io::AsyncRead> {
+pub struct Reader<T: tokio::io::AsyncRead> {
input: T,
parser: crate::Parser,
buf: [u8; 4096],
}
-impl<T: futures_lite::io::AsyncRead + std::marker::Unpin + Send> Reader<T> {
+impl<T: tokio::io::AsyncRead + std::marker::Unpin + Send> Reader<T> {
/// Creates a new [`Reader`](Self) from a [`futures_lite::io::AsyncRead`]
/// instance.
pub fn new(input: T) -> Self {