Skip to content

Commit

Permalink
Introduce a cookbook test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerollmops committed Mar 5, 2025
1 parent dec6a50 commit 713d2bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion heed/src/iterator/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ impl<'txn, 'p, KC, DC, IM> RwIter<'txn, 'p, KC, DC, IM> {
RwIter { cursor, move_on_first: true, _phantom: marker::PhantomData }
}

pub fn as_wtxn(&mut self) -> &mut RwTxn<'p> {
pub fn as_wtxn<'a: 'txn>(&'a mut self) -> &'txn mut RwTxn<'p> {
/// TODO should the output lifetime be 'txn?
self.cursor.txn
}
Expand Down

0 comments on commit 713d2bc

Please sign in to comment.