aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2022-04-05 21:20:44 +0200
committerDario Nieuwenhuis <[email protected]>2022-04-05 21:20:44 +0200
commit59ec634246251d9ad0487a71c7d1ee2f70b33c57 (patch)
treefc9e0ca9de2a66d9cd5b93e99bb22315c62cbc46
parentc8bd792b7abf3bbb0c713a07e58906e9c690a320 (diff)
Remove SelectAll::into_inner.
Due to not requiring Unpin, it's not really possible to call it after having polled it, you can only call it right after constructing it, so in practice it's not very useful.
-rw-r--r--embassy/src/util/select.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/embassy/src/util/select.rs b/embassy/src/util/select.rs
index aef22d894..29e17968b 100644
--- a/embassy/src/util/select.rs
+++ b/embassy/src/util/select.rs
@@ -25,13 +25,6 @@ pub fn select_all<Fut: Future, const N: usize>(arr: [Fut; N]) -> SelectAll<Fut,
25 SelectAll { inner: arr } 25 SelectAll { inner: arr }
26} 26}
27 27
28impl<Fut, const N: usize> SelectAll<Fut, N> {
29 /// Consumes this combinator, returning the underlying futures.
30 pub fn into_inner(self) -> [Fut; N] {
31 self.inner
32 }
33}
34
35impl<Fut: Future, const N: usize> Future for SelectAll<Fut, N> { 28impl<Fut: Future, const N: usize> Future for SelectAll<Fut, N> {
36 type Output = (Fut::Output, usize); 29 type Output = (Fut::Output, usize);
37 30