From 72d4460d8199ad47675444f0fe37e26a5a909ae0 Mon Sep 17 00:00:00 2001 From: Ty Overby Date: Fri, 23 Jan 2015 15:01:24 -0800 Subject: [PATCH] rename fmt::Show to fmt::Debug --- src/angle.rs | 12 ++++++------ src/num.rs | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/angle.rs b/src/angle.rs index 4fc3c35..f93768b 100644 --- a/src/angle.rs +++ b/src/angle.rs @@ -84,7 +84,7 @@ pub trait Angle + ToRad + ToDeg + ScalarConv -+ fmt::Show ++ fmt::Debug { /// Create a new angle from any other valid angle. fn from>(theta: A) -> Self; @@ -154,7 +154,7 @@ pub trait Angle #[inline] fn turn_div_3() -> Self { let full_turn: Self = Angle::full_turn(); full_turn.div_s(cast(3i8).unwrap()) } #[inline] fn turn_div_4() -> Self { let full_turn: Self = Angle::full_turn(); full_turn.div_s(cast(4i8).unwrap()) } #[inline] fn turn_div_6() -> Self { let full_turn: Self = Angle::full_turn(); full_turn.div_s(cast(6i8).unwrap()) } - + #[inline] fn equiv(&self, other: &Self) -> bool { self.normalize() == other.normalize() } } @@ -281,15 +281,15 @@ Angle for Deg { #[inline] pub fn atan(s: S) -> Rad { rad(s.atan()) } #[inline] pub fn atan2(a: S, b: S) -> Rad { rad(a.atan2(b)) } -impl -fmt::Show for Rad { +impl +fmt::Debug for Rad { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{:?} rad", self.s) } } -impl -fmt::Show for Deg { +impl +fmt::Debug for Deg { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{:?}°", self.s) } diff --git a/src/num.rs b/src/num.rs index b546e37..4839d45 100644 --- a/src/num.rs +++ b/src/num.rs @@ -73,7 +73,7 @@ pub trait One { pub trait BaseNum: Copy + NumCast + Clone + Add + Sub + Mul + Div + Rem + Neg + PartialEq - + PartialOrd + cmp::PartialOrd + fmt::Show + Zero + One + + PartialOrd + cmp::PartialOrd + fmt::Debug + Zero + One {}