Skip to content

Commit 795fe02

Browse files
committed
cargo fmt
1 parent 575d9dc commit 795fe02

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

src/sdl2/sdl.rs

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,11 @@ impl Sdl {
108108
}
109109
}
110110

111-
Ok(Sdl { sdldrop: SdlDrop { _anticonstructor: std::ptr::null_mut() }})
111+
Ok(Sdl {
112+
sdldrop: SdlDrop {
113+
_anticonstructor: std::ptr::null_mut(),
114+
},
115+
})
112116
}
113117

114118
/// Initializes the audio subsystem.
@@ -189,7 +193,9 @@ impl Clone for SdlDrop {
189193
fn clone(&self) -> SdlDrop {
190194
let prev_count = SDL_COUNT.fetch_add(1, Ordering::Relaxed);
191195
assert!(prev_count > 0);
192-
SdlDrop { _anticonstructor: std::ptr::null_mut() }
196+
SdlDrop {
197+
_anticonstructor: std::ptr::null_mut(),
198+
}
193199
}
194200
}
195201

@@ -307,7 +313,12 @@ subsystem!(
307313
nosync
308314
);
309315
subsystem!(HapticSubsystem, sys::SDL_INIT_HAPTIC, HAPTIC_COUNT, nosync);
310-
subsystem!(JoystickSubsystem, sys::SDL_INIT_JOYSTICK, JOYSTICK_COUNT, nosync);
316+
subsystem!(
317+
JoystickSubsystem,
318+
sys::SDL_INIT_JOYSTICK,
319+
JOYSTICK_COUNT,
320+
nosync
321+
);
311322
subsystem!(VideoSubsystem, sys::SDL_INIT_VIDEO, VIDEO_COUNT, nosync);
312323
// Timers can be added on other threads.
313324
subsystem!(TimerSubsystem, sys::SDL_INIT_TIMER, TIMER_COUNT, sync);

0 commit comments

Comments
 (0)