We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fb8359 commit 7b72cc9Copy full SHA for 7b72cc9
src/bootstrap/src/core/build_steps/dist.rs
@@ -514,12 +514,10 @@ impl Step for Rustc {
514
515
// The REUSE-managed license files
516
let license = |path: &Path| {
517
- builder.install(&path, &image.join("share/doc/rust/licences"), 0o644);
+ builder.install(path, &image.join("share/doc/rust/licences"), 0o644);
518
};
519
- for entry in t!(std::fs::read_dir(builder.src.join("LICENSES"))) {
520
- if let Ok(entry) = entry {
521
- license(&entry.path());
522
- }
+ for entry in t!(std::fs::read_dir(builder.src.join("LICENSES"))).flatten() {
+ license(&entry.path());
523
}
524
525
0 commit comments