Skip to content

Commit aab6296

Browse files
committed
Fixed formatting.
1 parent d753f52 commit aab6296

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/sdl2/video.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -679,9 +679,8 @@ impl VideoSubsystem {
679679
#[doc(alias = "SDL_GetDisplayUsableBounds")]
680680
pub fn display_usable_bounds(&self, display_index: i32) -> Result<Rect, String> {
681681
let mut out = mem::MaybeUninit::uninit();
682-
let result = unsafe {
683-
sys::SDL_GetDisplayUsableBounds(display_index as c_int, out.as_mut_ptr())
684-
};
682+
let result =
683+
unsafe { sys::SDL_GetDisplayUsableBounds(display_index as c_int, out.as_mut_ptr()) };
685684
if result == 0 {
686685
let out = unsafe { out.assume_init() };
687686
Ok(Rect::from_ll(out))

0 commit comments

Comments
 (0)