summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rust/src/debuginfo.rs8
-rw-r--r--rust/src/types.rs8
2 files changed, 2 insertions, 14 deletions
diff --git a/rust/src/debuginfo.rs b/rust/src/debuginfo.rs
index 054e15cd..f29f8ac2 100644
--- a/rust/src/debuginfo.rs
+++ b/rust/src/debuginfo.rs
@@ -285,14 +285,6 @@ unsafe impl CoreArrayProviderInner for DebugInfoParser {
}
}
-unsafe impl CoreArrayWrapper for DebugInfoParser {
- type Wrapped<'a> = Guard<'a, DebugInfoParser>;
-
- unsafe fn wrap_raw<'a>(raw: &'a Self::Raw, _context: &'a Self::Context) -> Self::Wrapped<'a> {
- Guard::new(DebugInfoParser { handle: *raw }, &())
- }
-}
-
///////////////////////
// DebugFunctionInfo
diff --git a/rust/src/types.rs b/rust/src/types.rs
index 750ca46c..8292db07 100644
--- a/rust/src/types.rs
+++ b/rust/src/types.rs
@@ -2094,17 +2094,13 @@ impl StructureMember {
impl CoreArrayProvider for StructureMember {
type Raw = BNStructureMember;
type Context = ();
+ type Wrapped<'a> = Guard<'a, StructureMember>;
}
-unsafe impl CoreOwnedArrayProvider for StructureMember {
+unsafe impl CoreArrayProviderInner for StructureMember {
unsafe fn free(raw: *mut Self::Raw, count: usize, _context: &Self::Context) {
BNFreeStructureMemberList(raw, count)
}
-}
-
-unsafe impl CoreArrayWrapper for StructureMember {
- type Wrapped<'a> = Guard<'a, StructureMember>;
-
unsafe fn wrap_raw<'a>(raw: &'a Self::Raw, _context: &'a Self::Context) -> Self::Wrapped<'a> {
Guard::new(StructureMember::from_raw(*raw), &())
}