Formatting

integrate-threads-example
Stjepan Glavina 5 years ago
parent e459bd048e
commit dd40887750

@ -1,4 +1,3 @@
use std::io;
use std::mem; use std::mem;
use std::pin::Pin; use std::pin::Pin;
use std::str; use std::str;
@ -7,6 +6,7 @@ use cfg_if::cfg_if;
use futures::io::AsyncBufRead; use futures::io::AsyncBufRead;
use crate::future::Future; use crate::future::Future;
use crate::io;
use crate::task::{Context, Poll}; use crate::task::{Context, Poll};
cfg_if! { cfg_if! {

@ -1,10 +1,10 @@
use std::io::{IoSliceMut, Read as _, SeekFrom}; use std::io::{IoSliceMut, Read as _};
use std::pin::Pin; use std::pin::Pin;
use std::{cmp, fmt}; use std::{cmp, fmt};
use futures::io::{AsyncBufRead, AsyncRead, AsyncSeek, Initializer}; use futures::io::{AsyncBufRead, AsyncRead, AsyncSeek, Initializer};
use crate::io; use crate::io::{self, SeekFrom};
use crate::task::{Context, Poll}; use crate::task::{Context, Poll};
const DEFAULT_CAPACITY: usize = 8 * 1024; const DEFAULT_CAPACITY: usize = 8 * 1024;

@ -1,11 +1,10 @@
use std::io::SeekFrom;
use std::pin::Pin; use std::pin::Pin;
use cfg_if::cfg_if; use cfg_if::cfg_if;
use futures::io::AsyncSeek; use futures::io::AsyncSeek;
use crate::future::Future; use crate::future::Future;
use crate::io; use crate::io::{self, SeekFrom};
use crate::task::{Context, Poll}; use crate::task::{Context, Poll};
cfg_if! { cfg_if! {

Loading…
Cancel
Save