Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Cobrand committed Sep 7, 2022
1 parent 575d9dc commit 795fe02
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/sdl2/sdl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@ impl Sdl {
}
}

Ok(Sdl { sdldrop: SdlDrop { _anticonstructor: std::ptr::null_mut() }})
Ok(Sdl {
sdldrop: SdlDrop {
_anticonstructor: std::ptr::null_mut(),
},
})
}

/// Initializes the audio subsystem.
Expand Down Expand Up @@ -189,7 +193,9 @@ impl Clone for SdlDrop {
fn clone(&self) -> SdlDrop {
let prev_count = SDL_COUNT.fetch_add(1, Ordering::Relaxed);
assert!(prev_count > 0);
SdlDrop { _anticonstructor: std::ptr::null_mut() }
SdlDrop {
_anticonstructor: std::ptr::null_mut(),
}
}
}

Expand Down Expand Up @@ -307,7 +313,12 @@ subsystem!(
nosync
);
subsystem!(HapticSubsystem, sys::SDL_INIT_HAPTIC, HAPTIC_COUNT, nosync);
subsystem!(JoystickSubsystem, sys::SDL_INIT_JOYSTICK, JOYSTICK_COUNT, nosync);
subsystem!(
JoystickSubsystem,
sys::SDL_INIT_JOYSTICK,
JOYSTICK_COUNT,
nosync
);
subsystem!(VideoSubsystem, sys::SDL_INIT_VIDEO, VIDEO_COUNT, nosync);
// Timers can be added on other threads.
subsystem!(TimerSubsystem, sys::SDL_INIT_TIMER, TIMER_COUNT, sync);
Expand Down

0 comments on commit 795fe02

Please sign in to comment.