Skip to content

Fix Cargo.lock

Fix Cargo.lock #220

GitHub Actions / clippy succeeded Apr 19, 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.79.0-nightly (e3181b091 2024-04-18)
  • cargo 1.79.0-nightly (6f06fe908 2024-04-16)
  • clippy 0.1.79 (e3181b0 2024-04-18)

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 538 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: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

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