From 0d49e112b2a7fc3cc268c1c140d0130d865af760 Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Fri, 24 Jan 2020 15:10:29 -0800 Subject: [PATCH] sync: impl equality traits for oneshot::RecvError (#2168) --- tokio/src/sync/oneshot.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tokio/src/sync/oneshot.rs b/tokio/src/sync/oneshot.rs index aadb499616d..6c7b97cfa92 100644 --- a/tokio/src/sync/oneshot.rs +++ b/tokio/src/sync/oneshot.rs @@ -36,11 +36,11 @@ pub mod error { use std::fmt; /// Error returned by the `Future` implementation for `Receiver`. - #[derive(Debug)] + #[derive(Debug, Eq, PartialEq)] pub struct RecvError(pub(super) ()); /// Error returned by the `try_recv` function on `Receiver`. - #[derive(Debug, PartialEq)] + #[derive(Debug, Eq, PartialEq)] pub enum TryRecvError { /// The send half of the channel has not yet sent a value. Empty,