From 8656b7b8eb6f3635ec40694eb71f14fb84211e05 Mon Sep 17 00:00:00 2001 From: Artem Vorotnikov Date: Sat, 21 Dec 2019 23:28:57 +0300 Subject: chore: fix formatting, remove old rustfmt.toml (#2007) `cargo fmt` has a bug where it does not format modules scoped with feature flags. --- tokio/src/future/pending.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tokio/src/future') 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 { pub async fn pending() -> ! { Pending { _data: marker::PhantomData, - }.await + } + .await } impl Future for Pending { @@ -40,5 +41,4 @@ impl Future for Pending { } } -impl Unpin for Pending { -} +impl Unpin for Pending {} -- cgit v1.2.3