File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -992,6 +992,7 @@ impl<T> Drop for Channel<T> {
992992/// An error returned from the `try_send` method.
993993#[ cfg( feature = "unstable" ) ]
994994#[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
995+ #[ derive( PartialEq , Eq ) ]
995996pub enum TrySendError < T > {
996997 /// The channel is full but not disconnected.
997998 Full ( T ) ,
@@ -1023,7 +1024,7 @@ impl<T> Display for TrySendError<T> {
10231024/// An error returned from the `try_recv` method.
10241025#[ cfg( feature = "unstable" ) ]
10251026#[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
1026- #[ derive( Debug ) ]
1027+ #[ derive( Debug , PartialEq , Eq ) ]
10271028pub enum TryRecvError {
10281029 /// The channel is empty but not disconnected.
10291030 Empty ,
@@ -1046,7 +1047,7 @@ impl Display for TryRecvError {
10461047/// An error returned from the `recv` method.
10471048#[ cfg( feature = "unstable" ) ]
10481049#[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
1049- #[ derive( Debug ) ]
1050+ #[ derive( Debug , PartialEq , Eq ) ]
10501051pub struct RecvError ;
10511052
10521053impl Error for RecvError { }
You can’t perform that action at this time.
0 commit comments