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.
1 parent d2fe906 commit ffd28e6Copy full SHA for ffd28e6
crates/project-model/src/env.rs
@@ -90,10 +90,13 @@ fn parse_output_cargo_config_env(stdout: String) -> FxHashMap<String, String> {
90
stdout
91
.lines()
92
.filter_map(|l| l.strip_prefix("env."))
93
- .filter_map(|l| {
94
- l.split_once(" = ")
95
- // cargo used to report it with this, keep it for a couple releases around
96
- .or_else(|| l.split_once(".value = "))
+ .filter_map(|l| l.split_once(" = "))
+ .filter_map(|(k, v)| {
+ if k.contains('.') {
+ k.strip_suffix(".value").zip(Some(v))
97
+ } else {
98
+ Some((k, v))
99
+ }
100
})
101
.map(|(key, value)| (key.to_owned(), value.trim_matches('"').to_owned()))
102
.collect()
0 commit comments