Merge #473
473: Update some dependencies r=kvark a=Eijebong Co-authored-by: Bastien Orivel <eijebong@bananium.fr>
This commit is contained in:
commit
5e758d13bd
2 changed files with 7 additions and 7 deletions
|
@ -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"
|
||||
|
|
|
@ -208,13 +208,13 @@ macro_rules! impl_angle {
|
|||
S::ulps_eq(&self.0, &other.0, epsilon, max_ulps)
|
||||
}
|
||||
}
|
||||
|
||||
impl<S> Distribution<$Angle<S>> for Standard
|
||||
|
||||
impl<S> Distribution<$Angle<S>> for Standard
|
||||
where Standard: Distribution<S>,
|
||||
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()))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue