From 1f1805f66ef34673f94cb1e660d5e886a644294e Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Fri, 30 Oct 2026 19:38:38 -0700 Subject: [PATCH] fix(e2e): drop the unsafe block nested inside the testwin unsafe block e2e/guest/testwin/src/main.rs had an unsafe block inside an unsafe block, which clippy -D warnings rejects (unused_unsafe). Removes the inner one without changing behaviour. Verified: Windows clippy passes. --- e2e/guest/testwin/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/guest/testwin/src/main.rs b/e2e/guest/testwin/src/main.rs index bcb06faa..94274b14 100644 --- a/e2e/guest/testwin/src/main.rs +++ b/e2e/guest/testwin/src/main.rs @@ -393,8 +393,8 @@ fn main() -> windows::core::Result<()> { std::thread::sleep(std::time::Duration::from_secs_f64(after)); let hwnd = HWND(HWND_RAW.load(Ordering::SeqCst) as *mut _); let title = wide(&new); - // SAFETY: `title` is NUL-terminated and outlives the call. - let _ = unsafe { SetWindowTextW(hwnd, PCWSTR(title.as_ptr())) }; + // `title` is NUL-terminated and outlives the call. + let _ = SetWindowTextW(hwnd, PCWSTR(title.as_ptr())); }); }