summaryrefslogtreecommitdiff
path: root/rust/src/function.rs
diff options
context:
space:
mode:
authorRyan Snyder <ryan@vector35.com>2024-05-01 08:31:37 -0400
committerRyan Snyder <ryan@vector35.com>2024-05-01 08:31:37 -0400
commit62eaff47182657ca692d02e73f0aa5828dd74f4c (patch)
treeb9f8fc9b1f573e25cfbffcb15b6193a011336aa1 /rust/src/function.rs
parentbec653143bd78f1662ed1a556c4b00471f395fcc (diff)
parentf3c1a3cb3cbdd25d5f556d1ab770f8cbc29fd567 (diff)
Merge branch 'fix-array-2' of github.com:rbran/binaryninja-api into dev
Diffstat (limited to 'rust/src/function.rs')
-rw-r--r--rust/src/function.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/rust/src/function.rs b/rust/src/function.rs
index 7f900a25..74e05ea5 100644
--- a/rust/src/function.rs
+++ b/rust/src/function.rs
@@ -422,10 +422,10 @@ unsafe impl CoreOwnedArrayProvider for Function {
}
}
-unsafe impl<'a> CoreArrayWrapper<'a> for Function {
- type Wrapped = Guard<'a, Function>;
+unsafe impl CoreArrayWrapper for Function {
+ type Wrapped<'a> = Guard<'a, Function>;
- unsafe fn wrap_raw(raw: &'a *mut BNFunction, context: &'a ()) -> Guard<'a, Function> {
+ unsafe fn wrap_raw<'a>(raw: &'a *mut BNFunction, context: &'a ()) -> Self::Wrapped<'a> {
Guard::new(Function { handle: *raw }, context)
}
}
@@ -476,10 +476,10 @@ unsafe impl CoreOwnedArrayProvider for AddressRange {
}
}
-unsafe impl<'a> CoreArrayWrapper<'a> for AddressRange {
- type Wrapped = &'a AddressRange;
+unsafe impl CoreArrayWrapper for AddressRange {
+ type Wrapped<'a> = &'a AddressRange;
- unsafe fn wrap_raw(raw: &'a Self::Raw, _context: &'a Self::Context) -> Self::Wrapped {
+ unsafe fn wrap_raw<'a>(raw: &'a Self::Raw, _context: &'a Self::Context) -> Self::Wrapped<'a> {
mem::transmute(raw)
}
}