fix CI fails #48
GitHub Actions / clippy
failed
Feb 18, 2025 in 0s
clippy
2 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 2 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.70.0 (90c541806 2023-05-31)
- cargo 1.70.0 (ec8a8a0ca 2023-04-25)
- clippy 0.1.70 (90c5418 2023-05-31)
Annotations
Check failure on line 43 in tests/test_approximate.rs
github-actions / clippy
using `clone` on a double-reference; this will copy the reference of type `&[u8]` instead of cloning the inner type
error: using `clone` on a double-reference; this will copy the reference of type `&[u8]` instead of cloning the inner type
--> tests/test_approximate.rs:43:9
|
43 | end_key.clone()
| ^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_double_ref
help: try dereferencing it
|
43 | &(*end_key).clone()
|
help: or try being explicit if you are sure, that you want to clone a reference
|
43 | <&[u8]>::clone(end_key)
|
Check failure on line 42 in tests/test_approximate.rs
github-actions / clippy
using `clone` on a double-reference; this will copy the reference of type `&[u8]` instead of cloning the inner type
error: using `clone` on a double-reference; this will copy the reference of type `&[u8]` instead of cloning the inner type
--> tests/test_approximate.rs:42:9
|
42 | start_key.clone(),
| ^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_double_ref
= note: `#[deny(clippy::clone_double_ref)]` on by default
help: try dereferencing it
|
42 | &(*start_key).clone(),
| ~~~~~~~~~~~~~~~~~~~~~
help: or try being explicit if you are sure, that you want to clone a reference
|
42 | <&[u8]>::clone(start_key),
| ~~~~~~~~~~~~~~~~~~~~~~~~~
Loading