summaryrefslogtreecommitdiff
path: root/rust/src/data_buffer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/data_buffer.rs')
-rw-r--r--rust/src/data_buffer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/src/data_buffer.rs b/rust/src/data_buffer.rs
index 5f59393e..7a5e543c 100644
--- a/rust/src/data_buffer.rs
+++ b/rust/src/data_buffer.rs
@@ -234,7 +234,7 @@ impl Eq for DataBuffer {}
impl PartialOrd for DataBuffer {
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
- Some(self.as_ref().cmp(other.as_ref()))
+ Some(self.cmp(other))
}
}