Bumped version number, cleaned more warnings

This commit is contained in:
Tony Aldridge
2015-02-02 09:51:49 +00:00
parent 694c0c40cc
commit 140bf711e8
6 changed files with 6 additions and 9 deletions
+2 -2
View File
@@ -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 <tony@angry-lawyer.com>" ]
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]
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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 <tony@angry-lawyer.com>"]
license = "MIT"
links = "SDL2"
+1 -2
View File
@@ -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;
-1
View File
@@ -20,7 +20,6 @@ use keycode::KeyCode;
use mouse;
use mouse::{Mouse, MouseState};
use scancode::ScanCode;
use video;
use get_error;
use SdlResult;
+1 -2
View File
@@ -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,