Skip to content

Commit

Permalink
Clippy had some opinions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpallant committed Nov 28, 2024
1 parent 0fb8359 commit 7b72cc9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/bootstrap/src/core/build_steps/dist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -514,12 +514,10 @@ impl Step for Rustc {

// The REUSE-managed license files
let license = |path: &Path| {
builder.install(&path, &image.join("share/doc/rust/licences"), 0o644);
builder.install(path, &image.join("share/doc/rust/licences"), 0o644);
};
for entry in t!(std::fs::read_dir(builder.src.join("LICENSES"))) {
if let Ok(entry) = entry {
license(&entry.path());
}
for entry in t!(std::fs::read_dir(builder.src.join("LICENSES"))).flatten() {
license(&entry.path());
}
}
}
Expand Down

0 comments on commit 7b72cc9

Please sign in to comment.