File tree 1 file changed +3
-2
lines changed
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> {
992
992
/// An error returned from the `try_send` method.
993
993
#[ cfg( feature = "unstable" ) ]
994
994
#[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
995
+ #[ derive( PartialEq , Eq ) ]
995
996
pub enum TrySendError < T > {
996
997
/// The channel is full but not disconnected.
997
998
Full ( T ) ,
@@ -1023,7 +1024,7 @@ impl<T> Display for TrySendError<T> {
1023
1024
/// An error returned from the `try_recv` method.
1024
1025
#[ cfg( feature = "unstable" ) ]
1025
1026
#[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
1026
- #[ derive( Debug ) ]
1027
+ #[ derive( Debug , PartialEq , Eq ) ]
1027
1028
pub enum TryRecvError {
1028
1029
/// The channel is empty but not disconnected.
1029
1030
Empty ,
@@ -1046,7 +1047,7 @@ impl Display for TryRecvError {
1046
1047
/// An error returned from the `recv` method.
1047
1048
#[ cfg( feature = "unstable" ) ]
1048
1049
#[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
1049
- #[ derive( Debug ) ]
1050
+ #[ derive( Debug , PartialEq , Eq ) ]
1050
1051
pub struct RecvError ;
1051
1052
1052
1053
impl Error for RecvError { }
You can’t perform that action at this time.
0 commit comments