diff options
| author | KyleMiles <krm504@nyu.edu> | 2023-01-05 17:29:14 -0500 |
|---|---|---|
| committer | KyleMiles <krm504@nyu.edu> | 2023-01-06 16:29:58 -0500 |
| commit | a154e45cce79b0c2264c1e1cd37a3d1bf5bc6154 (patch) | |
| tree | 11f436b720edfdf37819e9e83e7131d220687074 /rust/src/headless.rs | |
| parent | 52edc39a7081fd6662e14fbcd473adabbbc36c7a (diff) | |
Rust API: Lots and lots of clippy changes
Diffstat (limited to 'rust/src/headless.rs')
| -rw-r--r-- | rust/src/headless.rs | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/rust/src/headless.rs b/rust/src/headless.rs index cca8863b..c54e3ec9 100644 --- a/rust/src/headless.rs +++ b/rust/src/headless.rs @@ -89,14 +89,12 @@ pub fn shutdown() { /// Prelued-postlued helper function (calls [`init`] and [`shutdown`] for you) /// ```rust -/// fn main() { -/// binaryninja::headless::script_helper(|| { -/// binaryninja::open_view("/bin/cat") -/// .expect("Couldn't open `/bin/cat`") -/// .iter() -/// .for_each(|func| println!(" `{}`", func.symbol().full_name())); -/// }); -/// } +/// binaryninja::headless::script_helper(|| { +/// binaryninja::open_view("/bin/cat") +/// .expect("Couldn't open `/bin/cat`") +/// .iter() +/// .for_each(|func| println!(" `{}`", func.symbol().full_name())); +/// }); /// ``` pub fn script_helper(func: fn()) { init(); |
