Skip to content

authenticated calls using arbitrary cpi [poc and draft] #79

authenticated calls using arbitrary cpi [poc and draft]

authenticated calls using arbitrary cpi [poc and draft] #79

GitHub Actions / clippy failed Oct 4, 2024 in 0s

reviewdog [clippy] report

reported by reviewdog 🐶

Findings (6)

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
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

Filtered Findings (0)

Annotations

Check warning on line 10 in programs/callable-test-2/src/lib.rs

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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__

Check warning on line 9 in programs/callable-test/src/lib.rs

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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__