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 {
108
108
}
109
109
}
110
110
111
- Ok ( Sdl { sdldrop : SdlDrop { _anticonstructor : std:: ptr:: null_mut ( ) } } )
111
+ Ok ( Sdl {
112
+ sdldrop : SdlDrop {
113
+ _anticonstructor : std:: ptr:: null_mut ( ) ,
114
+ } ,
115
+ } )
112
116
}
113
117
114
118
/// Initializes the audio subsystem.
@@ -189,7 +193,9 @@ impl Clone for SdlDrop {
189
193
fn clone ( & self ) -> SdlDrop {
190
194
let prev_count = SDL_COUNT . fetch_add ( 1 , Ordering :: Relaxed ) ;
191
195
assert ! ( prev_count > 0 ) ;
192
- SdlDrop { _anticonstructor : std:: ptr:: null_mut ( ) }
196
+ SdlDrop {
197
+ _anticonstructor : std:: ptr:: null_mut ( ) ,
198
+ }
193
199
}
194
200
}
195
201
@@ -307,7 +313,12 @@ subsystem!(
307
313
nosync
308
314
) ;
309
315
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
+ ) ;
311
322
subsystem ! ( VideoSubsystem , sys:: SDL_INIT_VIDEO , VIDEO_COUNT , nosync) ;
312
323
// Timers can be added on other threads.
313
324
subsystem ! ( TimerSubsystem , sys:: SDL_INIT_TIMER , TIMER_COUNT , sync) ;
You can’t perform that action at this time.
0 commit comments