Skip to content

Merge pull request #604 from alsuren/dependabot/cargo/tokio-1.44.0 #1470

Merge pull request #604 from alsuren/dependabot/cargo/tokio-1.44.0

Merge pull request #604 from alsuren/dependabot/cargo/tokio-1.44.0 #1470

Triggered via push March 10, 2025 01:45
Status Success
Total duration 13s
Artifacts

lint.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

7 warnings
accessing first element with `nodes.get(0)`: applehat/src/ui.rs#L76
warning: accessing first element with `nodes.get(0)` --> applehat/src/ui.rs:76:52 | 76 | if let Some((device_id, node_id, _)) = nodes.get(0) { | ^^^^^^^^^^^^ help: try: `nodes.first()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first = note: `#[warn(clippy::get_first)]` on by default
operator precedence can trip the unwary: btsensor/src/bthome/v2.rs#L306
warning: operator precedence can trip the unwary --> btsensor/src/bthome/v2.rs:306:13 | 306 | Ok((u32::from(a) | u32::from(b) << 8 | u32::from(c) << 16, 3)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `u32::from(a) | (u32::from(b) << 8)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence
operator precedence can trip the unwary: btsensor/src/bthome/v2.rs#L306
warning: operator precedence can trip the unwary --> btsensor/src/bthome/v2.rs:306:13 | 306 | Ok((u32::from(a) | u32::from(b) << 8 | u32::from(c) << 16, 3)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `u32::from(a) | u32::from(b) << 8 | (u32::from(c) << 16)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence
operator precedence can trip the unwary: btsensor/src/bthome/v1.rs#L200
warning: operator precedence can trip the unwary --> btsensor/src/bthome/v1.rs:200:17 | 200 | bytes[0] as i32 | (bytes[1] as i32) << 8 | (bytes[2] as i32) << 16, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `bytes[0] as i32 | ((bytes[1] as i32) << 8)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence
operator precedence can trip the unwary: btsensor/src/bthome/v1.rs#L200
warning: operator precedence can trip the unwary --> btsensor/src/bthome/v1.rs:200:17 | 200 | bytes[0] as i32 | (bytes[1] as i32) << 8 | (bytes[2] as i32) << 16, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `bytes[0] as i32 | (bytes[1] as i32) << 8 | ((bytes[2] as i32) << 16)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence
operator precedence can trip the unwary: btsensor/src/bthome/v1.rs#L190
warning: operator precedence can trip the unwary --> btsensor/src/bthome/v1.rs:190:17 | 190 | bytes[0] as u32 | (bytes[1] as u32) << 8 | (bytes[2] as u32) << 16, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `bytes[0] as u32 | ((bytes[1] as u32) << 8)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence
operator precedence can trip the unwary: btsensor/src/bthome/v1.rs#L190
warning: operator precedence can trip the unwary --> btsensor/src/bthome/v1.rs:190:17 | 190 | bytes[0] as u32 | (bytes[1] as u32) << 8 | (bytes[2] as u32) << 16, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `bytes[0] as u32 | (bytes[1] as u32) << 8 | ((bytes[2] as u32) << 16)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence = note: `#[warn(clippy::precedence)]` on by default