From 98d1ce01c98c24f63e0626b679a553a04309aa9b Mon Sep 17 00:00:00 2001 From: Kang Seonghoon Date: Wed, 4 Feb 2015 16:17:35 +0900 Subject: [PATCH] language changes: replaced remaining occurrences of Show with Debug. --- src/format.rs | 2 +- src/lib.rs | 2 +- src/offset.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/format.rs b/src/format.rs index bba6d2e..1417e10 100644 --- a/src/format.rs +++ b/src/format.rs @@ -179,7 +179,7 @@ fn format(w: &mut fmt::Formatter, date: Option<&NaiveDate>, time: Option<&NaiveT /// A *temporary* object which can be used as an argument to `format!` or others. /// This is normally constructed via `format` methods of each date and time type. -#[derive(Show)] +#[derive(Debug)] pub struct DelayedFormat<'a> { /// The date view, if any. date: Option, diff --git a/src/lib.rs b/src/lib.rs index b19b523..7221f5d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -228,7 +228,7 @@ pub mod format; /// /// The order of the days of week depends on the context. /// One should prefer `*_from_monday` or `*_from_sunday` methods to get the correct result. -#[derive(PartialEq, Eq, Copy, Clone, FromPrimitive, Show)] +#[derive(PartialEq, Eq, Copy, Clone, FromPrimitive, Debug)] pub enum Weekday { /// Monday. Mon = 0, diff --git a/src/offset.rs b/src/offset.rs index 467f672..6d61a24 100644 --- a/src/offset.rs +++ b/src/offset.rs @@ -20,7 +20,7 @@ use time::Time; use datetime::DateTime; /// The conversion result from the local time to the timezone-aware datetime types. -#[derive(Clone, PartialEq, Show)] +#[derive(Clone, PartialEq, Debug)] pub enum LocalResult { /// Given local time representation is invalid. /// This can occur when, for example, the positive timezone transition.