diff --git a/src/bingen.rs b/src/bingen.rs index f33d0ce..1525dd4 100644 --- a/src/bingen.rs +++ b/src/bingen.rs @@ -85,7 +85,7 @@ mod segments { impl PartialOrd for CodeSegment<'_> { fn partial_cmp(&self, other: &Self) -> Option { - self.addr.partial_cmp(&other.addr) + Some(self.cmp(other)) } }