From aee04ecc6705d86d5371bbb54b2dc43bbec0773c Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 4 Dec 2021 20:40:26 -0500 Subject: use futures-lite instead of futures --- src/reader.rs | 6 +++--- src/writer.rs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/reader.rs b/src/reader.rs index 240c78e..4939eb9 100644 --- a/src/reader.rs +++ b/src/reader.rs @@ -1,13 +1,13 @@ -use futures::io::AsyncReadExt as _; +use futures_lite::io::AsyncReadExt as _; /// Reads ttyrec frames from a [`futures::io::AsyncRead`] instance. -pub struct Reader { +pub struct Reader { input: T, parser: crate::Parser, buf: [u8; 4096], } -impl Reader { +impl Reader { /// Creates a new [`Reader`](Self) from a [`futures::io::AsyncRead`] /// instance. pub fn new(input: T) -> Self { diff --git a/src/writer.rs b/src/writer.rs index f161df0..0a94586 100644 --- a/src/writer.rs +++ b/src/writer.rs @@ -1,12 +1,12 @@ -use futures::io::AsyncWriteExt as _; +use futures_lite::io::AsyncWriteExt as _; /// Writes ttyrec frames to a [`futures::io::AsyncWrite`] instance. -pub struct Writer { +pub struct Writer { output: T, creator: crate::Creator, } -impl Writer { +impl Writer { /// Creates a new [`Writer`](Self) from a [`futures::io::AsyncWrite`] /// instance. pub fn new(output: T) -> Self { -- cgit v1.2.3-54-g00ecf