simplify some pattern matches to appease 1.68 clippy (#13833)

This commit is contained in:
Mira Ressel authored and GitHub committed 2023-04-11 10:57:14 +00:00
1 parent 271d65eae7
commit 17765733f0
10 files changed
+23 -37

No files matched your search

+1 -1
View File
@@ -89,7 +89,7 @@ impl<B: BlockT> BlockCollection<B> {
Some(&BlockRangeState::Downloading { .. }) => {
trace!(target: "sync", "Inserting block data still marked as being downloaded: {}", start);
},
Some(&BlockRangeState::Complete(ref existing)) if existing.len() >= blocks.len() => {
Some(BlockRangeState::Complete(existing)) if existing.len() >= blocks.len() => {
trace!(target: "sync", "Ignored block data already downloaded: {}", start);
return
},