We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ec36f46 + d525c9f commit a118ac8Copy full SHA for a118ac8
rust-toolchain.toml
@@ -1,3 +1,3 @@
1
[toolchain]
2
-channel = "1.63"
+channel = "1.65"
3
components = [ "rustfmt", "clippy" ]
src/client/metadata_cache.rs
@@ -47,11 +47,7 @@ impl MetadataCache {
47
// to ensure only the expected topics are present.
48
if let Some(want) = topics {
49
// Filter out any topics the caller did not ask for.
50
- m.topics = m
51
- .topics
52
- .into_iter()
53
- .filter(|t| want.contains(&t.name.0))
54
- .collect();
+ m.topics.retain(|t| want.contains(&t.name.0));
55
56
// Validate the resulting number of topics in the metadata response.
57
if m.topics.len() != want.len() {
0 commit comments