Skip to content

solana-ibc: get host consensus state based on feature #1801

solana-ibc: get host consensus state based on feature

solana-ibc: get host consensus state based on feature #1801

GitHub Actions / clippy failed Oct 18, 2024 in 1s

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 119 in solana/solana-ibc/programs/solana-ibc/src/validation_context.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
   --> solana/solana-ibc/programs/solana-ibc/src/validation_context.rs:116:9
    |
82  |       ) -> Result<Self::AnyConsensusState> {
    |            ------------------------------- expected `std::result::Result<consensus_state::AnyConsensusState, ibc::core::handler::types::error::ContextError>` because of return type
...
116 | /         state.ok_or(
117 | |             ibc::ClientError::MissingLocalConsensusState { height: *height }
118 | |                 .into(),
119 | |         )
    | |_________^ expected `Result<AnyConsensusState, ...>`, found `Result<Option<...>, ...>`
    |
    = note: expected enum `std::result::Result<consensus_state::AnyConsensusState, ibc::core::handler::types::error::ContextError>`
               found enum `std::result::Result<std::option::Option<consensus_state::AnyConsensusState>, _>`