Skip to content

Commit d525c9f

Browse files
committed
chore: update rust toolchain to 1.65
1 parent ec36f46 commit d525c9f

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
2-
channel = "1.63"
2+
channel = "1.65"
33
components = [ "rustfmt", "clippy" ]

src/client/metadata_cache.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,7 @@ impl MetadataCache {
4747
// to ensure only the expected topics are present.
4848
if let Some(want) = topics {
4949
// 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();
50+
m.topics.retain(|t| want.contains(&t.name.0));
5551

5652
// Validate the resulting number of topics in the metadata response.
5753
if m.topics.len() != want.len() {

0 commit comments

Comments
 (0)