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