derive {Copy, Eq, Hash} for LocalResult.

This commit is contained in:
kennytm 2019-04-21 15:42:11 +08:00
parent bcdc66a4f8
commit d3dc9c0e10
No known key found for this signature in database
GPG Key ID: FEF6C8051D0E013C
1 changed files with 1 additions and 1 deletions

View File

@ -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<T> {
/// Given local time representation is invalid.
/// This can occur when, for example, the positive timezone transition.