Skip to content

Commit 7b72cc9

Browse files
Clippy had some opinions.
1 parent 0fb8359 commit 7b72cc9

File tree

1 file changed

+3
-5
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+3
-5
lines changed

src/bootstrap/src/core/build_steps/dist.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -514,12 +514,10 @@ impl Step for Rustc {
514514

515515
// The REUSE-managed license files
516516
let license = |path: &Path| {
517-
builder.install(&path, &image.join("share/doc/rust/licences"), 0o644);
517+
builder.install(path, &image.join("share/doc/rust/licences"), 0o644);
518518
};
519-
for entry in t!(std::fs::read_dir(builder.src.join("LICENSES"))) {
520-
if let Ok(entry) = entry {
521-
license(&entry.path());
522-
}
519+
for entry in t!(std::fs::read_dir(builder.src.join("LICENSES"))).flatten() {
520+
license(&entry.path());
523521
}
524522
}
525523
}

0 commit comments

Comments
 (0)