Retain empty extras on workspace members (#7762)
## Summary I'm not sure why we drop these but it seems incorrect.
This commit is contained in:
@@ -273,17 +273,7 @@ impl Workspace {
|
||||
.as_ref()
|
||||
.map(|optional_dependencies| {
|
||||
// It's a `BTreeMap` so the keys are sorted.
|
||||
optional_dependencies
|
||||
.iter()
|
||||
.filter_map(|(name, dependencies)| {
|
||||
if dependencies.is_empty() {
|
||||
None
|
||||
} else {
|
||||
Some(name)
|
||||
}
|
||||
})
|
||||
.cloned()
|
||||
.collect::<Vec<_>>()
|
||||
optional_dependencies.keys().cloned().collect::<Vec<_>>()
|
||||
})
|
||||
.unwrap_or_default();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user