diff --git a/src/io/buf_read.rs b/src/io/buf_read.rs index fa010ed..a7bfeed 100644 --- a/src/io/buf_read.rs +++ b/src/io/buf_read.rs @@ -1,4 +1,3 @@ -use std::io; use std::mem; use std::pin::Pin; use std::str; @@ -7,6 +6,7 @@ use cfg_if::cfg_if; use futures::io::AsyncBufRead; use crate::future::Future; +use crate::io; use crate::task::{Context, Poll}; cfg_if! { diff --git a/src/io/buf_reader.rs b/src/io/buf_reader.rs index fb90c8d..bf9adce 100644 --- a/src/io/buf_reader.rs +++ b/src/io/buf_reader.rs @@ -1,10 +1,10 @@ -use std::io::{IoSliceMut, Read as _, SeekFrom}; +use std::io::{IoSliceMut, Read as _}; use std::pin::Pin; use std::{cmp, fmt}; use futures::io::{AsyncBufRead, AsyncRead, AsyncSeek, Initializer}; -use crate::io; +use crate::io::{self, SeekFrom}; use crate::task::{Context, Poll}; const DEFAULT_CAPACITY: usize = 8 * 1024; diff --git a/src/io/seek.rs b/src/io/seek.rs index 49aaed1..00ac641 100644 --- a/src/io/seek.rs +++ b/src/io/seek.rs @@ -1,11 +1,10 @@ -use std::io::SeekFrom; use std::pin::Pin; use cfg_if::cfg_if; use futures::io::AsyncSeek; use crate::future::Future; -use crate::io; +use crate::io::{self, SeekFrom}; use crate::task::{Context, Poll}; cfg_if! {