We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d753f52 commit aab6296Copy full SHA for aab6296
src/sdl2/video.rs
@@ -679,9 +679,8 @@ impl VideoSubsystem {
679
#[doc(alias = "SDL_GetDisplayUsableBounds")]
680
pub fn display_usable_bounds(&self, display_index: i32) -> Result<Rect, String> {
681
let mut out = mem::MaybeUninit::uninit();
682
- let result = unsafe {
683
- sys::SDL_GetDisplayUsableBounds(display_index as c_int, out.as_mut_ptr())
684
- };
+ let result =
+ unsafe { sys::SDL_GetDisplayUsableBounds(display_index as c_int, out.as_mut_ptr()) };
685
if result == 0 {
686
let out = unsafe { out.assume_init() };
687
Ok(Rect::from_ll(out))
0 commit comments