From eb7a52bf4bd3b19c22f2eadda444ab045c674fe3 Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Mon, 3 May 2021 18:45:19 -0400 Subject: Rust API : Better headless support; Introducing `binaryninja::open_view` and `binaryninja::open_view_with_options`, updated init/shutdown, script example, more setting support, and misc fixes --- rust/src/basicblock.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rust/src/basicblock.rs') diff --git a/rust/src/basicblock.rs b/rust/src/basicblock.rs index 6b493803..3b9b7e5c 100644 --- a/rust/src/basicblock.rs +++ b/rust/src/basicblock.rs @@ -130,7 +130,7 @@ impl BasicBlock { pub fn function(&self) -> Ref { unsafe { let func = BNGetBasicBlockFunction(self.handle); - Ref::new(Function::from_raw(func)) + Function::from_raw(func) } } -- cgit v1.3.1