-
-
Save arcnmx/311f16dd723e7b127da8aa4ca4abd654 to your computer and use it in GitHub Desktop.
carnix features
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
After line 225: | |
- match (b.next(), b.next()) { | |
- (Some(c), Some(d)) => { | |
- if let Some(dep) = dependencies.get_mut(c) { | |
- debug!("conditional: {:?} {:?} {:?}", c, a, d); | |
- dep.conditional_features.push(ConditionalFeature { | |
- feature: a.to_string(), | |
- dep_feature: d.to_string(), | |
- }) | |
- } | |
- } | |
- (Some(c), None) => { | |
- // println!("conditional: {:?} {:?} {:?}", c, a, d); | |
- cond.push(ConditionalFeature { | |
In "["src", "krate.rs"]": | |
From line 225: | |
+ let feat = b.next(); | |
+ if let Some(c) = feat { | |
+ cond.push(ConditionalFeature { | |
+ feature: a.to_string(), | |
+ dep_feature: c.to_string(), | |
+ }) | |
+ } | |
+ if let (Some(c), Some(d)) = (feat, b.next()) { | |
+ if let Some(dep) = dependencies.get_mut(c) { | |
+ debug!("conditional: {:?} {:?} {:?}", c, a, d); | |
+ dep.conditional_features.push(ConditionalFeature { | |
After line 237: | |
- dep_feature: c.to_string(), | |
In "["src", "krate.rs"]": | |
From line 237: | |
+ dep_feature: d.to_string(), | |
After line 240: | |
- _ => {} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment