File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff 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) ;
309315subsystem ! ( 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+ ) ;
311322subsystem ! ( VideoSubsystem , sys:: SDL_INIT_VIDEO , VIDEO_COUNT , nosync) ;
312323// Timers can be added on other threads.
313324subsystem ! ( TimerSubsystem , sys:: SDL_INIT_TIMER , TIMER_COUNT , sync) ;
You can’t perform that action at this time.
0 commit comments