Skip to content

Ignore clippy::out_of_bounds_indexing error #154

Ignore clippy::out_of_bounds_indexing error

Ignore clippy::out_of_bounds_indexing error #154

GitHub Actions / clippy succeeded Jan 7, 2024 in 0s

clippy

2 warnings

Details

Results

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

Versions

  • rustc 1.77.0-nightly (b6a8c762e 2024-01-06)
  • cargo 1.77.0-nightly (2ce45605d 2024-01-04)
  • clippy 0.1.77 (b6a8c76 2024-01-06)

Annotations

Check warning on line 88 in src/register.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

field `0` is never read

warning: field `0` is never read
  --> src/register.rs:88:24
   |
88 | pub struct Restriction(sys::io_uring_restriction);
   |            ----------- ^^^^^^^^^^^^^^^^^^^^^^^^^
   |            |
   |            field in this struct
   |
   = note: `#[warn(dead_code)]` on by default
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
   |
88 | pub struct Restriction(());
   |                        ~~

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