473: Update some dependencies r=kvark a=Eijebong



Co-authored-by: Bastien Orivel <eijebong@bananium.fr>
This commit is contained in:
bors[bot] 2018-12-28 20:25:39 +00:00
commit 5e758d13bd
2 changed files with 7 additions and 7 deletions

View file

@ -1,7 +1,7 @@
[package]
name = "cgmath"
version = "0.16.1"
version = "0.17.0"
authors = ["Brendan Zabarauskas <bjzaba@yahoo.com.au>"]
license = "Apache-2.0"
description = "A linear algebra and mathematics library for computer graphics."
@ -21,13 +21,13 @@ unstable = []
swizzle = []
[dependencies]
approx = "0.2"
approx = "0.3"
mint = { version = "0.5", optional = true }
num-traits = "0.2"
rand = "0.5"
rand = "0.6"
serde = { version = "1.0", features = ["serde_derive"], optional = true }
simd = { version = "0.2", optional = true }
[dev-dependencies]
glium = "0.19"
glium = "0.23"
serde_json = "1.0"

View file

@ -214,7 +214,7 @@ macro_rules! impl_angle {
S: BaseFloat + SampleUniform {
#[inline]
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> $Angle<S> {
$Angle(rng.gen_range(cast(-$hi).unwrap(), cast($hi).unwrap()))
$Angle(rng.gen_range(cast::<_, S>(-$hi).unwrap(), cast::<_, S>($hi).unwrap()))
}
}