Skip to content

Transfer implementation #417

Transfer implementation

Transfer implementation #417

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / clippy failed Nov 21, 2023 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-nightly (3a85a5cfe 2023-11-20)
  • cargo 1.76.0-nightly (71cd3a926 2023-11-20)
  • clippy 0.1.76 (3a85a5c 2023-11-20)

Annotations

Check failure on line 221 in solana/solana-ibc/programs/solana-ibc/src/transfer/impls.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this call to `as_ref` does nothing

error: this call to `as_ref` does nothing
   --> solana/solana-ibc/programs/solana-ibc/src/transfer/impls.rs:221:43
    |
221 |             [port_id.as_bytes().as_ref(), channel_id.as_bytes().as_ref()];
    |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `channel_id.as_bytes()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_asref

Check failure on line 221 in solana/solana-ibc/programs/solana-ibc/src/transfer/impls.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this call to `as_ref` does nothing

error: this call to `as_ref` does nothing
   --> solana/solana-ibc/programs/solana-ibc/src/transfer/impls.rs:221:14
    |
221 |             [port_id.as_bytes().as_ref(), channel_id.as_bytes().as_ref()];
    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `port_id.as_bytes()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_asref
    = note: `-D clippy::useless-asref` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::useless_asref)]`