diff --git a/examples/with-metadata.rs b/examples/with-metadata.rs index d7adb19..ed84e31 100644 --- a/examples/with-metadata.rs +++ b/examples/with-metadata.rs @@ -30,9 +30,7 @@ impl Eq for ByDuration {} impl PartialOrd for ByDuration { fn partial_cmp(&self, other: &Self) -> Option { - self.duration() - .partial_cmp(&other.duration()) - .map(|ord| ord.reverse()) + Some(self.cmp(other)) } }