Skip to content

Commit e5ec803

Browse files
committed
Updated to latest Rust
1 parent 141c4a8 commit e5ec803

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/cgmath/angle.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ use std::num::{One, one, Zero, zero, cast};
2323

2424
use approx::ApproxEq;
2525

26-
#[deriving(Clone, Eq, Ord, IterBytes)] pub struct Rad<S> { s: S }
27-
#[deriving(Clone, Eq, Ord, IterBytes)] pub struct Deg<S> { s: S }
26+
#[deriving(Clone, Eq, Ord, Hash)] pub struct Rad<S> { s: S }
27+
#[deriving(Clone, Eq, Ord, Hash)] pub struct Deg<S> { s: S }
2828

2929
#[inline] pub fn rad<S: Float>(s: S) -> Rad<S> { Rad { s: s } }
3030
#[inline] pub fn deg<S: Float>(s: S) -> Deg<S> { Deg { s: s } }

src/cgmath/point.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ use array::*;
2424
use vector::*;
2525

2626
/// A point in 2-dimensional space.
27-
#[deriving(Eq, Clone, IterBytes)]
27+
#[deriving(Eq, Clone, Hash)]
2828
pub struct Point2<S> { x: S, y: S }
2929

3030
/// A point in 3-dimensional space.
31-
#[deriving(Eq, Clone, IterBytes)]
31+
#[deriving(Eq, Clone, Hash)]
3232
pub struct Point3<S> { x: S, y: S, z: S }
3333

3434

src/cgmath/vector.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ pub trait Vector
8080
// Utility macro for generating associated functions for the vectors
8181
macro_rules! vec(
8282
($Self:ident <$S:ident> { $($field:ident),+ }, $n:expr) => (
83-
#[deriving(Eq, Clone, IterBytes)]
83+
#[deriving(Eq, Clone, Hash)]
8484
pub struct $Self<S> { $($field: S),+ }
8585

8686
impl<$S: Primitive> $Self<$S> {

0 commit comments

Comments
 (0)