mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-12 16:58:39 +00:00
Only add features flags if non-empty
This commit is contained in:
parent
60aa4d12f9
commit
4ee3c5202e
1 changed files with 1 additions and 1 deletions
|
|
@ -165,7 +165,7 @@ impl CargoWorkspace {
|
||||||
// FIXME: `NoDefaultFeatures` is mutual exclusive with `SomeFeatures`
|
// FIXME: `NoDefaultFeatures` is mutual exclusive with `SomeFeatures`
|
||||||
// https://github.com/oli-obk/cargo_metadata/issues/79
|
// https://github.com/oli-obk/cargo_metadata/issues/79
|
||||||
meta.features(CargoOpt::NoDefaultFeatures);
|
meta.features(CargoOpt::NoDefaultFeatures);
|
||||||
} else {
|
} else if cargo_features.features.len() > 0 {
|
||||||
meta.features(CargoOpt::SomeFeatures(cargo_features.features.clone()));
|
meta.features(CargoOpt::SomeFeatures(cargo_features.features.clone()));
|
||||||
}
|
}
|
||||||
if let Some(parent) = cargo_toml.parent() {
|
if let Some(parent) = cargo_toml.parent() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue