From f69d8ecd9aee73cb271668bd793d1490ed9626e3 Mon Sep 17 00:00:00 2001 From: Jisoo Park Date: Sat, 4 Apr 2015 20:49:00 +0900 Subject: [PATCH] Update to the latest nightly --- src/naive/date.rs | 10 +++++----- src/offset/mod.rs | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/naive/date.rs b/src/naive/date.rs index 510c1ac..746384c 100644 --- a/src/naive/date.rs +++ b/src/naive/date.rs @@ -1022,7 +1022,7 @@ mod tests { /** * The internal implementation of the calendar and ordinal date. * - * The current implementation is optimized for determining year, month, day and day of week. + * The current implementation is optimized for determining year, month, day and day of week. * 4-bit `YearFlags` map to one of 14 possible classes of year in the Gregorian calendar, * which are included in every packed `NaiveDate` instance. * The conversion between the packed calendar date (`Mdf`) and the ordinal date (`Of`) is @@ -1047,12 +1047,12 @@ mod internals { /// The year flags (aka the dominical letter). /// /// There are 14 possible classes of year in the Gregorian calendar: - /// common and leap years starting with Monday through Sunday. + /// common and leap years starting with Monday through Sunday. /// The `YearFlags` stores this information into 4 bits `abbb`, /// where `a` is `1` for the common year (simplifies the `Of` validation) /// and `bbb` is a non-zero `Weekday` (mapping `Mon` to 7) of the last day in the past year /// (simplifies the day of week calculation from the 1-based ordinal). - #[derive(PartialEq, Eq, Copy)] + #[derive(PartialEq, Eq, Copy, Clone)] pub struct YearFlags(pub u8); pub const A: YearFlags = YearFlags(0o15); pub const AG: YearFlags = YearFlags(0o05); @@ -1292,7 +1292,7 @@ mod internals { /// /// The whole bits except for the least 3 bits are referred as `Ol` (ordinal and leap flag), /// which is an index to the `OL_TO_MDL` lookup table. - #[derive(PartialEq, PartialOrd, Copy)] + #[derive(PartialEq, PartialOrd, Copy, Clone)] pub struct Of(pub u32); impl Of { @@ -1393,7 +1393,7 @@ mod internals { /// The whole bits except for the least 3 bits are referred as `Mdl` /// (month, day of month and leap flag), /// which is an index to the `MDL_TO_OL` lookup table. - #[derive(PartialEq, PartialOrd, Copy)] + #[derive(PartialEq, PartialOrd, Copy, Clone)] pub struct Mdf(pub u32); impl Mdf { diff --git a/src/offset/mod.rs b/src/offset/mod.rs index ef2b65c..565e225 100644 --- a/src/offset/mod.rs +++ b/src/offset/mod.rs @@ -164,7 +164,7 @@ pub trait Offset: Sized + Clone + fmt::Debug { } /// The time zone. -pub trait TimeZone: Sized { +pub trait TimeZone: Sized + Clone { /// An associated offset type. /// This type is used to store the actual offset in date and time types. /// The original `TimeZone` value can be recovered via `TimeZone::from_offset`.