diff --git a/src/lib.rs b/src/lib.rs index a7e97ef..ffa6ac8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -215,7 +215,7 @@ impl<'a> Eq for MownStr<'a> {} impl<'a> PartialOrd for MownStr<'a> { fn partial_cmp(&self, other: &MownStr<'a>) -> Option { - self.deref().partial_cmp(other.deref()) + Some(self.cmp(other)) } }