diff --git a/tokio/src/sync/watch.rs b/tokio/src/sync/watch.rs index 80d479300db..5810c67de60 100644 --- a/tokio/src/sync/watch.rs +++ b/tokio/src/sync/watch.rs @@ -156,6 +156,12 @@ impl Clone for Sender { } } +impl Default for Sender { + fn default() -> Self { + Self::new(T::default()) + } +} + /// Returns a reference to the inner value. /// /// Outstanding borrows hold a read lock on the inner value. This means that