diff --git a/bch_bindgen/src/bkey.rs b/bch_bindgen/src/bkey.rs
index eab070c6a..91d515b73 100644
--- a/bch_bindgen/src/bkey.rs
+++ b/bch_bindgen/src/bkey.rs
@@ -64,7 +64,7 @@ impl<'a, 'b> BkeySC<'a> {
BkeySCToText { k: self, fs }
}
- pub fn v(&'a self) -> BkeyValC {
+ pub fn v(&'a self) -> BkeyValC<'a> {
unsafe {
let ty: c::bch_bkey_type = transmute(self.k.type_ as u32);
diff --git a/bch_bindgen/src/btree.rs b/bch_bindgen/src/btree.rs
index ba3ec87c3..337911782 100644
--- a/bch_bindgen/src/btree.rs
+++ b/bch_bindgen/src/btree.rs
@@ -15,7 +15,7 @@ pub struct BtreeTrans<'f> {
}
impl<'f> BtreeTrans<'f> {
- pub fn new(fs: &'f Fs) -> BtreeTrans {
+ pub fn new(fs: &'f Fs) -> BtreeTrans<'f> {
unsafe {
BtreeTrans {
raw: &mut *c::__bch2_trans_get(fs.raw, 0),
@@ -81,7 +81,7 @@ impl<'t> BtreeIter<'t> {
}
}
- pub fn peek_upto<'i>(&'i mut self, end: c::bpos) -> Result