Merge pull request #312 from kennytm/derive-for-local-result

derive {Copy, Eq, Hash} for LocalResult.
This commit is contained in:
Brandon W Maister 2019-04-21 13:05:04 -04:00 committed by GitHub
commit 7bc2cd8641
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.