Skip to content

Commit bb7d342

Browse files
authored
Merge pull request #410 from kennytm/workaround-rust-41478
Workaround rust-lang/rust#41478.
2 parents bfd9fc1 + f524d40 commit bb7d342

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/matrix.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ index_operators!(Matrix4<S>, 4, Vector4<S>, usize);
11331133
// index_operators!(Matrix3<S>, 3, [Vector3<S>], RangeFull);
11341134
// index_operators!(Matrix4<S>, 4, [Vector4<S>], RangeFull);
11351135

1136-
impl<A> From<Euler<A>> for Matrix3<<A as Angle>::Unitless> where
1136+
impl<A> From<Euler<A>> for Matrix3<A::Unitless> where
11371137
A: Angle + Into<Rad<<A as Angle>::Unitless>>,
11381138
{
11391139
fn from(src: Euler<A>) -> Matrix3<A::Unitless> {
@@ -1148,7 +1148,7 @@ impl<A> From<Euler<A>> for Matrix3<<A as Angle>::Unitless> where
11481148
}
11491149
}
11501150

1151-
impl<A> From<Euler<A>> for Matrix4<<A as Angle>::Unitless> where
1151+
impl<A> From<Euler<A>> for Matrix4<A::Unitless> where
11521152
A: Angle + Into<Rad<<A as Angle>::Unitless>>,
11531153
{
11541154
fn from(src: Euler<A>) -> Matrix4<A::Unitless> {

src/quaternion.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ impl InnerSpace for Quaternion<f32> {
256256
}
257257
}
258258

259-
impl<A> From<Euler<A>> for Quaternion<<A as Angle>::Unitless> where
259+
impl<A> From<Euler<A>> for Quaternion<A::Unitless> where
260260
A: Angle + Into<Rad<<A as Angle>::Unitless>>,
261261
{
262262
fn from(src: Euler<A>) -> Quaternion<A::Unitless> {

src/rotation.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ impl<S: BaseFloat> Rotation3<S> for Basis3<S> {
370370
}
371371
}
372372

373-
impl<A: Angle> From<Euler<A>> for Basis3<<A as Angle>::Unitless> where
373+
impl<A: Angle> From<Euler<A>> for Basis3<A::Unitless> where
374374
A: Into<Rad<<A as Angle>::Unitless>>,
375375
{
376376
/// Create a three-dimensional rotation matrix from a set of euler angles.

0 commit comments

Comments
 (0)