From a91f234d49d0fd74128ab62e93aab99ada409e02 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Wed, 15 May 2024 12:36:40 -0500 Subject: [PATCH] unnecessary unsafe block --- crates/libs/registry/src/key.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/libs/registry/src/key.rs b/crates/libs/registry/src/key.rs index 2701288846..d1988220ca 100644 --- a/crates/libs/registry/src/key.rs +++ b/crates/libs/registry/src/key.rs @@ -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) }