From 7f5ef26301c5e1aaaa24ae0ba77d4b3a2bfa9633 Mon Sep 17 00:00:00 2001 From: Zanie Date: Thu, 9 Nov 2023 10:57:43 -0600 Subject: [PATCH] Happy clippy --- crates/install-wheel-rs/src/linker.rs | 4 +--- crates/puffin-dev/src/main.rs | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/install-wheel-rs/src/linker.rs b/crates/install-wheel-rs/src/linker.rs index c3eed6ee3..645fc11ef 100644 --- a/crates/install-wheel-rs/src/linker.rs +++ b/crates/install-wheel-rs/src/linker.rs @@ -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); diff --git a/crates/puffin-dev/src/main.rs b/crates/puffin-dev/src/main.rs index dafe745e8..f36f841da 100644 --- a/crates/puffin-dev/src/main.rs +++ b/crates/puffin-dev/src/main.rs @@ -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