Philipp Kolberg
2 years ago
No known key found for this signature in database
GPG Key ID: 4C58CB0448FF9061
1 changed files with
6 additions and
2 deletions
-
src/util.rs
|
@ -757,9 +757,13 @@ pub fn parse_feature_flags(feature_flags: &str) -> HashMap<String, bool> { |
|
|
|
|
|
|
|
|
for feature in features { |
|
|
for feature in features { |
|
|
let is_enabled = !feature.starts_with('!'); |
|
|
let is_enabled = !feature.starts_with('!'); |
|
|
let flag = if is_enabled { feature } else { &feature[1..] }; |
|
|
let flag = if is_enabled { |
|
|
|
|
|
feature |
|
|
|
|
|
} else { |
|
|
|
|
|
&feature[1..] |
|
|
|
|
|
}; |
|
|
feature_states.insert(flag.to_string(), is_enabled); |
|
|
feature_states.insert(flag.to_string(), is_enabled); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
feature_states |
|
|
feature_states |
|
|
} |
|
|
} |
|
|