mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +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`
|
||||
// https://github.com/oli-obk/cargo_metadata/issues/79
|
||||
meta.features(CargoOpt::NoDefaultFeatures);
|
||||
} else {
|
||||
} else if cargo_features.features.len() > 0 {
|
||||
meta.features(CargoOpt::SomeFeatures(cargo_features.features.clone()));
|
||||
}
|
||||
if let Some(parent) = cargo_toml.parent() {
|
||||
|
|
Loading…
Reference in a new issue