summaryrefslogtreecommitdiff
path: root/rust/examples/decompile/src
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2022-07-18 19:53:47 -0400
committerGlenn Smith <glenn@vector35.com>2022-09-29 21:02:21 -0400
commitad27532d344d3bf2995f623002753d2845c6ce20 (patch)
tree772db0ae0fc09993fcd3f13f62628cba3414d95b /rust/examples/decompile/src
parent90a3729620e85f66b8fa5d385ead21ac581a1cc5 (diff)
[Rust API] Add support for Metadata
Diffstat (limited to 'rust/examples/decompile/src')
-rw-r--r--rust/examples/decompile/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/examples/decompile/src/main.rs b/rust/examples/decompile/src/main.rs
index ee8cab1b..acd3e28b 100644
--- a/rust/examples/decompile/src/main.rs
+++ b/rust/examples/decompile/src/main.rs
@@ -42,7 +42,7 @@ fn main() {
eprintln!("Loading binary...");
let bv = binaryninja::open_view(args.filename).expect("Couldn't open file");
- eprintln!("Filename: `{}`", bv.metadata().filename());
+ eprintln!("Filename: `{}`", bv.file().filename());
eprintln!("File size: `{:#x}`", bv.len());
eprintln!("Function count: {}", bv.functions().len());