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.
split_features()
1 parent 43f3c91 commit 9a79677Copy full SHA for 9a79677
src/models/feature.rs
@@ -6,7 +6,9 @@ pub type FeaturesMap = BTreeMap<String, Vec<String>>;
6
/// values.
7
///
8
/// See <https://rust-lang.github.io/rfcs/3143-cargo-weak-namespaced-features.html>.
9
-pub fn split_features(features: FeaturesMap) -> (FeaturesMap, FeaturesMap) {
+pub fn split_features(
10
+ features: impl IntoIterator<Item = (String, Vec<String>)>,
11
+) -> (FeaturesMap, FeaturesMap) {
12
const ITERATION_LIMIT: usize = 100;
13
14
// First, we partition the features into two groups: those that use the new
0 commit comments