Skip to content

relax sq.flags atomic read #18

relax sq.flags atomic read

relax sq.flags atomic read #18

GitHub Actions / clippy succeeded Apr 29, 2024 in 0s

clippy

3 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 3
Note 0
Help 0

Versions

  • rustc 1.80.0-nightly (1fffb2a35 2024-04-28)
  • cargo 1.80.0-nightly (b60a15551 2024-04-26)
  • clippy 0.1.79 (1fffb2a 2024-04-28)

Annotations

Check warning on line 398 in src/types.rs

See this annotation in the file changed.

@github-actions 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 545 in src/submit.rs

See this annotation in the file changed.

@github-actions 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:545:13
    |
545 |             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:544:13
    |
544 |             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

See this annotation in the file changed.

@github-actions 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