Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround rust-lang/rust#41478. #410

Merged
merged 1 commit into from
May 2, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/matrix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand All @@ -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> {
Expand Down
2 changes: 1 addition & 1 deletion src/quaternion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down
2 changes: 1 addition & 1 deletion src/rotation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down