sync: impl equality traits for oneshot::RecvError (#2168)

This commit is contained in:
Carl Lerche
2020-01-24 15:10:29 -08:00
committed by GitHub
parent 9eca96aa21
commit 0d49e112b2
+2 -2
View File
@@ -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,