Skip to content

Commit

Permalink
update comment in code that is inaccurate
Browse files Browse the repository at this point in the history
  • Loading branch information
brewmaster012 committed Oct 2, 2024
1 parent acbd25c commit b0318bb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions programs/protocol-contracts-solana/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ pub mod gateway {
return Ok(());

Check warning on line 164 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#L164

warning: unneeded `return` statement --> programs/protocol-contracts-solana/src/lib.rs:164:9 | 164 | return Ok(()); | ^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return help: remove `return` | 164 - return Ok(()); 164 + Ok(()) |
Raw output
programs/protocol-contracts-solana/src/lib.rs:164:9:w:warning: unneeded `return` statement
   --> programs/protocol-contracts-solana/src/lib.rs:164:9
    |
164 |         return Ok(());
    |         ^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
    |
164 -         return Ok(());
164 +         Ok(())
    |


__END__
}

// only tss address stored in PDA can call this instruction
// require tss address signature on the internal message defined in the following
// concatenated_buffer vec.
pub fn withdraw(
ctx: Context<Withdraw>,
amount: u64,
Expand Down Expand Up @@ -206,7 +207,8 @@ pub mod gateway {
Ok(())
}

// only tss address stored in PDA can call this instruction
// require tss address signature on the internal message defined in the following
// concatenated_buffer vec.
pub fn withdraw_spl_token(
ctx: Context<WithdrawSPLToken>,
amount: u64,
Expand Down

0 comments on commit b0318bb

Please sign in to comment.