Skip to content

Commit

Permalink
Derive more traits on public enums
Browse files Browse the repository at this point in the history
  • Loading branch information
imp committed Sep 15, 2020
1 parent aac9649 commit 56a5829
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/humantime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ use chrono::{DateTime, Duration, TimeZone, Utc};
use crate::Humanize;

/// Indicates the time of the period in relation to the time of the utterance
#[derive(Clone, Copy, Debug, PartialEq)]
#[derive(Clone, Copy, Debug, Hash, PartialEq, PartialOrd)]
pub enum Tense {
Past,
Present,
Future,
}

/// The accuracy of the representation
#[derive(Clone, Copy, Debug, PartialEq)]
#[derive(Clone, Copy, Debug, Hash, PartialEq, PartialOrd)]
pub enum Accuracy {
/// Rough approximation, easy to grasp, but not necessarily accurate
Rough,
Expand Down

0 comments on commit 56a5829

Please sign in to comment.