summaryrefslogtreecommitdiff
path: root/rust/src/headless.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/headless.rs')
-rw-r--r--rust/src/headless.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/rust/src/headless.rs b/rust/src/headless.rs
index 740c3dc6..15754aba 100644
--- a/rust/src/headless.rs
+++ b/rust/src/headless.rs
@@ -135,7 +135,12 @@ impl Session {
}
/// ```no_run
- /// let settings = [("analysis.linearSweep.autorun", false)].into();
+ /// use binaryninja::{metadata::Metadata, rc::Ref};
+ /// use std::collections::HashMap;
+ ///
+ /// let settings: Ref<Metadata> = HashMap::from([
+ /// ("analysis.linearSweep.autorun", false.into()),
+ /// ]).into();
/// let headless_session = binaryninja::headless::Session::new();
///
/// let bv = headless_session.load_with_options("/bin/cat", true, Some(settings))