From ea1cf8b77b6b95fffc2bf5cd1e19495a35095a34 Mon Sep 17 00:00:00 2001 From: Wei Chen Date: Tue, 3 Sep 2024 14:14:24 +0800 Subject: [PATCH] f --- crates/core/src/checkpoint.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/core/src/checkpoint.rs b/crates/core/src/checkpoint.rs index afc87edfb..1bbc31115 100644 --- a/crates/core/src/checkpoint.rs +++ b/crates/core/src/checkpoint.rs @@ -231,11 +231,6 @@ where core::ops::Bound::Unbounded => true, }) } - - /// This method tests for `self` and `other` to have equal internal pointers. - pub fn eq_ptr(&self, other: &Self) -> bool { - Arc::as_ptr(&self.0) == Arc::as_ptr(&other.0) - } } impl CheckPoint @@ -334,6 +329,11 @@ where Err(self) } } + + /// This method tests for `self` and `other` to have equal internal pointers. + pub fn eq_ptr(&self, other: &Self) -> bool { + Arc::as_ptr(&self.0) == Arc::as_ptr(&other.0) + } } /// Iterates over checkpoints backwards.