solana-ibc: use Borsh for consensus state serialisation #340
GitHub Actions / clippy
failed
Nov 16, 2023 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.76.0-nightly (6b771f6b5 2023-11-15)
- cargo 1.76.0-nightly (6790a5127 2023-11-10)
- clippy 0.1.75 (6b771f6 2023-11-15)
Annotations
Check failure on line 545 in solana/solana-ibc/programs/solana-ibc/src/client_state.rs
github-actions / clippy
this expression creates a reference which is immediately dereferenced by the compiler
error: this expression creates a reference which is immediately dereferenced by the compiler
--> solana/solana-ibc/programs/solana-ibc/src/client_state.rs:545:70
|
545 | .map(|(_, data)| borsh::BorshDeserialize::try_from_slice(&data))
| ^^^^^ help: change this to: `data`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `-D clippy::needless-borrow` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_borrow)]`
Loading