summaryrefslogtreecommitdiff
path: root/rust/src/linear_view.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/linear_view.rs')
-rw-r--r--rust/src/linear_view.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/rust/src/linear_view.rs b/rust/src/linear_view.rs
index 6d2347b3..1c92ddaa 100644
--- a/rust/src/linear_view.rs
+++ b/rust/src/linear_view.rs
@@ -264,6 +264,7 @@ impl LinearViewObjectIdentifier {
}
}
+// TODO: Impl iterator?
#[derive(Eq)]
pub struct LinearViewCursor {
pub(crate) handle: *mut BNLinearViewCursor,
@@ -333,6 +334,9 @@ impl LinearViewCursor {
unsafe { BNLinearViewCursorPrevious(self.handle) }
}
+ // TODO: This clippy lint is probably right? Just a lot of work and it would
+ // TODO: make this API different from the python and C++ implementations.
+ #[allow(clippy::should_implement_trait)]
pub fn next(&mut self) -> bool {
unsafe { BNLinearViewCursorNext(self.handle) }
}