solana-ibc: write local consensus state when witness feature is enabled #1770
GitHub Actions / clippy
failed
Oct 15, 2024 in 0s
clippy
1 error
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 1 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.78.0-nightly (268dbbbc4 2024-02-04)
- cargo 1.78.0-nightly (7bb7b5395 2024-01-20)
- clippy 0.1.77 (268dbbb 2024-02-04)
Annotations
Check failure on line 405 in solana/solana-ibc/programs/solana-ibc/src/lib.rs
github-actions / clippy
using `clone` on type `CryptoHash` which implements the `Copy` trait
error: using `clone` on type `CryptoHash` which implements the `Copy` trait
--> solana/solana-ibc/programs/solana-ibc/src/lib.rs:405:29
|
405 | let previous_root = store.borrow().provable.hash().clone();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*store.borrow().provable.hash()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
= note: `-D clippy::clone-on-copy` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::clone_on_copy)]`
Loading