diff options
author | Artem Vorotnikov <artem@vorotnikov.me> | 2019-12-21 23:28:57 +0300 |
---|---|---|
committer | Carl Lerche <me@carllerche.com> | 2019-12-21 12:28:57 -0800 |
commit | 8656b7b8eb6f3635ec40694eb71f14fb84211e05 (patch) | |
tree | e2fd1f95216660edeaadebbce87144e95ccfffde /tokio/src/future | |
parent | f309b295bb0bdee5862a0ab8359a5f0622a588b9 (diff) |
chore: fix formatting, remove old rustfmt.toml (#2007)
`cargo fmt` has a bug where it does not format modules scoped with
feature flags.
Diffstat (limited to 'tokio/src/future')
-rw-r--r-- | tokio/src/future/pending.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tokio/src/future/pending.rs b/tokio/src/future/pending.rs index c844ebc3..287e836f 100644 --- a/tokio/src/future/pending.rs +++ b/tokio/src/future/pending.rs @@ -1,6 +1,6 @@ +use sdt::pin::Pin; use std::future::Future; use std::marker; -use sdt::pin::Pin; use std::task::{Context, Poll}; /// Future for the [`pending()`] function. @@ -29,7 +29,8 @@ struct Pending<T> { pub async fn pending() -> ! { Pending { _data: marker::PhantomData, - }.await + } + .await } impl<T> Future for Pending<T> { @@ -40,5 +41,4 @@ impl<T> Future for Pending<T> { } } -impl<T> Unpin for Pending<T> { -} +impl<T> Unpin for Pending<T> {} |