Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir committed Apr 29, 2024
1 parent 4450239 commit 2c72410
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/nsis-plugin-api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ impl Error {
}
}
pub fn push_err(&self) {
let _ = unsafe { pushstr(&self.description()) };
let _ = unsafe { pushstr(self.description()) };
}
}

Expand Down Expand Up @@ -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)
}

Expand Down

0 comments on commit 2c72410

Please sign in to comment.