mirror of
https://github.com/encounter/rust-sdl2.git
synced 2026-07-10 21:18:41 -07:00
Update feature and unused attributes in sdl2-sys
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
#![feature(os)]
|
||||
|
||||
extern crate "pkg-config" as pkg_config;
|
||||
|
||||
fn main() {
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#![allow(non_camel_case_types)]
|
||||
|
||||
#![feature(core, libc)]
|
||||
|
||||
extern crate libc;
|
||||
|
||||
pub mod scancode;
|
||||
|
||||
@@ -6,7 +6,7 @@ use std::mem;
|
||||
use libc::c_int;
|
||||
|
||||
/// A structure that defines a two dimensional point.
|
||||
#[derive(PartialEq, Clone, Show, Copy)]
|
||||
#[derive(PartialEq, Clone, Debug, Copy)]
|
||||
#[repr(C)]
|
||||
pub struct Point {
|
||||
pub x: i32,
|
||||
@@ -14,7 +14,7 @@ pub struct Point {
|
||||
}
|
||||
|
||||
/// A structure that defines a rectangle, with the origin at the upper left.
|
||||
#[derive(PartialEq, Clone, Show, Copy)]
|
||||
#[derive(PartialEq, Clone, Debug, Copy)]
|
||||
#[repr(C)]
|
||||
pub struct Rect {
|
||||
pub x: i32,
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
#[allow(unused)]
|
||||
use sys::gesture as ll;
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
//! Haptic Functions
|
||||
#[allow(unused)]
|
||||
use sys::haptic as ll;
|
||||
|
||||
Reference in New Issue
Block a user