authenticated calls using arbitrary cpi [poc and draft] #38
reviewdog [clippy] report
reported by reviewdog 🐶
Findings (6)
programs/callable-test/src/lib.rs|9 col 20| warning: unused variable: ctx
--> programs/callable-test/src/lib.rs:9:20
|
9 | pub fn on_call(ctx: Context, sender: Pubkey, data: Vec) -> Result<()> {
| ^^^ help: if this is intentional, prefix it with an underscore: _ctx
|
= note: #[warn(unused_variables)]
on by default
programs/callable-test/src/lib.rs|9 col 42| warning: unused variable: sender
--> programs/callable-test/src/lib.rs:9:42
|
9 | pub fn on_call(ctx: Context, sender: Pubkey, data: Vec) -> Result<()> {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: _sender
programs/callable-test/src/lib.rs|9 col 58| warning: unused variable: data
--> programs/callable-test/src/lib.rs:9:58
|
9 | pub fn on_call(ctx: Context, sender: Pubkey, data: Vec) -> Result<()> {
| ^^^^ help: if this is intentional, prefix it with an underscore: _data
programs/callable-test-2/src/lib.rs|10 col 20| warning: unused variable: ctx
--> programs/callable-test-2/src/lib.rs:10:20
|
10 | pub fn on_call(ctx: Context, sender: Pubkey, data: Vec) -> Result<()> {
| ^^^ help: if this is intentional, prefix it with an underscore: _ctx
|
= note: #[warn(unused_variables)]
on by default
programs/callable-test-2/src/lib.rs|10 col 42| warning: unused variable: sender
--> programs/callable-test-2/src/lib.rs:10:42
|
10 | pub fn on_call(ctx: Context, sender: Pubkey, data: Vec) -> Result<()> {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: _sender
programs/callable-test-2/src/lib.rs|10 col 58| warning: unused variable: data
--> programs/callable-test-2/src/lib.rs:10:58
|
10 | pub fn on_call(ctx: Context, sender: Pubkey, data: Vec) -> Result<()> {
| ^^^^ help: if this is intentional, prefix it with an underscore: _data
Filtered Findings (0)
Annotations
Check warning on line 9 in programs/callable-test/src/lib.rs
github-actions / clippy
[clippy] programs/callable-test/src/lib.rs#L9
warning: unused variable: `ctx`
--> programs/callable-test/src/lib.rs:9:20
|
9 | pub fn on_call(ctx: Context<OnCall>, sender: Pubkey, data: Vec<u8>) -> Result<()> {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
|
= note: `#[warn(unused_variables)]` on by default
Raw output
programs/callable-test/src/lib.rs:9:20:w:warning: unused variable: `ctx`
--> programs/callable-test/src/lib.rs:9:20
|
9 | pub fn on_call(ctx: Context<OnCall>, sender: Pubkey, data: Vec<u8>) -> Result<()> {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
|
= note: `#[warn(unused_variables)]` on by default
__END__
Check warning on line 9 in programs/callable-test/src/lib.rs
github-actions / clippy
[clippy] programs/callable-test/src/lib.rs#L9
warning: unused variable: `sender`
--> programs/callable-test/src/lib.rs:9:42
|
9 | pub fn on_call(ctx: Context<OnCall>, sender: Pubkey, data: Vec<u8>) -> Result<()> {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sender`
Raw output
programs/callable-test/src/lib.rs:9:42:w:warning: unused variable: `sender`
--> programs/callable-test/src/lib.rs:9:42
|
9 | pub fn on_call(ctx: Context<OnCall>, sender: Pubkey, data: Vec<u8>) -> Result<()> {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sender`
__END__
Check warning on line 9 in programs/callable-test/src/lib.rs
github-actions / clippy
[clippy] programs/callable-test/src/lib.rs#L9
warning: unused variable: `data`
--> programs/callable-test/src/lib.rs:9:58
|
9 | pub fn on_call(ctx: Context<OnCall>, sender: Pubkey, data: Vec<u8>) -> Result<()> {
| ^^^^ help: if this is intentional, prefix it with an underscore: `_data`
Raw output
programs/callable-test/src/lib.rs:9:58:w:warning: unused variable: `data`
--> programs/callable-test/src/lib.rs:9:58
|
9 | pub fn on_call(ctx: Context<OnCall>, sender: Pubkey, data: Vec<u8>) -> Result<()> {
| ^^^^ help: if this is intentional, prefix it with an underscore: `_data`
__END__
Check warning on line 10 in programs/callable-test-2/src/lib.rs
github-actions / clippy
[clippy] programs/callable-test-2/src/lib.rs#L10
warning: unused variable: `ctx`
--> programs/callable-test-2/src/lib.rs:10:20
|
10 | pub fn on_call(ctx: Context<OnCall>, sender: Pubkey, data: Vec<u8>) -> Result<()> {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
|
= note: `#[warn(unused_variables)]` on by default
Raw output
programs/callable-test-2/src/lib.rs:10:20:w:warning: unused variable: `ctx`
--> programs/callable-test-2/src/lib.rs:10:20
|
10 | pub fn on_call(ctx: Context<OnCall>, sender: Pubkey, data: Vec<u8>) -> Result<()> {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
|
= note: `#[warn(unused_variables)]` on by default
__END__
Check warning on line 10 in programs/callable-test-2/src/lib.rs
github-actions / clippy
[clippy] programs/callable-test-2/src/lib.rs#L10
warning: unused variable: `sender`
--> programs/callable-test-2/src/lib.rs:10:42
|
10 | pub fn on_call(ctx: Context<OnCall>, sender: Pubkey, data: Vec<u8>) -> Result<()> {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sender`
Raw output
programs/callable-test-2/src/lib.rs:10:42:w:warning: unused variable: `sender`
--> programs/callable-test-2/src/lib.rs:10:42
|
10 | pub fn on_call(ctx: Context<OnCall>, sender: Pubkey, data: Vec<u8>) -> Result<()> {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sender`
__END__
Check warning on line 10 in programs/callable-test-2/src/lib.rs
github-actions / clippy
[clippy] programs/callable-test-2/src/lib.rs#L10
warning: unused variable: `data`
--> programs/callable-test-2/src/lib.rs:10:58
|
10 | pub fn on_call(ctx: Context<OnCall>, sender: Pubkey, data: Vec<u8>) -> Result<()> {
| ^^^^ help: if this is intentional, prefix it with an underscore: `_data`
Raw output
programs/callable-test-2/src/lib.rs:10:58:w:warning: unused variable: `data`
--> programs/callable-test-2/src/lib.rs:10:58
|
10 | pub fn on_call(ctx: Context<OnCall>, sender: Pubkey, data: Vec<u8>) -> Result<()> {
| ^^^^ help: if this is intentional, prefix it with an underscore: `_data`
__END__