Skip to content

Release 5.0.1

Release 5.0.1 #2940

GitHub Actions / clippy failed Nov 28, 2024 in 1s

clippy

2 errors

Details

Results

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

Versions

  • rustc 1.82.0 (f6e511eec 2024-10-15)
  • cargo 1.82.0 (8f40fc59f 2024-08-21)
  • clippy 0.1.82 (f6e511e 2024-10-15)

Annotations

Check failure on line 172 in crates/cargo-contract/src/cmd/instantiate.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
   --> crates/cargo-contract/src/cmd/instantiate.rs:172:23
    |
172 |                 .salt(self.salt.clone())
    |                  ---- ^^^^^^^^^^^^^^^^^ expected `sp_core::Bytes`, found a different `sp_core::Bytes`
    |                  |
    |                  arguments to this method are incorrect
    |
    = note: `sp_core::Bytes` and `sp_core::Bytes` have similar names, but are actually distinct types
note: `sp_core::Bytes` is defined in crate `sp_core`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sp-core-32.0.0/src/lib.rs:112:1
    |
112 | pub struct Bytes(#[cfg_attr(feature = "serde", serde(with = "bytes"))] pub Vec<u8>);
    | ^^^^^^^^^^^^^^^^
note: `sp_core::Bytes` is defined in crate `sp_core`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sp-core-31.0.0/src/lib.rs:111:1
    |
111 | pub struct Bytes(#[cfg_attr(feature = "serde", serde(with = "bytes"))] pub Vec<u8>);
    | ^^^^^^^^^^^^^^^^
    = note: perhaps two different versions of crate `sp_core` are being used?
note: method defined here
   --> /home/runner/work/cargo-contract/cargo-contract/crates/extrinsics/src/instantiate.rs:142:12
    |
142 |     pub fn salt(self, salt: Option<Bytes>) -> Self {
    |            ^^^^

Check failure on line 172 in crates/cargo-contract/src/cmd/instantiate.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
   --> crates/cargo-contract/src/cmd/instantiate.rs:172:23
    |
172 |                 .salt(self.salt.clone())
    |                  ---- ^^^^^^^^^^^^^^^^^ expected `sp_core::Bytes`, found a different `sp_core::Bytes`
    |                  |
    |                  arguments to this method are incorrect
    |
    = note: `sp_core::Bytes` and `sp_core::Bytes` have similar names, but are actually distinct types
note: `sp_core::Bytes` is defined in crate `sp_core`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sp-core-32.0.0/src/lib.rs:112:1
    |
112 | pub struct Bytes(#[cfg_attr(feature = "serde", serde(with = "bytes"))] pub Vec<u8>);
    | ^^^^^^^^^^^^^^^^
note: `sp_core::Bytes` is defined in crate `sp_core`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sp-core-31.0.0/src/lib.rs:111:1
    |
111 | pub struct Bytes(#[cfg_attr(feature = "serde", serde(with = "bytes"))] pub Vec<u8>);
    | ^^^^^^^^^^^^^^^^
    = note: perhaps two different versions of crate `sp_core` are being used?
note: method defined here
   --> /home/runner/work/cargo-contract/cargo-contract/crates/extrinsics/src/instantiate.rs:142:12
    |
142 |     pub fn salt(self, salt: Option<Bytes>) -> Self {
    |            ^^^^