diff options
| author | Ibraheem Ahmed <ibraheem@ibraheem.ca> | 2023-01-19 17:53:19 -0500 |
|---|---|---|
| committer | The 8472 <git@infinite-source.de> | 2023-05-19 12:45:41 +0200 |
| commit | 4fbca2e1d500c1a39d0f5eb822faec2a49cdc071 (patch) | |
| tree | 79eddb4c14516bdf790098276d531afdde60d2c7 | |
| parent | b997f3ca13bbc30aaa8af0b3745d00c8e6209ddb (diff) | |
| download | rust-4fbca2e1d500c1a39d0f5eb822faec2a49cdc071.tar.gz rust-4fbca2e1d500c1a39d0f5eb822faec2a49cdc071.zip | |
tidy
| -rw-r--r-- | library/core/src/future/join.rs | 2 | ||||
| -rw-r--r-- | library/core/src/task/poll.rs | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/library/core/src/future/join.rs b/library/core/src/future/join.rs index 22bac5d3e6f..3f35179ddc2 100644 --- a/library/core/src/future/join.rs +++ b/library/core/src/future/join.rs @@ -4,7 +4,7 @@ use crate::cell::UnsafeCell; use crate::future::{poll_fn, Future}; use crate::mem; use crate::pin::Pin; -use crate::task::{Context, Poll, ready}; +use crate::task::{ready, Context, Poll}; /// Polls multiple futures simultaneously, returning a tuple /// of all results once complete. diff --git a/library/core/src/task/poll.rs b/library/core/src/task/poll.rs index 83230384a22..0a0f702f6fb 100644 --- a/library/core/src/task/poll.rs +++ b/library/core/src/task/poll.rs @@ -94,7 +94,6 @@ impl<T> Poll<T> { pub const fn is_pending(&self) -> bool { !self.is_ready() } - } impl<T, E> Poll<Result<T, E>> { |
