Skip to content

IBC Hooks: add hooks to call bridge escrow program #1813

IBC Hooks: add hooks to call bridge escrow program

IBC Hooks: add hooks to call bridge escrow program #1813

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

clippy

3 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 3
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 246 in solana/solana-ibc/programs/solana-ibc/src/transfer/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

cannot assign to `ack` because it is borrowed

error[E0506]: cannot assign to `ack` because it is borrowed
   --> solana/solana-ibc/programs/solana-ibc/src/transfer/mod.rs:246:17
    |
152 |         let ack_status = str::from_utf8(ack.as_bytes())
    |                                         --- `ack` is borrowed here
...
246 |                 ack = status.into();
    |                 ^^^ `ack` is assigned to here but it was already borrowed
...
249 |         msg!("ibc::Packet acknowledgement: {}", ack_status);
    |                                                 ---------- borrow later used here

Check failure on line 160 in solana/solana-ibc/programs/solana-ibc/src/transfer/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

cannot assign to `ack` because it is borrowed

error[E0506]: cannot assign to `ack` because it is borrowed
   --> solana/solana-ibc/programs/solana-ibc/src/transfer/mod.rs:160:13
    |
152 |         let ack_status = str::from_utf8(ack.as_bytes())
    |                                         --- `ack` is borrowed here
...
160 |             ack = ibc::AcknowledgementStatus::error(
    |             ^^^ `ack` is assigned to here but it was already borrowed
...
249 |         msg!("ibc::Packet acknowledgement: {}", ack_status);
    |                                                 ---------- borrow later used here

Check failure on line 147 in solana/solana-ibc/programs/solana-ibc/src/transfer/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

variable does not need to be mutable

error: variable does not need to be mutable
   --> solana/solana-ibc/programs/solana-ibc/src/transfer/mod.rs:147:22
    |
147 |         let (extras, mut ack) =
    |                      ----^^^
    |                      |
    |                      help: remove this `mut`
    |
    = note: `-D unused-mut` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(unused_mut)]`