summaryrefslogtreecommitdiff
path: root/rust/src/basicblock.rs
diff options
context:
space:
mode:
authorKyleMiles <krm504@nyu.edu>2021-12-02 04:20:45 -0500
committerKyleMiles <krm504@nyu.edu>2021-12-02 04:25:39 -0500
commit4aeb55836f26dc9614264bb3b3ce48a8ba5122e8 (patch)
tree296cc04b8fd86d4c78db8c38719812fbe6e43659 /rust/src/basicblock.rs
parentbbf4d616ebdec77538832c1353b8e200a1ad9bbf (diff)
Rust API - Add BinaryView::data_variables
Diffstat (limited to 'rust/src/basicblock.rs')
-rw-r--r--rust/src/basicblock.rs4
1 files changed, 2 insertions, 2 deletions
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,