diff --git a/.changes/fix-nsis-on-unix.md b/.changes/fix-nsis-on-unix.md index c52330d8..942976cf 100644 --- a/.changes/fix-nsis-on-unix.md +++ b/.changes/fix-nsis-on-unix.md @@ -2,4 +2,4 @@ "cargo-packager": patch --- -Fix bundling NSIS on Linux and macOS failing due to the verbose flag. \ No newline at end of file +Fix bundling NSIS on Linux and macOS failing due to the verbose flag. diff --git a/crates/utils/src/current_exe.rs b/crates/utils/src/current_exe.rs index 7fb9da62..34f5e761 100644 --- a/crates/utils/src/current_exe.rs +++ b/crates/utils/src/current_exe.rs @@ -118,6 +118,8 @@ impl StartingBinary { /// /// Because [`Error`] is not clone-able, it is recreated instead. pub(super) fn cloned(&self) -> Result { + // false positive + #[allow(clippy::useless_asref)] self.0 .as_ref() .map(Clone::clone)