mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-16 17:03:35 +00:00
fix broken collect-license-metadata
This commit is contained in:
parent
60445fda58
commit
656c31c862
@ -278,10 +278,10 @@ pub(crate) fn expand_interned_licenses(
|
||||
) -> Node<&License> {
|
||||
match node {
|
||||
Node::Root { childs } => Node::Root {
|
||||
childs: childs.into_iter().map(|child| strip_interning(child, interner)).collect(),
|
||||
childs: childs.into_iter().map(|child| expand_interned_licenses(child, interner)).collect(),
|
||||
},
|
||||
Node::Directory { name, childs, license } => Node::Directory {
|
||||
childs: childs.into_iter().map(|child| strip_interning(child, interner)).collect(),
|
||||
childs: childs.into_iter().map(|child| expand_interned_licenses(child, interner)).collect(),
|
||||
license: license.map(|license| interner.resolve(license)),
|
||||
name,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user