Skip to content

Commit 212739d

Browse files
committed
wip
1 parent d284547 commit 212739d

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/blob_tree/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ pub struct Guard {
3636
}
3737

3838
impl IterGuard for Guard {
39-
fn into_inner_if(self, pred: impl Fn(&[u8]) -> bool) -> crate::Result<Option<crate::KvPair>> {
39+
fn into_inner_if(
40+
self,
41+
pred: impl Fn(&UserKey) -> bool,
42+
) -> crate::Result<Option<crate::KvPair>> {
4043
let kv = self.kv?;
4144

4245
if pred(&kv.key.user_key) {

src/iter_guard.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub trait IterGuard {
1414
/// # Errors
1515
///
1616
/// Will return `Err` if an IO error occurs.
17-
fn into_inner_if(self, pred: impl Fn(&[u8]) -> bool) -> crate::Result<Option<KvPair>>;
17+
fn into_inner_if(self, pred: impl Fn(&UserKey) -> bool) -> crate::Result<Option<KvPair>>;
1818

1919
/// Accesses the key-value pair.
2020
///

src/tree/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ use crate::metrics::Metrics;
3636
pub struct Guard(crate::Result<(UserKey, UserValue)>);
3737

3838
impl IterGuard for Guard {
39-
fn into_inner_if(self, pred: impl Fn(&[u8]) -> bool) -> crate::Result<Option<KvPair>> {
39+
fn into_inner_if(self, pred: impl Fn(&UserKey) -> bool) -> crate::Result<Option<KvPair>> {
4040
let (k, v) = self.0?;
4141

4242
if pred(&k) {

0 commit comments

Comments
 (0)