Skip to content

Commit 9a79677

Browse files
committed
models/feature: Use generic input for split_features() fn
1 parent 43f3c91 commit 9a79677

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/models/feature.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ pub type FeaturesMap = BTreeMap<String, Vec<String>>;
66
/// values.
77
///
88
/// See <https://rust-lang.github.io/rfcs/3143-cargo-weak-namespaced-features.html>.
9-
pub fn split_features(features: FeaturesMap) -> (FeaturesMap, FeaturesMap) {
9+
pub fn split_features(
10+
features: impl IntoIterator<Item = (String, Vec<String>)>,
11+
) -> (FeaturesMap, FeaturesMap) {
1012
const ITERATION_LIMIT: usize = 100;
1113

1214
// First, we partition the features into two groups: those that use the new

0 commit comments

Comments
 (0)