Skip to content

Commit

Permalink
remove redundant impl Unpin
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqiangxu authored and taiki-e committed Dec 24, 2023
1 parent 17851c1 commit e4aa659
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions futures-util/src/future/future/shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ impl<Fut: Future> Clone for WeakShared<Fut> {
}
}

// The future itself is polled behind the `Arc`, so it won't be moved
// when `Shared` is moved.
impl<Fut: Future> Unpin for Shared<Fut> {}

impl<Fut: Future> fmt::Debug for Shared<Fut> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("Shared")
Expand Down

0 comments on commit e4aa659

Please sign in to comment.