diff options
Diffstat (limited to 'rust/src/linearview.rs')
| -rw-r--r-- | rust/src/linearview.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/rust/src/linearview.rs b/rust/src/linearview.rs index 82094f6f..09968fc6 100644 --- a/rust/src/linearview.rs +++ b/rust/src/linearview.rs @@ -330,11 +330,7 @@ impl PartialEq for LinearViewCursor { impl PartialOrd for LinearViewCursor { fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> { - match unsafe { BNCompareLinearViewCursors(self.handle, other.handle) } { - i if i < 0 => Some(std::cmp::Ordering::Less), - i if i > 0 => Some(std::cmp::Ordering::Greater), - _ => Some(std::cmp::Ordering::Equal), - } + Some(self.cmp(other)) } } |
