From ffbdd5452f099b4afb8e3842efef5bcd82e34c9a Mon Sep 17 00:00:00 2001 From: Fabrice Desclaux Date: Sat, 20 Jan 2024 21:07:40 +0100 Subject: [PATCH] Fix fmt --- src/sdl2/clipboard.rs | 1 - src/sdl2/video.rs | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sdl2/clipboard.rs b/src/sdl2/clipboard.rs index 52af61d964..3a7c1e9ffa 100644 --- a/src/sdl2/clipboard.rs +++ b/src/sdl2/clipboard.rs @@ -96,5 +96,4 @@ impl ClipboardUtil { pub fn has_primary_selection_text(&self) -> bool { unsafe { sys::SDL_HasPrimarySelectionText() == sys::SDL_bool::SDL_TRUE } } - } diff --git a/src/sdl2/video.rs b/src/sdl2/video.rs index 329d5122ae..d4f879ffc4 100644 --- a/src/sdl2/video.rs +++ b/src/sdl2/video.rs @@ -1564,7 +1564,9 @@ impl Window { binarization_cutoff: u8, ) -> Result<(), i32> { let mode = sys::WindowShapeMode::ShapeModeBinarizeAlpha; - let parameters = sys::SDL_WindowShapeParams { binarizationCutoff: binarization_cutoff }; + let parameters = sys::SDL_WindowShapeParams { + binarizationCutoff: binarization_cutoff, + }; let mut shape_mode = sys::SDL_WindowShapeMode { mode, parameters }; let result = unsafe { sys::SDL_SetWindowShape(self.context.raw, shape.as_ref().raw(), &mut shape_mode)