Happy clippy

This commit is contained in:
Zanie 2023-11-09 10:57:43 -06:00
parent 6bb6923ef4
commit 7f5ef26301
2 changed files with 2 additions and 3 deletions

View File

@ -388,9 +388,7 @@ fn hardlink_wheel_files(
}
// Hardlink the file, unless it's the `RECORD` file, which we modify during installation.
if entry.path().ends_with("RECORD") {
fs::copy(entry.path(), &out_path)?;
} else if use_copy_fallback {
if entry.path().ends_with("RECORD") || use_copy_fallback {
fs::copy(entry.path(), &out_path)?;
} else {
let hard_link_result = fs::hard_link(entry.path(), &out_path);

View File

@ -23,6 +23,7 @@ mod resolve_cli;
mod resolve_many;
mod wheel_metadata;
#[allow(clippy::enum_variant_names)]
#[derive(Parser)]
enum Cli {
/// Build a source distribution into a wheel