diff options
| author | Mason Reed <mason@vector35.com> | 2025-01-31 16:15:14 -0500 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-01-31 16:17:30 -0500 |
| commit | b63319bba9d95d41dae9e20a2035318628bef67f (patch) | |
| tree | 9ae97907aa3f30aebb8654dcec9ab68472f7fbfc /rust/src/linear_view.rs | |
| parent | 18dde29a06847598d97a5166e3badb14a779c001 (diff) | |
Fix misc clippy lints
Diffstat (limited to 'rust/src/linear_view.rs')
| -rw-r--r-- | rust/src/linear_view.rs | 4 |
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) } } |
