summaryrefslogtreecommitdiffstats
path: root/tokio/src/sync/mpsc
diff options
context:
space:
mode:
authorKoki Kato <koki.kato1994@gmail.com>2020-01-22 04:25:44 +0900
committerCarl Lerche <me@carllerche.com>2020-01-21 11:25:44 -0800
commita5e774bb38f3d0c6dc0e32d3b083021f5bc388fd (patch)
tree091dede010281f19e108534c401eb363266878f9 /tokio/src/sync/mpsc
parent0bb17300f70ef74e335f4ada65706872451603b3 (diff)
sync: derive PartialEq for error enums (#2137)
Diffstat (limited to 'tokio/src/sync/mpsc')
-rw-r--r--tokio/src/sync/mpsc/error.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tokio/src/sync/mpsc/error.rs b/tokio/src/sync/mpsc/error.rs
index bc1f6465..802bc488 100644
--- a/tokio/src/sync/mpsc/error.rs
+++ b/tokio/src/sync/mpsc/error.rs
@@ -69,7 +69,7 @@ impl Error for RecvError {}
/// This enumeration is the list of the possible reasons that try_recv
/// could not return data when called.
-#[derive(Debug)]
+#[derive(Debug, PartialEq)]
pub enum TryRecvError {
/// This channel is currently empty, but the Sender(s) have not yet
/// disconnected, so data may yet become available.