refactor deposit_and_call
and deposit_spl_token_and_call
#58
Annotations
6 warnings
[clippy] programs/protocol-contracts-solana/src/lib.rs#L123:
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
|
[clippy] programs/protocol-contracts-solana/src/lib.rs#L117:
programs/protocol-contracts-solana/src/lib.rs#L117
warning: unneeded `return` statement
--> programs/protocol-contracts-solana/src/lib.rs:117:9
|
117 | return Ok(());
| ^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
= note: `#[warn(clippy::needless_return)]` on by default
help: remove `return`
|
117 - return Ok(());
117 + Ok(())
|
|
[clippy] programs/protocol-contracts-solana/src/lib.rs#L166:
programs/protocol-contracts-solana/src/lib.rs#L166
warning: unneeded `return` statement
--> programs/protocol-contracts-solana/src/lib.rs:166:9
|
166 | return Ok(());
| ^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
166 - return Ok(());
166 + Ok(())
|
|
[clippy] programs/protocol-contracts-solana/src/lib.rs#L123:
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
|
[clippy] programs/protocol-contracts-solana/src/lib.rs#L117:
programs/protocol-contracts-solana/src/lib.rs#L117
warning: unneeded `return` statement
--> programs/protocol-contracts-solana/src/lib.rs:117:9
|
117 | return Ok(());
| ^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
= note: `#[warn(clippy::needless_return)]` on by default
help: remove `return`
|
117 - return Ok(());
117 + Ok(())
|
|
[clippy] programs/protocol-contracts-solana/src/lib.rs#L166:
programs/protocol-contracts-solana/src/lib.rs#L166
warning: unneeded `return` statement
--> programs/protocol-contracts-solana/src/lib.rs:166:9
|
166 | return Ok(());
| ^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
help: remove `return`
|
166 - return Ok(());
166 + Ok(())
|
|