From b18bdad6c94a8e234108d531f0c480c7104abebe Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Sun, 22 Feb 2026 17:08:21 -0800 Subject: [Rust] Misc documentation and cleanup --- rust/tests/binary_view.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'rust/tests/binary_view.rs') diff --git a/rust/tests/binary_view.rs b/rust/tests/binary_view.rs index 7a0a3299..11caf3d0 100644 --- a/rust/tests/binary_view.rs +++ b/rust/tests/binary_view.rs @@ -3,6 +3,7 @@ use binaryninja::binary_view::{ AnalysisProgress, AnalysisState, BinaryViewBase, BinaryViewExt, StringType, }; use binaryninja::data_buffer::DataBuffer; +use binaryninja::file_metadata::SaveSettings; use binaryninja::function::{Function, FunctionViewType}; use binaryninja::headless::Session; use binaryninja::main_thread::execute_on_main_thread_and_wait; @@ -69,7 +70,9 @@ fn test_binary_saving_database() { // Save the modified database. let temp_dir = tempfile::tempdir().expect("Failed to create temporary directory"); let temp_path = temp_dir.path().join("atox.obj.bndb"); - assert!(view.file().create_database(&temp_path)); + assert!(view + .file() + .create_database(&temp_path, &SaveSettings::new())); // Verify that the file exists and is modified. let new_view = binaryninja::load(temp_path).expect("Failed to load new view"); let new_entry_function = new_view -- cgit v1.3.1