Skip to content

Commit

Permalink
refactor(queries): reformulate the safety comment on `QueryBatchedEra…
Browse files Browse the repository at this point in the history
…sedIterator::remaining` to hopefully be more clear

Signed-off-by: ⭐️NINIKA⭐️ <[email protected]>
  • Loading branch information
DCNick3 committed Sep 4, 2024
1 parent e71b780 commit 095f487
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/query/cursor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ impl QueryBatchedErasedIterator {

/// Returns the number of remaining elements in the iterator.
///
/// NOTE: this is not a safety guarantee, same as it relies on [`ExactSizeIterator::len`].
/// You should not rely on the reported amount being correct for safety, same as [`ExactSizeIterator::len`].
pub fn remaining(&self) -> u64 {
self.inner.remaining()
}
Expand Down

0 comments on commit 095f487

Please sign in to comment.