Skip to content

solana-ibc: encode client state using borsh #257

solana-ibc: encode client state using borsh

solana-ibc: encode client state using borsh #257

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / clippy failed Nov 1, 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.75.0-nightly (9d83ac217 2023-10-31)
  • cargo 1.75.0-nightly (b4d18d4bd 2023-10-31)
  • clippy 0.1.75 (9d83ac2 2023-10-31)

Annotations

Check failure on line 63 in solana/solana-ibc/programs/solana-ibc/src/client_state.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

`&` without an explicit lifetime name cannot be used here

error: `&` without an explicit lifetime name cannot be used here
  --> solana/solana-ibc/programs/solana-ibc/src/client_state.rs:63:28
   |
63 |     const TENDERMINT_TYPE: &str = ibc::clients::ics07_tendermint::client_state::TENDERMINT_CLIENT_STATE_TYPE_URL;
   |                            ^
   |
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #115010 <https://github.com/rust-lang/rust/issues/115010>
   = note: `-D elided-lifetimes-in-associated-constant` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(elided_lifetimes_in_associated_constant)]`
help: use the `'static` lifetime
   |
63 |     const TENDERMINT_TYPE: &'static str = ibc::clients::ics07_tendermint::client_state::TENDERMINT_CLIENT_STATE_TYPE_URL;
   |                             +++++++