feat(queue): add new_boxed constructor and detach_unused method - #10
clippy
5 warnings
Details
Results
| Message level | Amount |
|---|---|
| Internal compiler error | 0 |
| Error | 0 |
| Warning | 5 |
| Note | 0 |
| Help | 0 |
Versions
- rustc 1.96.1 (31fca3adb 2026-06-26)
- cargo 1.96.1 (356927216 2026-06-26)
- clippy 0.1.96 (31fca3adb2 2026-06-26)
Annotations
Check warning on line 141 in src/lib.rs
github-actions / clippy
manually reimplementing `div_ceil`
warning: manually reimplementing `div_ceil`
--> src/lib.rs:141:5
|
141 | (size + PAGE_SIZE - 1) / PAGE_SIZE
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.div_ceil()`: `size.div_ceil(PAGE_SIZE)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#manual_div_ceil
= note: `#[warn(clippy::manual_div_ceil)]` on by default
Check warning on line 405 in src/transport/pci.rs
github-actions / clippy
manual implementation of `.is_multiple_of()`
warning: manual implementation of `.is_multiple_of()`
--> src/transport/pci.rs:405:8
|
405 | if vaddr.as_ptr() as usize % align_of::<T>() != 0 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `!(vaddr.as_ptr() as usize).is_multiple_of(align_of::<T>())`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#manual_is_multiple_of
= note: `#[warn(clippy::manual_is_multiple_of)]` on by default
Check warning on line 63 in src/device/socket/protocol.rs
github-actions / clippy
item uses `packed` representation without ABI-qualification
warning: item uses `packed` representation without ABI-qualification
--> src/device/socket/protocol.rs:50:1
|
48 | #[repr(packed)]
| ------ `packed` representation set here
49 | #[derive(AsBytes, Clone, Copy, Debug, Eq, FromBytes, FromZeroes, PartialEq)]
50 | / pub struct VirtioVsockHdr {
51 | | pub src_cid: U64<LittleEndian>,
52 | | pub dst_cid: U64<LittleEndian>,
53 | | pub src_port: U32<LittleEndian>,
... |
62 | | pub fwd_cnt: U32<LittleEndian>,
63 | | }
| |_^
|
= warning: unqualified `#[repr(packed)]` defaults to `#[repr(Rust, packed)]`, which has no stable ABI
= help: qualify the desired ABI explicitly via `#[repr(C, packed)]` or `#[repr(Rust, packed)]`
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#repr_packed_without_abi
= note: `#[warn(clippy::repr_packed_without_abi)]` on by default
Check warning on line 373 in src/device/socket/connectionmanager.rs
github-actions / clippy
manual saturating arithmetic
warning: manual saturating arithmetic
--> src/device/socket/connectionmanager.rs:371:37
|
371 | let read_after_wraparound = bytes_read
| _____________________________________^
372 | | .checked_sub(read_before_wraparound)
373 | | .unwrap_or_default();
| |________________________________^ help: consider using `saturating_sub`: `bytes_read.saturating_sub(read_before_wraparound)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#manual_saturating_arithmetic
= note: `#[warn(clippy::manual_saturating_arithmetic)]` on by default
Check warning on line 267 in src/device/gpu.rs
github-actions / clippy
this function has too many arguments (8/7)
warning: this function has too many arguments (8/7)
--> src/device/gpu.rs:258:5
|
258 | / fn update_cursor(
259 | | &mut self,
260 | | resource_id: u32,
261 | | scanout_id: u32,
... |
266 | | is_move: bool,
267 | | ) -> Result {
| |_______________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#too_many_arguments
= note: `#[warn(clippy::too_many_arguments)]` on by default