mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-12-10 00:00:24 +03:00
kill a rust warning
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
a8a7967dd6
commit
a2400256b3
@ -99,11 +99,11 @@ impl<'t> BtreeIter<'t> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn peek(&mut self) -> Result<Option<BkeySC>, bch_errcode> {
|
pub fn peek(&mut self) -> Result<Option<BkeySC<'_>>, bch_errcode> {
|
||||||
self.peek_max(SPOS_MAX)
|
self.peek_max(SPOS_MAX)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn peek_and_restart(&mut self) -> Result<Option<BkeySC>, bch_errcode> {
|
pub fn peek_and_restart(&mut self) -> Result<Option<BkeySC<'_>>, bch_errcode> {
|
||||||
unsafe {
|
unsafe {
|
||||||
let k = c::bch2_btree_iter_peek_and_restart_outlined(&mut self.raw);
|
let k = c::bch2_btree_iter_peek_and_restart_outlined(&mut self.raw);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user