Skip to content

imp(ibc-testkit): revamp mock testing framework #101

imp(ibc-testkit): revamp mock testing framework

imp(ibc-testkit): revamp mock testing framework #101

GitHub Actions / clippy failed Feb 29, 2024 in 0s

clippy

2 errors

Details

Results

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

Versions

  • rustc 1.76.0 (07dca489a 2024-02-04)
  • cargo 1.76.0 (c84b36747 2024-01-18)
  • clippy 0.1.76 (07dca48 2024-02-04)

Annotations

Check failure on line 511 in ibc-testkit/src/testapp/ibc/core/types.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
   --> ibc-testkit/src/testapp/ibc/core/types.rs:511:54
    |
511 |         let client_state_path = ClientStatePath::new(client_id);
    |                                 -------------------- ^^^^^^^^^ expected `ClientId`, found `&ClientId`
    |                                 |
    |                                 arguments to this function are incorrect
    |
note: associated function defined here
   --> /home/runner/work/ibc-rs/ibc-rs/ibc-core/ics24-host/types/src/path.rs:137:12
    |
137 |     pub fn new(client_id: ClientId) -> ClientStatePath {
    |            ^^^
help: consider using clone here
    |
511 |         let client_state_path = ClientStatePath::new(client_id.clone());
    |                                                               ++++++++

Check failure on line 444 in ibc-testkit/src/testapp/ibc/core/core_ctx.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
   --> ibc-testkit/src/testapp/ibc/core/core_ctx.rs:444:64
    |
444 |         let client_connection_path = ClientConnectionPath::new(client_id);
    |                                      ------------------------- ^^^^^^^^^ expected `ClientId`, found `&ClientId`
    |                                      |
    |                                      arguments to this function are incorrect
    |
note: associated function defined here
   --> /home/runner/work/ibc-rs/ibc-rs/ibc-core/ics24-host/types/src/path.rs:352:12
    |
352 |     pub fn new(client_id: ClientId) -> ClientConnectionPath {
    |            ^^^
help: consider using clone here
    |
444 |         let client_connection_path = ClientConnectionPath::new(client_id.clone());
    |                                                                         ++++++++