diff --git a/clippy.toml b/clippy.toml index 0ac765717..2ded6b073 100644 --- a/clippy.toml +++ b/clippy.toml @@ -1 +1,3 @@ semicolon-outside-block-ignore-multiline = true +accept-comment-above-statement = true +accept-comment-above-attributes = true diff --git a/crates/ironrdp-cliprdr-native/src/windows.rs b/crates/ironrdp-cliprdr-native/src/windows.rs index 18aba2ee6..fd26bc978 100644 --- a/crates/ironrdp-cliprdr-native/src/windows.rs +++ b/crates/ironrdp-cliprdr-native/src/windows.rs @@ -129,11 +129,11 @@ impl WinClipboard { // We need to receive winapi messages in the main thread, so we need to add a subclass to // the window. - let winapi_result = unsafe { - // SAFETY: `window` is a valid window handle, `clipboard_subproc` is in the static memory, - // `ctx` is valid and its ownership is transferred to the subclass via `into_raw`. - SetWindowSubclass(window, Some(clipboard_subproc), 0, Box::into_raw(ctx) as usize) - }; + // + // SAFETY: `window` is a valid window handle, `clipboard_subproc` is in the static memory, + // `ctx` is valid and its ownership is transferred to the subclass via `into_raw`. + let winapi_result = + unsafe { SetWindowSubclass(window, Some(clipboard_subproc), 0, Box::into_raw(ctx) as usize) }; if winapi_result == FALSE { return Err(WinCliprdrError::WindowSubclass);