diff --git a/Cargo.toml b/Cargo.toml index 4b6c91eb9ad..9f66f5565c3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -91,5 +91,8 @@ path = "examples/performance/main.rs" [dev_dependencies.gfx_gl] git = "https://github.com/gfx-rs/gfx_gl.git" +[dev_dependencies.time] +git = "https://github.com/rust-lang/time" + # [dev_dependencies.cgmath] # git = "http://github.com/bjz/cgmath-rs" diff --git a/examples/cube/main.rs b/examples/cube/main.rs index 0a4c51aca3c..b5d20b45e6d 100644 --- a/examples/cube/main.rs +++ b/examples/cube/main.rs @@ -21,7 +21,6 @@ extern crate gfx; extern crate gfx_macros; extern crate glfw; extern crate native; -extern crate time; use cgmath::FixedArray; use cgmath::{Matrix, Point3, Vector3}; diff --git a/src/render/lib.rs b/src/render/lib.rs index 43b1f08f730..5bd68ab0247 100644 --- a/src/render/lib.rs +++ b/src/render/lib.rs @@ -477,8 +477,8 @@ impl, C: CommandBuffer> DeviceHelper for D { fn create_mesh(&mut self, data: &[T]) -> mesh::Mesh { let nv = data.len(); debug_assert!(nv < { - use std::num::Bounded; - let val: device::VertexCount = Bounded::max_value(); + use std::num::Int; + let val: device::VertexCount = Int::max_value(); val as uint }); let buf = self.create_buffer_static(data);