summaryrefslogtreecommitdiff
path: root/rust/src/function.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/function.rs')
-rw-r--r--rust/src/function.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/rust/src/function.rs b/rust/src/function.rs
index 55a609cf..c61e4291 100644
--- a/rust/src/function.rs
+++ b/rust/src/function.rs
@@ -1146,8 +1146,7 @@ impl Function {
// Create tag
let tag = Tag::new(tag_type, data);
- let binaryview = unsafe { BinaryView::ref_from_raw(BNGetFunctionData(self.handle)) };
- unsafe { BNAddTag(binaryview.handle, tag.handle, user) };
+ unsafe { BNAddTag(self.view().handle, tag.handle, user) };
unsafe {
match (user, addr) {