Skip to content

Commit e4aa659

Browse files
zhiqiangxutaiki-e
authored andcommitted
remove redundant impl Unpin
1 parent 17851c1 commit e4aa659

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

futures-util/src/future/future/shared.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@ impl<Fut: Future> Clone for WeakShared<Fut> {
3737
}
3838
}
3939

40-
// The future itself is polled behind the `Arc`, so it won't be moved
41-
// when `Shared` is moved.
42-
impl<Fut: Future> Unpin for Shared<Fut> {}
43-
4440
impl<Fut: Future> fmt::Debug for Shared<Fut> {
4541
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
4642
f.debug_struct("Shared")

0 commit comments

Comments
 (0)