From 04bc6f11ae0289aae57d63d4cd32f4ef305d1a7a Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Thu, 29 Jun 2023 20:49:26 -0400 Subject: Move binary view loading in to the core; deprecate open_view in favor of load; update examples --- rust/examples/template/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rust/examples/template/src') diff --git a/rust/examples/template/src/main.rs b/rust/examples/template/src/main.rs index 0c27b6d2..20e082f2 100644 --- a/rust/examples/template/src/main.rs +++ b/rust/examples/template/src/main.rs @@ -11,7 +11,7 @@ fn main() { // Your code here... println!("Loading binary..."); - let bv = binaryninja::open_view("/bin/cat").expect("Couldn't open `/bin/cat`"); + let bv = binaryninja::load("/bin/cat").expect("Couldn't open `/bin/cat`"); println!("Filename: `{}`", bv.file().filename()); println!("File size: `{:#x}`", bv.len()); -- cgit v1.3.1