diff options
Diffstat (limited to 'rust/src')
| -rw-r--r-- | rust/src/rc.rs | 2 | ||||
| -rw-r--r-- | rust/src/workflow.rs | 2 |
2 files changed, 3 insertions, 1 deletions
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<T: RefCountable + Hash> Hash for Ref<T> { // 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<BNAnalysisContext>) -> Ref<Self> { Ref::new(Self { handle }) } @@ -156,6 +157,7 @@ impl Activity { Self { handle } } + #[allow(unused)] pub(crate) unsafe fn ref_from_raw(handle: NonNull<BNActivity>) -> Ref<Self> { Ref::new(Self { handle }) } |
