Use &raw rather than addr_of macros #655
Annotations
15 warnings
manually reimplementing `div_ceil`:
src/lib.rs#L125
warning: manually reimplementing `div_ceil`
--> src/lib.rs:125:5
|
125 | (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/master/index.html#manual_div_ceil
= note: `#[warn(clippy::manual_div_ceil)]` on by default
|
the following explicit lifetimes could be elided: 'a:
src/transport/pci/bus.rs#L489
warning: the following explicit lifetimes could be elided: 'a
--> src/transport/pci/bus.rs:489:6
|
489 | impl<'a, C: ConfigurationAccess> Iterator for CapabilityIterator<'a, C> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
489 - impl<'a, C: ConfigurationAccess> Iterator for CapabilityIterator<'a, C> {
489 + impl<C: ConfigurationAccess> Iterator for CapabilityIterator<'_, C> {
|
|
the following explicit lifetimes could be elided: 'a, 'b:
src/queue.rs#L814
warning: the following explicit lifetimes could be elided: 'a, 'b
--> src/queue.rs:814:6
|
814 | impl<'a, 'b> Iterator for InputOutputIter<'a, 'b> {
| ^^ ^^ ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
|
814 - impl<'a, 'b> Iterator for InputOutputIter<'a, 'b> {
814 + impl Iterator for InputOutputIter<'_, '_> {
|
|
this function has too many arguments (8/7):
src/device/sound.rs#L365
warning: this function has too many arguments (8/7)
--> src/device/sound.rs:365:5
|
365 | / pub fn pcm_set_params(
366 | | &mut self,
367 | | stream_id: u32,
368 | | buffer_bytes: u32,
... |
373 | | rate: PcmRate,
374 | | ) -> Result {
| |_______________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
|
this function has too many arguments (8/7):
src/device/gpu.rs#L255
warning: this function has too many arguments (8/7)
--> src/device/gpu.rs:255:5
|
255 | / fn update_cursor(
256 | | &mut self,
257 | | resource_id: u32,
258 | | scanout_id: u32,
... |
263 | | is_move: bool,
264 | | ) -> Result {
| |_______________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
= note: `#[warn(clippy::too_many_arguments)]` on by default
|
check
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
build:
src/config.rs#L100
unused macro definition: `write_config`
|
build:
src/config.rs#L114
unused import: `write_config`
|
build:
src/queue.rs#L80
unused variable: `indirect`
|
build
`virtio-drivers` (lib) generated 3 warnings (run `cargo fix --lib -p virtio-drivers` to apply 1 suggestion)
|
build:
src/config.rs#L100
unused macro definition: `write_config`
|
build:
src/config.rs#L114
unused import: `write_config`
|
build:
src/queue.rs#L80
unused variable: `indirect`
|
build
`virtio-drivers` (lib) generated 3 warnings (run `cargo fix --lib -p virtio-drivers` to apply 1 suggestion)
|