Skip to content

Commit

Permalink
sync: impl equality traits for oneshot::RecvError (#2168)
Browse files Browse the repository at this point in the history
  • Loading branch information
carllerche authored Jan 24, 2020
1 parent 9eca96a commit 0d49e11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tokio/src/sync/oneshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0d49e11

Please sign in to comment.