Skip to content

Fix clippy lints applying to binaryninjacore-sys #380

Fix clippy lints applying to binaryninjacore-sys

Fix clippy lints applying to binaryninjacore-sys #380

Triggered via push February 25, 2025 01:41
Status Failure
Total duration 42s
Artifacts 1

rust.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

7 errors
operator precedence can trip the unwary: rust/rust/src/segment.rs#L286
error: operator precedence can trip the unwary --> ./rust/rust/src/segment.rs:286:9 | 286 | / (self.executable as u32) 287 | | | (self.writable as u32) << 1 288 | | | (self.readable as u32) << 2 289 | | | (self.contains_data as u32) << 3 290 | | | (self.contains_code as u32) << 4 291 | | | (self.deny_write as u32) << 5 292 | | | (self.deny_execute as u32) << 6 | |_____________________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence = note: `-D clippy::precedence` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::precedence)]` help: consider parenthesizing your expression | 286 ~ (self.executable as u32) 287 + | (self.writable as u32) << 1 288 + | (self.readable as u32) << 2 289 + | (self.contains_data as u32) << 3 290 + | (self.contains_code as u32) << 4 291 + | (self.deny_write as u32) << 5 | ((self.deny_execute as u32) << 6) |
operator precedence can trip the unwary: rust/rust/src/segment.rs#L286
error: operator precedence can trip the unwary --> ./rust/rust/src/segment.rs:286:9 | 286 | / (self.executable as u32) 287 | | | (self.writable as u32) << 1 288 | | | (self.readable as u32) << 2 289 | | | (self.contains_data as u32) << 3 290 | | | (self.contains_code as u32) << 4 291 | | | (self.deny_write as u32) << 5 | |___________________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence help: consider parenthesizing your expression | 286 ~ (self.executable as u32) 287 + | (self.writable as u32) << 1 288 + | (self.readable as u32) << 2 289 + | (self.contains_data as u32) << 3 290 + | (self.contains_code as u32) << 4 | ((self.deny_write as u32) << 5) |
operator precedence can trip the unwary: rust/rust/src/segment.rs#L286
error: operator precedence can trip the unwary --> ./rust/rust/src/segment.rs:286:9 | 286 | / (self.executable as u32) 287 | | | (self.writable as u32) << 1 288 | | | (self.readable as u32) << 2 289 | | | (self.contains_data as u32) << 3 290 | | | (self.contains_code as u32) << 4 | |______________________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence help: consider parenthesizing your expression | 286 ~ (self.executable as u32) 287 + | (self.writable as u32) << 1 288 + | (self.readable as u32) << 2 289 + | (self.contains_data as u32) << 3 | ((self.contains_code as u32) << 4) |
operator precedence can trip the unwary: rust/rust/src/segment.rs#L286
error: operator precedence can trip the unwary --> ./rust/rust/src/segment.rs:286:9 | 286 | / (self.executable as u32) 287 | | | (self.writable as u32) << 1 288 | | | (self.readable as u32) << 2 289 | | | (self.contains_data as u32) << 3 | |______________________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence help: consider parenthesizing your expression | 286 ~ (self.executable as u32) 287 + | (self.writable as u32) << 1 288 + | (self.readable as u32) << 2 | ((self.contains_data as u32) << 3) |
operator precedence can trip the unwary: rust/rust/src/segment.rs#L286
error: operator precedence can trip the unwary --> ./rust/rust/src/segment.rs:286:9 | 286 | / (self.executable as u32) 287 | | | (self.writable as u32) << 1 288 | | | (self.readable as u32) << 2 | |_________________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence help: consider parenthesizing your expression | 286 ~ (self.executable as u32) 287 + | (self.writable as u32) << 1 | ((self.readable as u32) << 2) |
operator precedence can trip the unwary: rust/rust/src/segment.rs#L286
error: operator precedence can trip the unwary --> ./rust/rust/src/segment.rs:286:9 | 286 | / (self.executable as u32) 287 | | | (self.writable as u32) << 1 | |_________________________________________^ help: consider parenthesizing your expression: `(self.executable as u32) | ((self.writable as u32) << 1)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence
cargo clippy
Error: Clippy has exited with exit code 101

Artifacts

Produced during runtime
Name Size Digest
license Expired
23 KB
sha256:96d409c8f547abc589d6e8ef49f429c309e8f160b55e8d05f14b5c7c84ab5ce1