diff --git a/futures-util/src/future/future/shared.rs b/futures-util/src/future/future/shared.rs index 1f139d0af0..9b31932fe3 100644 --- a/futures-util/src/future/future/shared.rs +++ b/futures-util/src/future/future/shared.rs @@ -29,6 +29,12 @@ struct Notifier { /// A weak reference to a [`Shared`] that can be upgraded much like an `Arc`. pub struct WeakShared(Weak>); +impl Clone for WeakShared { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} + // The future itself is polled behind the `Arc`, so it won't be moved // when `Shared` is moved. impl Unpin for Shared {}