diff options
author | Koki Kato <koki.kato1994@gmail.com> | 2020-01-22 04:25:44 +0900 |
---|---|---|
committer | Carl Lerche <me@carllerche.com> | 2020-01-21 11:25:44 -0800 |
commit | a5e774bb38f3d0c6dc0e32d3b083021f5bc388fd (patch) | |
tree | 091dede010281f19e108534c401eb363266878f9 /tokio/src/sync/oneshot.rs | |
parent | 0bb17300f70ef74e335f4ada65706872451603b3 (diff) |
sync: derive PartialEq for error enums (#2137)
Diffstat (limited to 'tokio/src/sync/oneshot.rs')
-rw-r--r-- | tokio/src/sync/oneshot.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tokio/src/sync/oneshot.rs b/tokio/src/sync/oneshot.rs index 7b8ab355..5bbea381 100644 --- a/tokio/src/sync/oneshot.rs +++ b/tokio/src/sync/oneshot.rs @@ -40,7 +40,7 @@ pub mod error { pub struct RecvError(pub(super) ()); /// Error returned by the `try_recv` function on `Receiver`. - #[derive(Debug)] + #[derive(Debug, PartialEq)] pub enum TryRecvError { /// The send half of the channel has not yet sent a value. Empty, |