Skip to content

Commit

Permalink
unnecessary unsafe block
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed May 15, 2024
1 parent 1beec74 commit a91f234
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/libs/registry/src/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,7 @@ impl Key {
ptr: *const u8,
len: usize,
) -> Result<()> {
let result =
unsafe { RegSetValueExW(self.0, pcwstr(name).as_ptr(), 0, ty, ptr, len.try_into()?) };
let result = RegSetValueExW(self.0, pcwstr(name).as_ptr(), 0, ty, ptr, len.try_into()?);

win32_error(result)
}
Expand Down

0 comments on commit a91f234

Please sign in to comment.