Replace all `impl .. for Struct<<A as Angle>::Unitless>` by
`Struct<A::Unitless>`. This allows -Zsave-analysis to work on nightly, and
I think this is more readable too.
This commit is contained in:
kennytm 2017-05-02 01:15:46 +08:00
parent bfd9fc1e66
commit f524d40403
No known key found for this signature in database
GPG key ID: FEF6C8051D0E013C
3 changed files with 4 additions and 4 deletions

View file

@ -1133,7 +1133,7 @@ index_operators!(Matrix4<S>, 4, Vector4<S>, usize);
// index_operators!(Matrix3<S>, 3, [Vector3<S>], RangeFull);
// index_operators!(Matrix4<S>, 4, [Vector4<S>], RangeFull);
impl<A> From<Euler<A>> for Matrix3<<A as Angle>::Unitless> where
impl<A> From<Euler<A>> for Matrix3<A::Unitless> where
A: Angle + Into<Rad<<A as Angle>::Unitless>>,
{
fn from(src: Euler<A>) -> Matrix3<A::Unitless> {
@ -1148,7 +1148,7 @@ impl<A> From<Euler<A>> for Matrix3<<A as Angle>::Unitless> where
}
}
impl<A> From<Euler<A>> for Matrix4<<A as Angle>::Unitless> where
impl<A> From<Euler<A>> for Matrix4<A::Unitless> where
A: Angle + Into<Rad<<A as Angle>::Unitless>>,
{
fn from(src: Euler<A>) -> Matrix4<A::Unitless> {

View file

@ -256,7 +256,7 @@ impl InnerSpace for Quaternion<f32> {
}
}
impl<A> From<Euler<A>> for Quaternion<<A as Angle>::Unitless> where
impl<A> From<Euler<A>> for Quaternion<A::Unitless> where
A: Angle + Into<Rad<<A as Angle>::Unitless>>,
{
fn from(src: Euler<A>) -> Quaternion<A::Unitless> {

View file

@ -370,7 +370,7 @@ impl<S: BaseFloat> Rotation3<S> for Basis3<S> {
}
}
impl<A: Angle> From<Euler<A>> for Basis3<<A as Angle>::Unitless> where
impl<A: Angle> From<Euler<A>> for Basis3<A::Unitless> where
A: Into<Rad<<A as Angle>::Unitless>>,
{
/// Create a three-dimensional rotation matrix from a set of euler angles.