summaryrefslogtreecommitdiffstats
path: root/tokio/tests/sync_broadcast.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio/tests/sync_broadcast.rs')
-rw-r--r--tokio/tests/sync_broadcast.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/tokio/tests/sync_broadcast.rs b/tokio/tests/sync_broadcast.rs
index d7e77e9d..7960eb85 100644
--- a/tokio/tests/sync_broadcast.rs
+++ b/tokio/tests/sync_broadcast.rs
@@ -492,8 +492,5 @@ fn lagging_receiver_recovers_after_wrap_open() {
}
fn is_closed(err: broadcast::RecvError) -> bool {
- match err {
- broadcast::RecvError::Closed => true,
- _ => false,
- }
+ matches!(err, broadcast::RecvError::Closed)
}