Skip to content

Commit 7648ae6

Browse files
committed
fixes
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
1 parent 58272e3 commit 7648ae6

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

src/future/future/mod.rs

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,13 @@ extension_trait! {
164164
# });
165165
```
166166
"#]
167+
#[cfg(any(feature = "unstable", feature = "docs"))]
168+
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
167169
fn select<F>(self, other: F) ->
168-
impl Future<Output = Self::Output> [Select<Self, F>]
169-
where
170-
Self: Sized + Future,
171-
F: std::future::Future<Output = <Self as Future>::Output>,
170+
impl Future<Output = Self::Output> [Select<Self, F>]
171+
where
172+
Self: Sized + Future,
173+
F: std::future::Future<Output = <Self as Future>::Output>,
172174
{
173175
Select::new(self, other)
174176
}
@@ -201,12 +203,14 @@ extension_trait! {
201203
# Ok(()) }) }
202204
```
203205
"#]
206+
#[cfg(any(feature = "unstable", feature = "docs"))]
207+
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
204208
fn try_select<F, T, E>(self, other: F) ->
205-
impl Future<Output = Self::Output> [TrySelect<Self, F>]
206-
where
207-
Self: Sized,
208-
Self: Future<Output = Result<T, E>>,
209-
F: Future<Output = Self::Output>,
209+
impl Future<Output = Self::Output> [TrySelect<Self, F>]
210+
where
211+
Self: Sized,
212+
Self: Future<Output = Result<T, E>>,
213+
F: Future<Output = Self::Output>,
210214
{
211215
TrySelect::new(self, other)
212216
}

0 commit comments

Comments
 (0)