summaryrefslogtreecommitdiff
path: root/rust/src
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2024-10-19 21:05:08 -0400
committerMason Reed <mason@vector35.com>2024-10-19 21:05:08 -0400
commit47fb9dbf43fb069635d421dabd16f7a721ec1d9a (patch)
tree1e1c774f9e1ac358f32a42b9e395a6f77def3d64 /rust/src
parentb42157dd6b361bf9ab38fc7b010870a1d143ba46 (diff)
Fix some rust warnings and remove mention of `binja-rs`
Diffstat (limited to 'rust/src')
-rw-r--r--rust/src/rc.rs2
-rw-r--r--rust/src/workflow.rs2
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 })
}