Rust bindings refactor #232
Annotations
6 errors and 4 warnings
cargo fmt
Process completed with exit code 1.
|
needless `fn main` in doctest:
rust/rust/src/../README.md#L20
error: needless `fn main` in doctest
--> ./rust/rust/src/../README.md:20:1
|
20 | / use binaryninja::headless::Session;
21 | | use binaryninja::binaryview::{BinaryViewBase, BinaryViewExt};
22 | |
23 | | fn main() {
... |
35 | | }
36 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
= note: `-D clippy::needless-doctest-main` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_doctest_main)]`
|
needless `fn main` in doctest:
rust/rust/src/../README.md#L65
error: needless `fn main` in doctest
--> ./rust/rust/src/../README.md:65:1
|
65 | / fn main() {
66 | | let link_path =
67 | | std::env::var_os("DEP_BINARYNINJACORE_PATH").expect("DEP_BINARYNINJACORE_PATH not specified");
... |
78 | | }
79 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
needless `fn main` in doctest:
rust/rust/src/../README.md#L114
error: needless `fn main` in doctest
--> ./rust/rust/src/../README.md:114:1
|
114 | / fn main() {
115 | | // You must initialize the core to use Binary Ninja.
116 | | let session = binaryninja::headless::Session::new().expect("Failed to initialize!");
117 | | // Once `session` is dropped, the core will be shutdown!
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
|
cargo clippy
Error: Clippy has exited with exit code 101
|
cargo test
Process completed with exit code 101.
|
typos
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
cargo fmt:
rust/src/headless.rs#L98
Diff in /home/runner/work/binaryninja-api/binaryninja-api/rust/src/headless.rs
|
cargo clippy
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
cargo test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|