Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Removed order from month_day_nano.
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgecarleitao committed Aug 13, 2021
1 parent 3c1bd9e commit 94f3910
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,21 +355,3 @@ impl months_days_ns {
self.2
}
}

impl Ord for months_days_ns {
fn cmp(&self, other: &Self) -> Ordering {
match self.months().cmp(&other.months()) {
Ordering::Equal => match self.days().cmp(&other.days()) {
Ordering::Equal => self.ns().cmp(&other.ns()),
other => other,
},
other => other,
}
}
}

impl PartialOrd for months_days_ns {
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
Some(self.cmp(other))
}
}

0 comments on commit 94f3910

Please sign in to comment.