summaryrefslogtreecommitdiff
path: root/rust/examples/decompile.rs
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2026-02-11 17:56:26 -0800
committerMason Reed <35282038+emesare@users.noreply.github.com>2026-02-23 00:09:44 -0800
commitc1dbea197a6ba7e3d008e01c8169f5c3702151ea (patch)
treec4dc5e203e7c04bd7ba1b105bd065073f05774a5 /rust/examples/decompile.rs
parentd61826e8fbe3580c762f7f317f69201bce3710ad (diff)
[Rust] Refactor `FileMetadata` file information
- Rename and retype `FileMetadata::filename` and make the assignment required to happen at time of construction. - Add `FileMetadata::display_name` which is only to be used for presentation purposes. - Add `FileMetadata::virtual_path` for containers. - Rename `FileMetadata::modified` to `FileMetadata::is_modified` to be more consistent across codebase. - Add some missing documentation. - Add `BinaryView::from_metadata` with accompanying documentation.
Diffstat (limited to 'rust/examples/decompile.rs')
-rw-r--r--rust/examples/decompile.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/examples/decompile.rs b/rust/examples/decompile.rs
index 6ba9cbf4..155de81c 100644
--- a/rust/examples/decompile.rs
+++ b/rust/examples/decompile.rs
@@ -42,7 +42,7 @@ pub fn main() {
.load(&filename)
.expect("Couldn't open file!");
- tracing::info!("Filename: `{}`", bv.file().filename());
+ tracing::info!("File: `{}`", bv.file());
tracing::info!("File size: `{:#x}`", bv.len());
tracing::info!("Function count: {}", bv.functions().len());