diff --git a/Cargo.toml b/Cargo.toml index 9bfb1a54..7d41e511 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "sdl2" description = "SDL2 bindings for Rust" repository = "https://github.com/AngryLawyer/rust-sdl2" -version = "0.0.22" +version = "0.0.23" license = "MIT" authors = [ "Tony Aldridge " ] keywords = ["SDL", "windowing", "graphics"] @@ -19,7 +19,7 @@ bitflags = "0.1" [dependencies.sdl2-sys] path = "sdl2-sys" -version = "0.0.22" +version = "0.0.23" [features] diff --git a/README.md b/README.md index a08ecf94..051632fa 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ If you're using [cargo](http://crates.io/) to manage your project, you can downl ```toml [dependencies] - sdl2 = "0.0.22" + sdl2 = "0.0.23" ``` Alternatively, pull it from GitHub diff --git a/sdl2-sys/Cargo.toml b/sdl2-sys/Cargo.toml index daa01471..0e5cde2c 100644 --- a/sdl2-sys/Cargo.toml +++ b/sdl2-sys/Cargo.toml @@ -3,7 +3,7 @@ name = "sdl2-sys" description = "Raw SDL2 bindings for Rust, used internally rust-sdl2" repository = "https://github.com/AngryLawyer/rust-sdl2" -version = "0.0.22" +version = "0.0.23" authors = ["Tony Aldridge "] license = "MIT" links = "SDL2" diff --git a/src/sdl2/audio.rs b/src/sdl2/audio.rs index d2217862..cbca053d 100644 --- a/src/sdl2/audio.rs +++ b/src/sdl2/audio.rs @@ -1,8 +1,7 @@ //! Audio Functions -use std::borrow::ToOwned; use std::ffi::{c_str_to_bytes, CString}; use std::num::FromPrimitive; -use libc::{self, c_int, c_void, size_t, uint8_t}; +use libc::{c_int, c_void, uint8_t}; use std::ops::{Deref, DerefMut}; use get_error; diff --git a/src/sdl2/event.rs b/src/sdl2/event.rs index de59acf1..7b417766 100644 --- a/src/sdl2/event.rs +++ b/src/sdl2/event.rs @@ -20,7 +20,6 @@ use keycode::KeyCode; use mouse; use mouse::{Mouse, MouseState}; use scancode::ScanCode; -use video; use get_error; use SdlResult; diff --git a/src/sdl2/joystick.rs b/src/sdl2/joystick.rs index b1e9131a..9443452b 100644 --- a/src/sdl2/joystick.rs +++ b/src/sdl2/joystick.rs @@ -6,7 +6,6 @@ use clear_error; use sys::event::{SDL_QUERY, SDL_ENABLE}; use std::ffi::{CString, c_str_to_bytes}; use std::fmt::{Display, Formatter, Error}; -use libc::c_int; use libc::c_char; /// Retreive the total number of attached joysticks *and* controllers @@ -318,7 +317,7 @@ impl Display for Guid { /// combinations make sense: 5 for instance would mean up and down at /// the same time... To simplify things I turn it into an enum which /// is how the SDL2 docs present it anyway (using macros). -#[derive(Copy, Show)] +#[derive(Copy, Debug)] pub enum HatState { Centered = 0, Up = 0x01,