Closed
Description
Sorry, I don't have a minimal repro.
The following commit (I believe) has all unused imports removed: bfops/playform@c4f7351.
However, applying the following patch still builds fine, with no unused import warnings or errors:
diff --git a/Cargo.toml b/Cargo.toml
index 3e6910f..2b32761 100755
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -19,6 +19,9 @@ git = "https://github.com/bjz/gl-rs"
[dependencies.sdl2_game_window]
git = "https://github.com/bfops/sdl2_game_window"
+[dependencies.cgmath]
+git = "https://github.com/bjz/cgmath-rs"
+
[dependencies.piston]
git = "https://github.com/PistonDevelopers/piston"
diff --git a/src/glw.rs b/src/glw.rs
index 56bcd4d..54ae3aa 100644
--- a/src/glw.rs
+++ b/src/glw.rs
@@ -4,6 +4,7 @@
//! GLW stands for "OpenGL wrapper".
+#[deny(unused_imports)]
pub use color::Color4;
+pub use cgmath::matrix::Matrix4;
use cstr_cache;
use libc::types::common::c95;
use nalgebra::na::{Mat3, Mat4, Vec3, Eye, Outer};
diff --git a/src/playform.rs b/src/playform.rs
index c2ef41b..05de4a2 100644
--- a/src/playform.rs
+++ b/src/playform.rs
@@ -10,6 +10,7 @@
// to disable warnings only in a macro.
#![allow(unused_unsafe)]
+extern crate cgmath;
extern crate gl;
extern crate libc;
extern crate nalgebra;
rustc 0.12.0-pre-nightly (25741603f 2014-08-03 23:46:10 +0000)
Metadata
Assignees
Labels
No labels
Activity