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.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/rust/src/platform.rs b/rust/src/platform.rs
index 42e2f80c..11f76284 100644
--- a/rust/src/platform.rs
+++ b/rust/src/platform.rs
@@ -365,17 +365,13 @@ unsafe impl RefCountable for Platform {
impl CoreArrayProvider for Platform {
type Raw = *mut BNPlatform;
type Context = ();
+ type Wrapped<'a> = Guard<'a, Platform>;
}
-unsafe impl CoreOwnedArrayProvider for Platform {
+unsafe impl CoreArrayProviderInner for Platform {
unsafe fn free(raw: *mut *mut BNPlatform, count: usize, _context: &()) {
BNFreePlatformList(raw, count);
}
-}
-
-unsafe impl CoreArrayWrapper for Platform {
- type Wrapped<'a> = Guard<'a, Platform>;
-
unsafe fn wrap_raw<'a>(raw: &'a *mut BNPlatform, context: &'a ()) -> Self::Wrapped<'a> {
debug_assert!(!raw.is_null());
Guard::new(Platform { handle: *raw }, context)