From d3dc9c0e10ca07649f983914ff329617898ec5f0 Mon Sep 17 00:00:00 2001 From: kennytm Date: Sun, 21 Apr 2019 15:42:11 +0800 Subject: [PATCH] derive {Copy, Eq, Hash} for LocalResult. --- src/offset/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/offset/mod.rs b/src/offset/mod.rs index be1e593..6f42b3d 100644 --- a/src/offset/mod.rs +++ b/src/offset/mod.rs @@ -26,7 +26,7 @@ use Weekday; use {Date, DateTime}; /// The conversion result from the local time to the timezone-aware datetime types. -#[derive(Clone, PartialEq, Debug)] +#[derive(Clone, PartialEq, Debug, Copy, Eq, Hash)] pub enum LocalResult { /// Given local time representation is invalid. /// This can occur when, for example, the positive timezone transition.