From b63319bba9d95d41dae9e20a2035318628bef67f Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Fri, 31 Jan 2025 16:15:14 -0500 Subject: Fix misc clippy lints --- rust/src/linear_view.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rust/src/linear_view.rs') 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) } } -- cgit v1.3.1