We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
PartialOrd
Ord
1 parent d45ab47 commit f32e547Copy full SHA for f32e547
src/volatile_ptr/mod.rs
@@ -79,7 +79,7 @@ where
79
T: ?Sized,
80
{
81
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
82
- Some(Ord::cmp(&self.pointer.as_ptr(), &other.pointer.as_ptr()))
+ Some(self.cmp(other))
83
}
84
85
src/volatile_ref.rs
@@ -314,7 +314,7 @@ where
314
315
316
317
318
319
320
0 commit comments