Add support for IORING_REGISTER_IOWQ_AFF (#246) #209
clippy
4 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 4 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.79.0-nightly (79424056b 2024-04-12)
- cargo 1.79.0-nightly (74fd5bc73 2024-04-10)
- clippy 0.1.79 (7942405 2024-04-12)
Annotations
Check warning on line 398 in src/types.rs
github-actions / clippy
useless conversion to the same type: `usize`
warning: useless conversion to the same type: `usize`
--> src/types.rs:398:34
|
398 | let msghdr_control_len = usize::try_from(msghdr.msg_controllen).unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider removing `usize::try_from()`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `#[warn(clippy::useless_conversion)]` on by default
Check warning on line 538 in src/submit.rs
github-actions / clippy
field assignment outside of initializer for an instance created with Default::default()
warning: field assignment outside of initializer for an instance created with Default::default()
--> src/submit.rs:538:13
|
538 | arg.addr = user_data;
| ^^^^^^^^^^^^^^^^^^^^^
|
note: consider initializing the variable with `sys::io_uring_sync_cancel_reg { addr: user_data, fd: fd, flags: flags, timeout: timespec, ..Default::default() }` and removing relevant reassignments
--> src/submit.rs:537:13
|
537 | let mut arg = sys::io_uring_sync_cancel_reg::default();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
= note: `#[warn(clippy::field_reassign_with_default)]` on by default
Check warning on line 11 in src/sys/mod.rs
github-actions / clippy
lint `clippy::incorrect_clone_impl_on_copy_type` has been renamed to `clippy::non_canonical_clone_impl`
warning: lint `clippy::incorrect_clone_impl_on_copy_type` has been renamed to `clippy::non_canonical_clone_impl`
--> src/sys/mod.rs:11:5
|
11 | clippy::incorrect_clone_impl_on_copy_type
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::non_canonical_clone_impl`
|
= note: `#[warn(renamed_and_removed_lints)]` on by default
Check warning on line 100 in src/opcode.rs
github-actions / clippy
unnecessary qualification
warning: unnecessary qualification
--> src/opcode.rs:100:14
|
100 | unsafe { std::mem::zeroed() }
| ^^^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> src/lib.rs:5:27
|
5 | #![warn(rust_2018_idioms, unused_qualifications)]
| ^^^^^^^^^^^^^^^^^^^^^
help: remove the unnecessary path segments
|
100 - unsafe { std::mem::zeroed() }
100 + unsafe { mem::zeroed() }
|