From 2c0170a03b66da239b1db0e5219de71de98eeca8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Garamv=C3=B6lgyi?= Date: Mon, 2 Sep 2024 17:32:50 +0200 Subject: [PATCH] docs: remove outdated comment in cursor::Walker (#10658) --- crates/storage/db-api/src/cursor.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/crates/storage/db-api/src/cursor.rs b/crates/storage/db-api/src/cursor.rs index bada512831eb..134819a8e2cd 100644 --- a/crates/storage/db-api/src/cursor.rs +++ b/crates/storage/db-api/src/cursor.rs @@ -132,10 +132,6 @@ pub trait DbDupCursorRW { } /// Provides an iterator to `Cursor` when handling `Table`. -/// -/// Reason why we have two lifetimes is to distinguish between `'cursor` lifetime -/// and inherited `'tx` lifetime. If there is only one, rust would short circle -/// the Cursor lifetime and it wouldn't be possible to use Walker. pub struct Walker<'cursor, T: Table, CURSOR: DbCursorRO> { /// Cursor to be used to walk through the table. cursor: &'cursor mut CURSOR,