Skip to content
GitHub Actions / clippy succeeded Oct 11, 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.81.0 (eeb90cda1 2024-09-04)
  • cargo 1.81.0 (2dbb1af80 2024-08-20)
  • clippy 0.1.81 (eeb90cd 2024-09-04)

Annotations

Check warning on line 75 in pass-webauthn/src/impls.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using `clone` on type `[u8; 32]` which implements the `Copy` trait

warning: using `clone` on type `[u8; 32]` which implements the `Copy` trait
  --> pass-webauthn/src/impls.rs:75:32
   |
75 |         Device::new(DeviceInfo(value.device_id().clone()))
   |                                ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*value.device_id()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
   = note: `#[warn(clippy::clone_on_copy)]` on by default

Check warning on line 76 in verifier/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

useless use of `vec!`

warning: useless use of `vec!`
  --> verifier/src/lib.rs:76:19
   |
76 |     let message = vec![authenticator_data, &client_data_hash].concat();
   |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use an array directly: `[authenticator_data, &client_data_hash]`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec
   = note: `#[warn(clippy::useless_vec)]` on by default