From 286a6bfb732f121a4334401edf07c8669b3b5af9 Mon Sep 17 00:00:00 2001 From: Nicholas Mazzuca Date: Thu, 26 Feb 2015 13:00:26 -0800 Subject: [PATCH] Take away the unnecessary usize suffixes --- sdl2-sys/src/audio.rs | 2 +- sdl2-sys/src/controller.rs | 2 +- sdl2-sys/src/event.rs | 6 +++--- sdl2-sys/src/haptic.rs | 2 +- sdl2-sys/src/joystick.rs | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sdl2-sys/src/audio.rs b/sdl2-sys/src/audio.rs index 613d4e1f..f3743780 100644 --- a/sdl2-sys/src/audio.rs +++ b/sdl2-sys/src/audio.rs @@ -57,7 +57,7 @@ pub struct SDL_AudioCVT { pub len_cvt: c_int, pub len_mult: c_int, pub len_ratio: c_double, - filters: [SDL_AudioFilter; 10usize], + filters: [SDL_AudioFilter; 10], filter_index: c_int, } pub type SDL_AudioDeviceID = uint32_t; diff --git a/sdl2-sys/src/controller.rs b/sdl2-sys/src/controller.rs index 4b835d4d..16976df6 100644 --- a/sdl2-sys/src/controller.rs +++ b/sdl2-sys/src/controller.rs @@ -23,7 +23,7 @@ pub struct SDL_GameControllerButtonBind { #[derive(Copy, Clone)] #[repr(C)] pub struct SDL_GameControllerButtonBindData { - data: [c_uchar; 8usize], + data: [c_uchar; 8], } #[allow(dead_code)] diff --git a/sdl2-sys/src/event.rs b/sdl2-sys/src/event.rs index b92f7ac4..29ddb180 100644 --- a/sdl2-sys/src/event.rs +++ b/sdl2-sys/src/event.rs @@ -100,7 +100,7 @@ pub struct SDL_TextEditingEvent { pub _type: uint32_t, pub timestamp: uint32_t, pub windowID: uint32_t, - pub text: [c_char; 32usize], + pub text: [c_char; 32], pub start: int32_t, pub length: int32_t, } @@ -111,7 +111,7 @@ pub struct SDL_TextInputEvent { pub _type: uint32_t, pub timestamp: uint32_t, pub windowID: uint32_t, - pub text: [c_char; 32usize], + pub text: [c_char; 32], } #[derive(Copy, Clone)] @@ -333,7 +333,7 @@ pub struct SDL_SysWMEvent { #[allow(missing_copy_implementations)] #[repr(C)] pub struct SDL_Event { - pub data: [uint8_t; 56usize], + pub data: [uint8_t; 56], } impl SDL_Event { diff --git a/sdl2-sys/src/haptic.rs b/sdl2-sys/src/haptic.rs index e6994eb2..0608f506 100644 --- a/sdl2-sys/src/haptic.rs +++ b/sdl2-sys/src/haptic.rs @@ -126,7 +126,7 @@ pub struct SDL_HapticCustom { #[allow(missing_copy_implementations)] #[repr(C)] pub struct SDL_HapticEffect { - pub data: [uint8_t; 72usize], + pub data: [uint8_t; 72], } impl SDL_HapticEffect { diff --git a/sdl2-sys/src/joystick.rs b/sdl2-sys/src/joystick.rs index 639993e3..9eefbfa6 100644 --- a/sdl2-sys/src/joystick.rs +++ b/sdl2-sys/src/joystick.rs @@ -8,7 +8,7 @@ pub type SDL_Joystick = c_void; #[derive(Copy, Clone)] #[repr(C)] pub struct SDL_JoystickGUID { - pub data: [uint8_t; 16usize], + pub data: [uint8_t; 16], } extern "C" {