Skip to content

Commit a533724

Browse files
pmaxhoganclaude
andcommitted
style: rustfmt the titlebar SAFETY comment
Move the SAFETY comment inside the unsafe block so rustfmt stops aligning it as a trailing-comment continuation (the rustfmt CI failure on #48). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MZQh3ZfwtZsM6c5qnTuWZP
1 parent 3bda56c commit a533724

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src-tauri/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,9 @@ fn apply_dark_titlebar(window: &tauri::WebviewWindow) {
117117
let caption: u32 = 0x000b_0909; // #09090b (zinc-950) - the app's dark surface
118118
let border: u32 = 0x0046_3f3f; // #3f3f46 (zinc-700) - a subtle neutral edge
119119
let dark: i32 = 1; // BOOL TRUE -> light caption text + window buttons
120-
// SAFETY: hwnd is a live top-level window handle for the duration of the call;
121-
// each pointer references a stack value valid across the synchronous call.
122120
unsafe {
121+
// SAFETY: hwnd is a live top-level window handle for the duration of the
122+
// call; each pointer references a stack value valid across the call.
123123
DwmSetWindowAttribute(
124124
hwnd,
125125
DWMWA_USE_IMMERSIVE_DARK_MODE,

0 commit comments

Comments
 (0)