From 713d2bc4080bf86c4ea054674064cba3ee2d3bb7 Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Wed, 5 Mar 2025 10:53:02 +0100 Subject: [PATCH] Introduce a cookbook test --- heed/src/iterator/iter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/heed/src/iterator/iter.rs b/heed/src/iterator/iter.rs index fb09b84b..2c828b03 100644 --- a/heed/src/iterator/iter.rs +++ b/heed/src/iterator/iter.rs @@ -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 }