We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce0051a commit d45eac3Copy full SHA for d45eac3
src/tools/collect-license-metadata/src/reuse.rs
@@ -17,9 +17,11 @@ pub(crate) fn collect(
17
18
let mut result = Vec::new();
19
for file in document.file_information {
20
+ let concluded_license = file.concluded_license.expect("File should have licence info");
21
+ let copyright_text = file.copyright_text.expect("File should have copyright text");
22
let license = interner.intern(License {
- spdx: file.concluded_license.to_string(),
- copyright: file.copyright_text.split('\n').map(|s| s.into()).collect(),
23
+ spdx: concluded_license.to_string(),
24
+ copyright: copyright_text.split('\n').map(|s| s.into()).collect(),
25
});
26
27
result.push((file.file_name.into(), license));
0 commit comments