Skip to content

solana-ibc: don’t enable std in ibc dependency #102

solana-ibc: don’t enable std in ibc dependency

solana-ibc: don’t enable std in ibc dependency #102

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / clippy failed Oct 11, 2023 in 0s

clippy

29 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 29
Warning 0
Note 0
Help 0

Versions

  • rustc 1.75.0-nightly (d627cf07c 2023-10-10)
  • cargo 1.75.0-nightly (794d0a825 2023-10-03)
  • clippy 0.1.75 (d627cf0 2023-10-10)

Annotations

Check failure on line 911 in /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/core/ics04_channel/events.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `alloc::vec::Vec<_>: core::convert::From<AcknowledgementAttribute>` is not satisfied

error[E0277]: the trait bound `alloc::vec::Vec<_>: core::convert::From<AcknowledgementAttribute>` is not satisfied
   --> /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/core/ics04_channel/events.rs:911:50
    |
911 |         attributes.append(&mut v.acknowledgement.try_into()?);
    |                                                  ^^^^^^^^ the trait `core::convert::From<AcknowledgementAttribute>` is not implemented for `alloc::vec::Vec<_>`
    |
    = help: the following other types implement trait `core::convert::From<T>`:
              <alloc::vec::Vec<u8> as core::convert::From<bytes::Bytes>>
              <alloc::vec::Vec<u8> as core::convert::From<BytesMut>>
              <alloc::vec::Vec<u8> as core::convert::From<ics04_channel::acknowledgement::Acknowledgement>>
              <alloc::vec::Vec<u8> as core::convert::From<AcknowledgementStatus>>
              <alloc::vec::Vec<u8> as core::convert::From<CommitmentProofBytes>>
              <alloc::vec::Vec<u8> as core::convert::From<CString>>
              <alloc::vec::Vec<u8> as core::convert::From<alloc::string::String>>
              <alloc::vec::Vec<u8> as core::convert::From<tendermint::account::Id>>
            and 14 others
    = note: required for `AcknowledgementAttribute` to implement `core::convert::Into<alloc::vec::Vec<_>>`
    = note: required for `alloc::vec::Vec<_>` to implement `TryFrom<AcknowledgementAttribute>`
    = note: required for `AcknowledgementAttribute` to implement `TryInto<alloc::vec::Vec<_>>`

Check failure on line 903 in /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/core/ics04_channel/events.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `alloc::vec::Vec<_>: core::convert::From<PacketDataAttribute>` is not satisfied

error[E0277]: the trait bound `alloc::vec::Vec<_>: core::convert::From<PacketDataAttribute>` is not satisfied
   --> /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/core/ics04_channel/events.rs:903:46
    |
903 |         attributes.append(&mut v.packet_data.try_into()?);
    |                                              ^^^^^^^^ the trait `core::convert::From<PacketDataAttribute>` is not implemented for `alloc::vec::Vec<_>`
    |
    = help: the following other types implement trait `core::convert::From<T>`:
              <alloc::vec::Vec<u8> as core::convert::From<bytes::Bytes>>
              <alloc::vec::Vec<u8> as core::convert::From<BytesMut>>
              <alloc::vec::Vec<u8> as core::convert::From<ics04_channel::acknowledgement::Acknowledgement>>
              <alloc::vec::Vec<u8> as core::convert::From<AcknowledgementStatus>>
              <alloc::vec::Vec<u8> as core::convert::From<CommitmentProofBytes>>
              <alloc::vec::Vec<u8> as core::convert::From<CString>>
              <alloc::vec::Vec<u8> as core::convert::From<alloc::string::String>>
              <alloc::vec::Vec<u8> as core::convert::From<tendermint::account::Id>>
            and 14 others
    = note: required for `PacketDataAttribute` to implement `core::convert::Into<alloc::vec::Vec<_>>`
    = note: required for `alloc::vec::Vec<_>` to implement `TryFrom<PacketDataAttribute>`
    = note: required for `PacketDataAttribute` to implement `TryInto<alloc::vec::Vec<_>>`

Check failure on line 788 in /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/core/ics04_channel/events.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `alloc::vec::Vec<_>: core::convert::From<PacketDataAttribute>` is not satisfied

error[E0277]: the trait bound `alloc::vec::Vec<_>: core::convert::From<PacketDataAttribute>` is not satisfied
   --> /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/core/ics04_channel/events.rs:788:51
    |
788 |         attributes.append(&mut v.packet_data_attr.try_into()?);
    |                                                   ^^^^^^^^ the trait `core::convert::From<PacketDataAttribute>` is not implemented for `alloc::vec::Vec<_>`
    |
    = help: the following other types implement trait `core::convert::From<T>`:
              <alloc::vec::Vec<u8> as core::convert::From<bytes::Bytes>>
              <alloc::vec::Vec<u8> as core::convert::From<BytesMut>>
              <alloc::vec::Vec<u8> as core::convert::From<ics04_channel::acknowledgement::Acknowledgement>>
              <alloc::vec::Vec<u8> as core::convert::From<AcknowledgementStatus>>
              <alloc::vec::Vec<u8> as core::convert::From<CommitmentProofBytes>>
              <alloc::vec::Vec<u8> as core::convert::From<CString>>
              <alloc::vec::Vec<u8> as core::convert::From<alloc::string::String>>
              <alloc::vec::Vec<u8> as core::convert::From<tendermint::account::Id>>
            and 14 others
    = note: required for `PacketDataAttribute` to implement `core::convert::Into<alloc::vec::Vec<_>>`
    = note: required for `alloc::vec::Vec<_>` to implement `TryFrom<PacketDataAttribute>`
    = note: required for `PacketDataAttribute` to implement `TryInto<alloc::vec::Vec<_>>`

Check failure on line 677 in /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/core/ics04_channel/events.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `alloc::vec::Vec<_>: core::convert::From<PacketDataAttribute>` is not satisfied

error[E0277]: the trait bound `alloc::vec::Vec<_>: core::convert::From<PacketDataAttribute>` is not satisfied
   --> /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/core/ics04_channel/events.rs:677:51
    |
677 |         attributes.append(&mut v.packet_data_attr.try_into()?);
    |                                                   ^^^^^^^^ the trait `core::convert::From<PacketDataAttribute>` is not implemented for `alloc::vec::Vec<_>`
    |
    = help: the following other types implement trait `core::convert::From<T>`:
              <alloc::vec::Vec<u8> as core::convert::From<bytes::Bytes>>
              <alloc::vec::Vec<u8> as core::convert::From<BytesMut>>
              <alloc::vec::Vec<u8> as core::convert::From<ics04_channel::acknowledgement::Acknowledgement>>
              <alloc::vec::Vec<u8> as core::convert::From<AcknowledgementStatus>>
              <alloc::vec::Vec<u8> as core::convert::From<CommitmentProofBytes>>
              <alloc::vec::Vec<u8> as core::convert::From<CString>>
              <alloc::vec::Vec<u8> as core::convert::From<alloc::string::String>>
              <alloc::vec::Vec<u8> as core::convert::From<tendermint::account::Id>>
            and 14 others
    = note: required for `PacketDataAttribute` to implement `core::convert::Into<alloc::vec::Vec<_>>`
    = note: required for `alloc::vec::Vec<_>` to implement `TryFrom<PacketDataAttribute>`
    = note: required for `PacketDataAttribute` to implement `TryInto<alloc::vec::Vec<_>>`

Check failure on line 235 in /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/clients/ics07_tendermint/client_state.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `tendermint::trust_threshold::TrustThresholdFraction: core::convert::From<TrustThreshold>` is not satisfied

error[E0277]: the trait bound `tendermint::trust_threshold::TrustThresholdFraction: core::convert::From<TrustThreshold>` is not satisfied
   --> /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/clients/ics07_tendermint/client_state.rs:235:47
    |
235 |             trust_threshold: self.trust_level.try_into().map_err(|e: ClientError| {
    |                                               ^^^^^^^^ the trait `core::convert::From<TrustThreshold>` is not implemented for `tendermint::trust_threshold::TrustThresholdFraction`
    |
    = note: required for `TrustThreshold` to implement `core::convert::Into<tendermint::trust_threshold::TrustThresholdFraction>`
    = note: required for `tendermint::trust_threshold::TrustThresholdFraction` to implement `TryFrom<TrustThreshold>`
    = note: required for `TrustThreshold` to implement `TryInto<tendermint::trust_threshold::TrustThresholdFraction>`

Check failure on line 235 in /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/clients/ics07_tendermint/client_state.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

type mismatch resolving `<TrustThresholdFraction as TryFrom<TrustThreshold>>::Error == ClientError`

error[E0271]: type mismatch resolving `<TrustThresholdFraction as TryFrom<TrustThreshold>>::Error == ClientError`
   --> /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/clients/ics07_tendermint/client_state.rs:235:47
    |
235 |             trust_threshold: self.trust_level.try_into().map_err(|e: ClientError| {
    |                                               ^^^^^^^^ expected `Infallible`, found `ClientError`

Check failure on line 133 in /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/core/timestamp.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

failed to resolve: use of undeclared crate or module `tendermint`

error[E0433]: failed to resolve: use of undeclared crate or module `tendermint`
   --> /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/core/timestamp.rs:133:30
    |
133 |                 .map_err(|e: tendermint::error::Error| {
    |                              ^^^^^^^^^^ use of undeclared crate or module `tendermint`
    |
help: consider importing one of these items
    |
3   + use core::error;
    |
3   + use crate::clients::ics07_tendermint::error;
    |
3   + use time::error;
    |
help: if you import `error`, refer to it directly
    |
133 -                 .map_err(|e: tendermint::error::Error| {
133 +                 .map_err(|e: error::Error| {
    |

Check failure on line 135 in /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/clients/ics07_tendermint/consensus_state.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

failed to resolve: use of undeclared crate or module `tendermint`

error[E0433]: failed to resolve: use of undeclared crate or module `tendermint`
   --> /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/clients/ics07_tendermint/consensus_state.rs:135:21
    |
135 |     fn from(header: tendermint::block::Header) -> Self {
    |                     ^^^^^^^^^^ use of undeclared crate or module `tendermint`

Check failure on line 134 in /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/clients/ics07_tendermint/consensus_state.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

failed to resolve: use of undeclared crate or module `tendermint`

error[E0433]: failed to resolve: use of undeclared crate or module `tendermint`
   --> /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/clients/ics07_tendermint/consensus_state.rs:134:11
    |
134 | impl From<tendermint::block::Header> for ConsensusState {
    |           ^^^^^^^^^^ use of undeclared crate or module `tendermint`

Check failure on line 8 in /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/hosts/tendermint/upgrade_proposal/events.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unresolved import `tendermint`

error[E0432]: unresolved import `tendermint`
 --> /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/hosts/tendermint/upgrade_proposal/events.rs:8:5
  |
8 | use tendermint::abci;
  |     ^^^^^^^^^^ use of undeclared crate or module `tendermint`

Check failure on line 11 in /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/core/timestamp.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unresolved import `tendermint`

error[E0432]: unresolved import `tendermint`
  --> /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/core/timestamp.rs:11:5
   |
11 | use tendermint::Time;
   |     ^^^^^^^^^^ use of undeclared crate or module `tendermint`

Check failure on line 6 in /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/core/events.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unresolved import `tendermint`

error[E0432]: unresolved import `tendermint`
 --> /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/core/events.rs:6:5
  |
6 | use tendermint::abci;
  |     ^^^^^^^^^^ use of undeclared crate or module `tendermint`

Check failure on line 6 in /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/core/ics04_channel/events.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unresolved import `tendermint`

error[E0432]: unresolved import `tendermint`
 --> /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/core/ics04_channel/events.rs:6:5
  |
6 | use tendermint::abci;
  |     ^^^^^^^^^^ use of undeclared crate or module `tendermint`

Check failure on line 8 in /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/core/ics04_channel/events/packet_attributes.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unresolved import `tendermint`

error[E0432]: unresolved import `tendermint`
 --> /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/core/ics04_channel/events/packet_attributes.rs:8:5
  |
8 | use tendermint::abci;
  |     ^^^^^^^^^^ use of undeclared crate or module `tendermint`

Check failure on line 4 in /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/core/ics04_channel/events/channel_attributes.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unresolved import `tendermint`

error[E0432]: unresolved import `tendermint`
 --> /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/core/ics04_channel/events/channel_attributes.rs:4:5
  |
4 | use tendermint::abci;
  |     ^^^^^^^^^^ use of undeclared crate or module `tendermint`

Check failure on line 3 in /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/core/ics03_connection/events.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unresolved import `tendermint`

error[E0432]: unresolved import `tendermint`
 --> /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/core/ics03_connection/events.rs:3:5
  |
3 | use tendermint::abci;
  |     ^^^^^^^^^^ use of undeclared crate or module `tendermint`

Check failure on line 4 in /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/core/ics02_client/events.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unresolved import `tendermint`

error[E0432]: unresolved import `tendermint`
 --> /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/core/ics02_client/events.rs:4:5
  |
4 | use tendermint::abci;
  |     ^^^^^^^^^^ use of undeclared crate or module `tendermint`

Check failure on line 6 in /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/clients/ics07_tendermint/error.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unresolved import `tendermint`

error[E0432]: unresolved import `tendermint`
 --> /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/clients/ics07_tendermint/error.rs:6:5
  |
6 | use tendermint::{Error as TendermintError, Hash};
  |     ^^^^^^^^^^ use of undeclared crate or module `tendermint`

Check failure on line 10 in /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/clients/ics07_tendermint/trust_threshold.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

failed to resolve: use of undeclared crate or module `tendermint`

error[E0433]: failed to resolve: use of undeclared crate or module `tendermint`
  --> /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/clients/ics07_tendermint/trust_threshold.rs:10:5
   |
10 | use tendermint::trust_threshold::TrustThresholdFraction;
   |     ^^^^^^^^^^ use of undeclared crate or module `tendermint`

Check failure on line 15 in /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/clients/ics07_tendermint/header.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

failed to resolve: use of undeclared crate or module `tendermint`

error[E0433]: failed to resolve: use of undeclared crate or module `tendermint`
  --> /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/clients/ics07_tendermint/header.rs:15:5
   |
15 | use tendermint::validator::Set as ValidatorSet;
   |     ^^^^^^^^^^ use of undeclared crate or module `tendermint`

Check failure on line 14 in /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/clients/ics07_tendermint/header.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

failed to resolve: use of undeclared crate or module `tendermint`

error[E0433]: failed to resolve: use of undeclared crate or module `tendermint`
  --> /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/clients/ics07_tendermint/header.rs:14:5
   |
14 | use tendermint::chain::Id as TmChainId;
   |     ^^^^^^^^^^ use of undeclared crate or module `tendermint`

Check failure on line 13 in /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/clients/ics07_tendermint/header.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

failed to resolve: use of undeclared crate or module `tendermint`

error[E0433]: failed to resolve: use of undeclared crate or module `tendermint`
  --> /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/clients/ics07_tendermint/header.rs:13:5
   |
13 | use tendermint::block::signed_header::SignedHeader;
   |     ^^^^^^^^^^ use of undeclared crate or module `tendermint`

Check failure on line 8 in /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/clients/ics07_tendermint/consensus_state.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unresolved import `tendermint`

error[E0432]: unresolved import `tendermint`
 --> /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/clients/ics07_tendermint/consensus_state.rs:8:5
  |
8 | use tendermint::Hash;
  |     ^^^^^^^^^^ use of undeclared crate or module `tendermint`

Check failure on line 7 in /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/clients/ics07_tendermint/consensus_state.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

failed to resolve: use of undeclared crate or module `tendermint`

error[E0433]: failed to resolve: use of undeclared crate or module `tendermint`
 --> /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/clients/ics07_tendermint/consensus_state.rs:7:5
  |
7 | use tendermint::time::Time;
  |     ^^^^^^^^^^ use of undeclared crate or module `tendermint`

Check failure on line 6 in /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/clients/ics07_tendermint/consensus_state.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

failed to resolve: use of undeclared crate or module `tendermint`

error[E0433]: failed to resolve: use of undeclared crate or module `tendermint`
 --> /home/runner/.cargo/git/checkouts/ibc-rs-1bf3dffbb9af5374/d1ac9ad/crates/ibc/src/clients/ics07_tendermint/consensus_state.rs:6:5
  |
6 | use tendermint::hash::Algorithm;
  |     ^^^^^^^^^^ use of undeclared crate or module `tendermint`