File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,10 @@ pub struct Guard {
3636}
3737
3838impl 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 ) {
Original file line number Diff line number Diff 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 ///
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ use crate::metrics::Metrics;
3636pub struct Guard ( crate :: Result < ( UserKey , UserValue ) > ) ;
3737
3838impl 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) {
You can’t perform that action at this time.
0 commit comments