From 47fb9dbf43fb069635d421dabd16f7a721ec1d9a Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Sat, 19 Oct 2024 21:05:08 -0400 Subject: Fix some rust warnings and remove mention of `binja-rs` --- rust/src/rc.rs | 2 +- rust/src/workflow.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'rust/src') diff --git a/rust/src/rc.rs b/rust/src/rc.rs index dc1a502b..342633b9 100644 --- a/rust/src/rc.rs +++ b/rust/src/rc.rs @@ -134,7 +134,7 @@ impl Hash for Ref { // reference is held indirectly (e.g. a core-allocated array // of raw `*mut BNRawT`). // -// This wrapper is necessary because `binja-rs` wrappers around +// This wrapper is necessary because rust wrappers around // core objects can be bigger than the raw pointer to the core // object. This lets us create the full wrapper object and ensure // that it does not outlive the core-allocated array (or similar) diff --git a/rust/src/workflow.rs b/rust/src/workflow.rs index ae5c8e65..7172e779 100644 --- a/rust/src/workflow.rs +++ b/rust/src/workflow.rs @@ -24,6 +24,7 @@ impl AnalysisContext { Self { handle } } + #[allow(unused)] pub(crate) unsafe fn ref_from_raw(handle: NonNull) -> Ref { Ref::new(Self { handle }) } @@ -156,6 +157,7 @@ impl Activity { Self { handle } } + #[allow(unused)] pub(crate) unsafe fn ref_from_raw(handle: NonNull) -> Ref { Ref::new(Self { handle }) } -- cgit v1.3.1