Skip to content

Update solana ledger command for autosnapshot in 1.16 #432

Update solana ledger command for autosnapshot in 1.16

Update solana ledger command for autosnapshot in 1.16 #432

GitHub Actions / clippy succeeded Oct 5, 2023 in 0s

clippy

22 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 22
Note 0
Help 0

Versions

  • rustc 1.67.1 (d5a82bbd2 2023-02-07)
  • cargo 1.67.1 (8ecd4f20a 2023-01-10)
  • clippy 0.1.67 (d5a82bb 2023-02-07)

Annotations

Check warning on line 515 in mev-programs/programs/programs/tip-distribution/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> programs/tip-distribution/src/lib.rs:515:49
    |
515 |     fn auth(ctx: &Context<UploadMerkleRoot>) -> Result<()> {
    |                                                 ^^^^^^^^^^ the `Err`-variant is at least 160 bytes
    |
    = help: try reducing the size of `anchor_lang::error::Error`, for example by boxing large elements or replacing it with `Box<anchor_lang::error::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 459 in mev-programs/programs/programs/tip-distribution/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> programs/tip-distribution/src/lib.rs:459:60
    |
459 |     fn auth(ctx: &Context<CloseTipDistributionAccount>) -> Result<()> {
    |                                                            ^^^^^^^^^^ the `Err`-variant is at least 160 bytes
    |
    = help: try reducing the size of `anchor_lang::error::Error`, for example by boxing large elements or replacing it with `Box<anchor_lang::error::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 672 in mev-programs/programs/programs/tip-payment/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> programs/tip-payment/src/lib.rs:672:48
    |
672 |     fn drain_account(account: &AccountInfo) -> Result<u64> {
    |                                                ^^^^^^^^^^^ the `Err`-variant is at least 160 bytes
    |
    = help: try reducing the size of `anchor_lang::error::Error`, for example by boxing large elements or replacing it with `Box<anchor_lang::error::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 661 in mev-programs/programs/programs/tip-payment/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> programs/tip-payment/src/lib.rs:661:54
    |
661 |     fn drain_accounts(accounts: Vec<AccountInfo>) -> Result<u64> {
    |                                                      ^^^^^^^^^^^ the `Err`-variant is at least 160 bytes
    |
    = help: try reducing the size of `anchor_lang::error::Error`, for example by boxing large elements or replacing it with `Box<anchor_lang::error::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 419 in mev-programs/programs/programs/tip-distribution/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> programs/tip-distribution/src/lib.rs:419:45
    |
419 |     fn auth(ctx: &Context<UpdateConfig>) -> Result<()> {
    |                                             ^^^^^^^^^^ the `Err`-variant is at least 160 bytes
    |
    = help: try reducing the size of `anchor_lang::error::Error`, for example by boxing large elements or replacing it with `Box<anchor_lang::error::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 208 in mev-programs/programs/programs/tip-distribution/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> programs/tip-distribution/src/lib.rs:208:87
    |
208 |     pub fn claim(ctx: Context<Claim>, bump: u8, amount: u64, proof: Vec<[u8; 32]>) -> Result<()> {
    |                                                                                       ^^^^^^^^^^ the `Err`-variant is at least 160 bytes
    |
    = help: try reducing the size of `anchor_lang::error::Error`, for example by boxing large elements or replacing it with `Box<anchor_lang::error::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 183 in mev-programs/programs/programs/tip-distribution/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> programs/tip-distribution/src/lib.rs:183:10
    |
183 |     ) -> Result<()> {
    |          ^^^^^^^^^^ the `Err`-variant is at least 160 bytes
    |
    = help: try reducing the size of `anchor_lang::error::Error`, for example by boxing large elements or replacing it with `Box<anchor_lang::error::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 161 in mev-programs/programs/programs/tip-distribution/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> programs/tip-distribution/src/lib.rs:161:66
    |
161 |     pub fn close_claim_status(ctx: Context<CloseClaimStatus>) -> Result<()> {
    |                                                                  ^^^^^^^^^^ the `Err`-variant is at least 160 bytes
    |
    = help: try reducing the size of `anchor_lang::error::Error`, for example by boxing large elements or replacing it with `Box<anchor_lang::error::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 123 in mev-programs/programs/programs/tip-distribution/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> programs/tip-distribution/src/lib.rs:123:10
    |
123 |     ) -> Result<()> {
    |          ^^^^^^^^^^ the `Err`-variant is at least 160 bytes
    |
    = help: try reducing the size of `anchor_lang::error::Error`, for example by boxing large elements or replacing it with `Box<anchor_lang::error::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 97 in mev-programs/programs/programs/tip-distribution/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
  --> programs/tip-distribution/src/lib.rs:97:77
   |
97 |     pub fn update_config(ctx: Context<UpdateConfig>, new_config: Config) -> Result<()> {
   |                                                                             ^^^^^^^^^^ the `Err`-variant is at least 160 bytes
   |
   = help: try reducing the size of `anchor_lang::error::Error`, for example by boxing large elements or replacing it with `Box<anchor_lang::error::Error>`
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 65 in mev-programs/programs/programs/tip-distribution/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
  --> programs/tip-distribution/src/lib.rs:65:10
   |
65 |     ) -> Result<()> {
   |          ^^^^^^^^^^ the `Err`-variant is at least 160 bytes
   |
   = help: try reducing the size of `anchor_lang::error::Error`, for example by boxing large elements or replacing it with `Box<anchor_lang::error::Error>`
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 46 in mev-programs/programs/programs/tip-distribution/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
  --> programs/tip-distribution/src/lib.rs:46:10
   |
46 |     ) -> Result<()> {
   |          ^^^^^^^^^^ the `Err`-variant is at least 160 bytes
   |
   = help: try reducing the size of `anchor_lang::error::Error`, for example by boxing large elements or replacing it with `Box<anchor_lang::error::Error>`
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 134 in mev-programs/programs/programs/tip-distribution/src/state.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> programs/tip-distribution/src/state.rs:134:78
    |
134 |     fn transfer_lamports(from: AccountInfo, to: AccountInfo, amount: u64) -> Result<()> {
    |                                                                              ^^^^^^^^^^ the `Err`-variant is at least 160 bytes
    |
    = help: try reducing the size of `anchor_lang::error::Error`, for example by boxing large elements or replacing it with `Box<anchor_lang::error::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 130 in mev-programs/programs/programs/tip-distribution/src/state.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> programs/tip-distribution/src/state.rs:130:70
    |
130 |     pub fn claim(from: AccountInfo, to: AccountInfo, amount: u64) -> Result<()> {
    |                                                                      ^^^^^^^^^^ the `Err`-variant is at least 160 bytes
    |
    = help: try reducing the size of `anchor_lang::error::Error`, for example by boxing large elements or replacing it with `Box<anchor_lang::error::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 117 in mev-programs/programs/programs/tip-distribution/src/state.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> programs/tip-distribution/src/state.rs:117:65
    |
117 |     pub fn claim_expired(from: AccountInfo, to: AccountInfo) -> Result<u64> {
    |                                                                 ^^^^^^^^^^^ the `Err`-variant is at least 160 bytes
    |
    = help: try reducing the size of `anchor_lang::error::Error`, for example by boxing large elements or replacing it with `Box<anchor_lang::error::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 106 in mev-programs/programs/programs/tip-distribution/src/state.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> programs/tip-distribution/src/state.rs:106:31
    |
106 |     pub fn validate(&self) -> Result<()> {
    |                               ^^^^^^^^^^ the `Err`-variant is at least 160 bytes
    |
    = help: try reducing the size of `anchor_lang::error::Error`, for example by boxing large elements or replacing it with `Box<anchor_lang::error::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 80 in mev-programs/programs/programs/tip-distribution/src/state.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
  --> programs/tip-distribution/src/state.rs:80:31
   |
80 |     pub fn validate(&self) -> Result<()> {
   |                               ^^^^^^^^^^ the `Err`-variant is at least 160 bytes
   |
   = help: try reducing the size of `anchor_lang::error::Error`, for example by boxing large elements or replacing it with `Box<anchor_lang::error::Error>`
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
   = note: `#[warn(clippy::result_large_err)]` on by default

Check warning on line 163 in mev-programs/programs/programs/tip-payment/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> programs/tip-payment/src/lib.rs:163:10
    |
163 |     ) -> Result<()> {
    |          ^^^^^^^^^^ the `Err`-variant is at least 160 bytes
    |
    = help: try reducing the size of `anchor_lang::error::Error`, for example by boxing large elements or replacing it with `Box<anchor_lang::error::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 112 in mev-programs/programs/programs/tip-payment/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> programs/tip-payment/src/lib.rs:112:68
    |
112 |     pub fn change_tip_receiver(ctx: Context<ChangeTipReceiver>) -> Result<()> {
    |                                                                    ^^^^^^^^^^ the `Err`-variant is at least 160 bytes
    |
    = help: try reducing the size of `anchor_lang::error::Error`, for example by boxing large elements or replacing it with `Box<anchor_lang::error::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 67 in mev-programs/programs/programs/tip-payment/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
  --> programs/tip-payment/src/lib.rs:67:51
   |
67 |     pub fn claim_tips(ctx: Context<ClaimTips>) -> Result<()> {
   |                                                   ^^^^^^^^^^ the `Err`-variant is at least 160 bytes
   |
   = help: try reducing the size of `anchor_lang::error::Error`, for example by boxing large elements or replacing it with `Box<anchor_lang::error::Error>`
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err

Check warning on line 45 in mev-programs/programs/programs/tip-payment/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
  --> programs/tip-payment/src/lib.rs:45:71
   |
45 |     pub fn initialize(ctx: Context<Initialize>, _bumps: InitBumps) -> Result<()> {
   |                                                                       ^^^^^^^^^^ the `Err`-variant is at least 160 bytes
   |
   = help: try reducing the size of `anchor_lang::error::Error`, for example by boxing large elements or replacing it with `Box<anchor_lang::error::Error>`
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
   = note: `#[warn(clippy::result_large_err)]` on by default

Check warning on line 181 in mev-programs/programs/programs/vote-state/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the `Err`-variant returned from this function is very large

warning: the `Err`-variant returned from this function is very large
   --> programs/vote-state/src/lib.rs:181:55
    |
181 |     pub fn deserialize(account_info: &AccountInfo) -> Result<Box<Self>> {
    |                                                       ^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes
    |
    = help: try reducing the size of `anchor_lang::error::Error`, for example by boxing large elements or replacing it with `Box<anchor_lang::error::Error>`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
    = note: `#[warn(clippy::result_large_err)]` on by default