Skip to content

Make license metadata SPDX compliant (#270) #202

Make license metadata SPDX compliant (#270)

Make license metadata SPDX compliant (#270) #202

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

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 (aa067fb98 2024-04-10)
  • cargo 1.79.0-nightly (74fd5bc73 2024-04-10)
  • clippy 0.1.79 (aa067fb 2024-04-10)

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 514 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:514:13
    |
514 |             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:513:13
    |
513 |             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

Check warning on line 100 in src/opcode.rs

See this annotation in the file changed.

@github-actions 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() }
    |