From 4aeb55836f26dc9614264bb3b3ce48a8ba5122e8 Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Thu, 2 Dec 2021 04:20:45 -0500 Subject: Rust API - Add BinaryView::data_variables --- rust/src/basicblock.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rust/src/basicblock.rs') diff --git a/rust/src/basicblock.rs b/rust/src/basicblock.rs index 3b9b7e5c..0bd32af3 100644 --- a/rust/src/basicblock.rs +++ b/rust/src/basicblock.rs @@ -69,7 +69,7 @@ unsafe impl<'a, C: 'a + BlockContext> CoreOwnedArrayProvider for Edge<'a, C> { type Raw = BNBasicBlockEdge; type Context = EdgeContext<'a, C>; - unsafe fn free(raw: *mut BNBasicBlockEdge, count: usize, _context: &Self::Context) { + unsafe fn free(raw: *mut Self::Raw, count: usize, _context: &Self::Context) { BNFreeBasicBlockEdgeList(raw, count); } } @@ -77,7 +77,7 @@ unsafe impl<'a, C: 'a + BlockContext> CoreOwnedArrayProvider for Edge<'a, C> { unsafe impl<'a, C: 'a + BlockContext> CoreOwnedArrayWrapper<'a> for Edge<'a, C> { type Wrapped = Edge<'a, C>; - unsafe fn wrap_raw(raw: &'a BNBasicBlockEdge, context: &'a Self::Context) -> Edge<'a, C> { + unsafe fn wrap_raw(raw: &'a Self::Raw, context: &'a Self::Context) -> Edge<'a, C> { let edge_target = Guard::new( BasicBlock::from_raw(raw.target, context.orig_block.context.clone()), raw, -- cgit v1.3.1