From 94f3910a8d288fc4273db618411742738cb95f49 Mon Sep 17 00:00:00 2001 From: "Jorge C. Leitao" Date: Fri, 13 Aug 2021 20:05:18 +0000 Subject: [PATCH] Removed order from month_day_nano. --- src/types/mod.rs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/types/mod.rs b/src/types/mod.rs index d325eb05c18..17eb02ef004 100644 --- a/src/types/mod.rs +++ b/src/types/mod.rs @@ -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 { - Some(self.cmp(other)) - } -}