diff options
| author | KyleMiles <krm504@nyu.edu> | 2024-02-02 13:33:16 -0500 |
|---|---|---|
| committer | KyleMiles <krm504@nyu.edu> | 2024-02-02 13:33:16 -0500 |
| commit | 668f9cb0e0ea45c6d2cdc802dbe99b12f5623fff (patch) | |
| tree | 35bfa06ed37d60cbc45e2a26b6cb7c432f41c7fe /rust/src/linearview.rs | |
| parent | f682ca69b356755fe6c06bcdd8f4fab73f7d2c78 (diff) | |
Rust API : Misc clippy fixes
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)) } } |
