summaryrefslogtreecommitdiff
path: root/rust/src/section.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/section.rs')
-rw-r--r--rust/src/section.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/rust/src/section.rs b/rust/src/section.rs
index eb742e54..cfad97c0 100644
--- a/rust/src/section.rs
+++ b/rust/src/section.rs
@@ -168,16 +168,18 @@ unsafe impl RefCountable for Section {
}
}
-unsafe impl CoreOwnedArrayProvider for Section {
+impl CoreArrayProvider for Section {
type Raw = *mut BNSection;
type Context = ();
+}
+unsafe impl CoreOwnedArrayProvider for Section {
unsafe fn free(raw: *mut Self::Raw, count: usize, _context: &Self::Context) {
BNFreeSectionList(raw, count);
}
}
-unsafe impl<'a> CoreOwnedArrayWrapper<'a> for Section {
+unsafe impl<'a> CoreArrayWrapper<'a> for Section {
type Wrapped = Guard<'a, Section>;
unsafe fn wrap_raw(raw: &'a Self::Raw, context: &'a Self::Context) -> Self::Wrapped {