From 2c72410a5fe46ab23edafddd39f5c8c0fdf8748c Mon Sep 17 00:00:00 2001 From: amrbashir Date: Mon, 29 Apr 2024 21:11:31 +0300 Subject: [PATCH] clippy --- crates/nsis-plugin-api/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/nsis-plugin-api/src/lib.rs b/crates/nsis-plugin-api/src/lib.rs index a1ac179..cb2e1fe 100644 --- a/crates/nsis-plugin-api/src/lib.rs +++ b/crates/nsis-plugin-api/src/lib.rs @@ -71,7 +71,7 @@ impl Error { } } pub fn push_err(&self) { - let _ = unsafe { pushstr(&self.description()) }; + let _ = unsafe { pushstr(self.description()) }; } } @@ -165,7 +165,7 @@ pub fn decode_utf16_lossy(bytes: &[u16]) -> String { .iter() .position(|c| *c == 0) .map(|nul| &bytes[..nul]) - .unwrap_or(&bytes); + .unwrap_or(bytes); String::from_utf16_lossy(bytes) }