Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

one more comment

9781206
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Open

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

one more comment
9781206
Select commit
Loading
Failed to load commit list.
GitHub Actions / clippy failed Oct 4, 2024 in 1s

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

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__

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__