Skip to content

Commit 5b19866

Browse files
committed
Stop using box_into_pin feature
1 parent b432c41 commit 5b19866

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

futures-util/src/future/join_all.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ where
116116
I::Item: Future,
117117
{
118118
let elems: Box<[_]> = i.into_iter().map(ElemState::Pending).collect();
119-
JoinAll { elems: Box::into_pin(elems) }
119+
JoinAll { elems: elems.into() }
120120
}
121121

122122
impl<F> Future for JoinAll<F>

futures-util/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! Combinators and utilities for working with `Future`s, `Stream`s, `Sink`s,
22
//! and the `AsyncRead` and `AsyncWrite` traits.
33
4-
#![cfg_attr(feature = "alloc", feature(box_into_pin))]
54
#![cfg_attr(feature = "async-await", feature(async_await, await_macro))]
65
#![cfg_attr(feature = "cfg-target-has-atomic", feature(cfg_target_has_atomic))]
76
#![cfg_attr(feature = "never-type", feature(never_type))]

futures-util/src/try_future/try_join_all.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ where
125125
{
126126
let elems: Box<[_]> = i.into_iter().map(ElemState::Pending).collect();
127127
TryJoinAll {
128-
elems: Box::into_pin(elems),
128+
elems: elems.into(),
129129
}
130130
}
131131

0 commit comments

Comments
 (0)