Skip to content
GitHub Actions / clippy failed Oct 2, 2024 in 0s

reviewdog [clippy] report

reported by reviewdog 🐶

Findings (3)

programs/protocol-contracts-solana/src/lib.rs|123 col 9| 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
programs/protocol-contracts-solana/src/lib.rs|117 col 9| 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(())
|
programs/protocol-contracts-solana/src/lib.rs|164 col 9| 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(())
|

Filtered Findings (0)

Annotations

Check warning on line 123 in programs/protocol-contracts-solana/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] 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
Raw output
programs/protocol-contracts-solana/src/lib.rs:123:9:w: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


__END__

Check warning on line 117 in programs/protocol-contracts-solana/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] 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(())
    |
Raw output
programs/protocol-contracts-solana/src/lib.rs:117:9:w: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(())
    |


__END__

Check warning on line 164 in programs/protocol-contracts-solana/src/lib.rs

See this annotation in the file changed.

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