diff options
| author | KyleMiles <krm504@nyu.edu> | 2024-05-10 11:50:07 -0400 |
|---|---|---|
| committer | KyleMiles <krm504@nyu.edu> | 2024-05-10 12:00:56 -0400 |
| commit | adde27cfa50f7ef70821cecb71967d538962f7b3 (patch) | |
| tree | 5378167c1b3aaa1d36f8b8098e12b25241488025 /rust/src/lib.rs | |
| parent | b2ec4cc4bb2e5535769928b561f1c1932a66dcc8 (diff) | |
Fix remaining Rust doc examples; We now make sure examples build in PR CI
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`"); |
