summaryrefslogtreecommitdiffstats
path: root/tokio/tests/sync_broadcast.rs
diff options
context:
space:
mode:
authorbdonlan <bdonlan@gmail.com>2020-10-08 17:14:39 -0700
committerGitHub <noreply@github.com>2020-10-08 17:14:39 -0700
commitb704c53b9cc76eaf8c9c6585f8444c4515d27728 (patch)
tree45d8037ebcd0c1a51b5afa5c0486752aebe103e3 /tokio/tests/sync_broadcast.rs
parent066965cd59d01fd9d999152e32169a24dfe434fa (diff)
chore: Fix clippy lints (#2931)
Closes: #2929 Co-authored-by: Bryan Donlan <bdonlan@amazon.com>
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)
}