Skip to content

release 0.6.4 (#274) #218

release 0.6.4 (#274)

release 0.6.4 (#274) #218

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

clippy

5 warnings

Details

Results

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

Versions

  • rustc 1.48.0 (7eac88abb 2020-11-16)
  • cargo 1.48.0 (65cbdd2dc 2020-10-14)
  • clippy 0.0.212 (7eac88a 2020-11-16)

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();
    |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: `#[warn(clippy::useless_conversion)]` on by default
    = help: consider removing `usize::try_from()`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion

Check warning on line 395 in src/types.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unknown clippy lint: clippy::result_unit_err

warning: unknown clippy lint: clippy::result_unit_err
   --> src/types.rs:395:13
    |
395 |     #[allow(clippy::result_unit_err)]
    |             ^^^^^^^^^^^^^^^^^^^^^^^ help: did you mean: `clippy::result_map_unit_fn`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unknown_clippy_lints

Check warning on line 11 in src/sys/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unknown clippy lint: clippy::incorrect_clone_impl_on_copy_type

warning: unknown clippy lint: clippy::incorrect_clone_impl_on_copy_type
  --> src/sys/mod.rs:11:5
   |
11 |     clippy::incorrect_clone_impl_on_copy_type
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(clippy::unknown_clippy_lints)]` on by default
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unknown_clippy_lints

Check warning on line 46 in src/sys/sys.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

transmute from a reference to a reference

warning: transmute from a reference to a reference
  --> src/sys/sys.rs:46:9
   |
46 |         ::core::mem::transmute(self)
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&mut *(self as *mut sys::__BindgenUnionField<T> as *mut T)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#transmute_ptr_to_ptr

Check warning on line 42 in src/sys/sys.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

transmute from a reference to a reference

warning: transmute from a reference to a reference
  --> src/sys/sys.rs:42:9
   |
42 |         ::core::mem::transmute(self)
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&*(self as *const sys::__BindgenUnionField<T> as *const T)`
   |
   = note: `#[warn(clippy::transmute_ptr_to_ptr)]` on by default
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#transmute_ptr_to_ptr