diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-04-26 13:42:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-26 13:42:31 +0200 |
| commit | 3b3f7bd020b2ff39a14a4047c859675bced55213 (patch) | |
| tree | 0c9ab9c61f38ecd2229b487d3cf6191ef1b1904f /src/libstd | |
| parent | 96c1bb571abd77fcb706d7cdb4a0823a471767c2 (diff) | |
| parent | 8862f829bbfbc25a2b4e02210a94907787d1cd8b (diff) | |
| download | rust-3b3f7bd020b2ff39a14a4047c859675bced55213.tar.gz rust-3b3f7bd020b2ff39a14a4047c859675bced55213.zip | |
Rollup merge of #71562 - matthiaskrgr:cl7ppy, r=Dylan-DPC
fix more clippy warnings
clippy::{redundant_pattern_matching, clone_on_copy, iter_cloned_collect, option_as_ref_deref, match_ref_pats}
r? @Dylan-DPC
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/sync/mpsc/stream.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sync/mpsc/stream.rs b/src/libstd/sync/mpsc/stream.rs index 26b4faebd86..9f7c1af8951 100644 --- a/src/libstd/sync/mpsc/stream.rs +++ b/src/libstd/sync/mpsc/stream.rs @@ -329,7 +329,7 @@ impl<T> Packet<T> { ); cnt != DISCONNECTED && cnt != steals } { - while let Some(_) = self.queue.pop() { + while self.queue.pop().is_some() { steals += 1; } } |
