diff options
| author | Glenn Smith <glenn@vector35.com> | 2022-09-29 22:10:20 -0400 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2022-09-29 22:16:47 -0400 |
| commit | e51abf509d7040aac768e183a47c966613b67bb7 (patch) | |
| tree | 289b30c06b90db94509488e299a5958d25c9b37e /rust/examples/template/src | |
| parent | d781bdbee8a7327661a56647231c4d4ece7f0074 (diff) | |
Fix updated rust api
Diffstat (limited to 'rust/examples/template/src')
| -rw-r--r-- | rust/examples/template/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/examples/template/src/main.rs b/rust/examples/template/src/main.rs index 9125aeaa..1fbe3c83 100644 --- a/rust/examples/template/src/main.rs +++ b/rust/examples/template/src/main.rs @@ -13,7 +13,7 @@ fn main() { println!("Loading binary..."); let bv = binaryninja::open_view("/bin/cat").expect("Couldn't open `/bin/cat`"); - println!("Filename: `{}`", bv.metadata().filename()); + println!("Filename: `{}`", bv.file().filename()); println!("File size: `{:#x}`", bv.len()); println!("Function count: {}", bv.functions().len()); |
