Skip to content

use BTreeMap::extract_if for remove_topic_*_with_prefix#397

Open
w-utter wants to merge 1 commit intoAtostek:masterfrom
w-utter:drain-filter-external_topics
Open

use BTreeMap::extract_if for remove_topic_*_with_prefix#397
w-utter wants to merge 1 commit intoAtostek:masterfrom
w-utter:drain-filter-external_topics

Conversation

@w-utter
Copy link
Copy Markdown
Contributor

@w-utter w-utter commented Dec 3, 2025

BTreeMap::extract_if (renamed from drain_filter) was stabilized in Rust 1.91 so it can finally be used instead of having to collect and iterate over the btreemap of readers/writers twice. This does however bump the MSRV up by quite a bit

@jhelovuo
Copy link
Copy Markdown
Member

Thank you for cleaning this up. You are right that this does bump the MSRV quite a bit, so let's delay merging some more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants