style(lib): run rustfmt and enforce in CI
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
macro_rules! ready {
|
||||
($e:expr) => (
|
||||
($e:expr) => {
|
||||
match $e {
|
||||
::std::task::Poll::Ready(v) => v,
|
||||
::std::task::Poll::Pending => return ::std::task::Poll::Pending,
|
||||
}
|
||||
)
|
||||
};
|
||||
}
|
||||
|
||||
pub(crate) mod drain;
|
||||
@@ -14,16 +14,11 @@ mod lazy;
|
||||
mod never;
|
||||
pub(crate) mod task;
|
||||
|
||||
pub(crate) use self::exec::{BoxSendFuture, Exec};
|
||||
pub use self::exec::Executor;
|
||||
pub(crate) use self::exec::{BoxSendFuture, Exec};
|
||||
pub(crate) use self::lazy::{lazy, Started as Lazy};
|
||||
pub use self::never::Never;
|
||||
pub(crate) use self::task::Poll;
|
||||
|
||||
// group up types normally needed for `Future`
|
||||
pub(crate) use std::{
|
||||
future::Future,
|
||||
marker::Unpin,
|
||||
pin::Pin,
|
||||
};
|
||||
|
||||
pub(crate) use std::{future::Future, marker::Unpin, pin::Pin};
|
||||
|
||||
Reference in New Issue
Block a user