Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
brewmaster012 committed Oct 2, 2024
1 parent 6f4eccd commit acbd25c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions programs/protocol-contracts-solana/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ pub mod gateway {
amount: u64,
receiver: [u8; 20],

Check warning on line 123 in programs/protocol-contracts-solana/src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy

[clippy] programs/protocol-contracts-solana/src/lib.rs#L123

warning: unused variable: `receiver` --> programs/protocol-contracts-solana/src/lib.rs:123:9 | 123 | receiver: [u8; 20], | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_receiver` | = note: `#[warn(unused_variables)]` on by default
Raw output
programs/protocol-contracts-solana/src/lib.rs:123:9:w:warning: unused variable: `receiver`
   --> programs/protocol-contracts-solana/src/lib.rs:123:9
    |
123 |         receiver: [u8; 20],
    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_receiver`
    |
    = note: `#[warn(unused_variables)]` on by default


__END__
) -> Result<()> {

let token = &ctx.accounts.token_program;
let from = &ctx.accounts.from;

Expand Down Expand Up @@ -154,7 +153,6 @@ pub mod gateway {
Ok(())
}


pub fn deposit_spl_token_and_call(
ctx: Context<DepositSplToken>,
amount: u64,
Expand Down

0 comments on commit acbd25c

Please sign in to comment.