diff options
Diffstat (limited to 'rust/src/lib.rs')
| -rw-r--r-- | rust/src/lib.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/rust/src/lib.rs b/rust/src/lib.rs index 8a51a7d8..d2894b20 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -218,7 +218,12 @@ pub fn load<S: BnStrCompatible>(filename: S) -> Option<rc::Ref<binaryview::Binar /// The main way to open and load files (with options) into Binary Ninja. Make sure you've properly initialized the core before calling this function. See [`crate::headless::init()`] /// /// ```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 bv = binaryninja::load_with_options("/bin/cat", true, Some(settings)) /// .expect("Couldn't open `/bin/cat`"); |
