Skip to content

conditionally declare ids #431

conditionally declare ids

conditionally declare ids #431

Triggered via pull request September 21, 2023 14:23
Status Failure
Total duration 11m 11s
Artifacts

build.yaml

on: pull_request
Build and test programs
9m 39s
Build and test programs
Build Verifiable Artifact
1m 59s
Build Verifiable Artifact
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 23 warnings
Build Verifiable Artifact
Process completed with exit code 101.
Build and test programs
Process completed with exit code 24.
the `Err`-variant returned from this function is very large: mev-programs/programs/programs/tip-distribution/src/lib.rs#L525
warning: the `Err`-variant returned from this function is very large --> programs/tip-distribution/src/lib.rs:525:49 | 525 | 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
the `Err`-variant returned from this function is very large: mev-programs/programs/programs/tip-payment/src/lib.rs#L682
warning: the `Err`-variant returned from this function is very large --> programs/tip-payment/src/lib.rs:682:48 | 682 | 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
the `Err`-variant returned from this function is very large: mev-programs/programs/programs/tip-payment/src/lib.rs#L671
warning: the `Err`-variant returned from this function is very large --> programs/tip-payment/src/lib.rs:671:54 | 671 | 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
the `Err`-variant returned from this function is very large: mev-programs/programs/programs/tip-distribution/src/lib.rs#L469
warning: the `Err`-variant returned from this function is very large --> programs/tip-distribution/src/lib.rs:469:60 | 469 | 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
the `Err`-variant returned from this function is very large: mev-programs/programs/programs/tip-distribution/src/lib.rs#L429
warning: the `Err`-variant returned from this function is very large --> programs/tip-distribution/src/lib.rs:429:45 | 429 | 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
the `Err`-variant returned from this function is very large: mev-programs/programs/programs/tip-distribution/src/lib.rs#L218
warning: the `Err`-variant returned from this function is very large --> programs/tip-distribution/src/lib.rs:218:87 | 218 | 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
the `Err`-variant returned from this function is very large: mev-programs/programs/programs/tip-distribution/src/lib.rs#L193
warning: the `Err`-variant returned from this function is very large --> programs/tip-distribution/src/lib.rs:193:10 | 193 | ) -> 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
the `Err`-variant returned from this function is very large: mev-programs/programs/programs/tip-distribution/src/lib.rs#L171
warning: the `Err`-variant returned from this function is very large --> programs/tip-distribution/src/lib.rs:171:66 | 171 | 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
the `Err`-variant returned from this function is very large: mev-programs/programs/programs/tip-distribution/src/lib.rs#L133
warning: the `Err`-variant returned from this function is very large --> programs/tip-distribution/src/lib.rs:133:10 | 133 | ) -> 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
the `Err`-variant returned from this function is very large: mev-programs/programs/programs/tip-distribution/src/lib.rs#L107
warning: the `Err`-variant returned from this function is very large --> programs/tip-distribution/src/lib.rs:107:77 | 107 | 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
the `Err`-variant returned from this function is very large: mev-programs/programs/programs/tip-distribution/src/lib.rs#L75
warning: the `Err`-variant returned from this function is very large --> programs/tip-distribution/src/lib.rs:75:10 | 75 | ) -> 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
the `Err`-variant returned from this function is very large: mev-programs/programs/programs/tip-distribution/src/lib.rs#L56
warning: the `Err`-variant returned from this function is very large --> programs/tip-distribution/src/lib.rs:56:10 | 56 | ) -> 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
the `Err`-variant returned from this function is very large: mev-programs/programs/programs/tip-distribution/src/state.rs#L134
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
the `Err`-variant returned from this function is very large: mev-programs/programs/programs/tip-distribution/src/state.rs#L130
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
the `Err`-variant returned from this function is very large: mev-programs/programs/programs/tip-distribution/src/state.rs#L117
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
the `Err`-variant returned from this function is very large: mev-programs/programs/programs/tip-distribution/src/state.rs#L106
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
the `Err`-variant returned from this function is very large: mev-programs/programs/programs/tip-distribution/src/state.rs#L80
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
the `Err`-variant returned from this function is very large: mev-programs/programs/programs/tip-payment/src/lib.rs#L173
warning: the `Err`-variant returned from this function is very large --> programs/tip-payment/src/lib.rs:173:10 | 173 | ) -> 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
the `Err`-variant returned from this function is very large: mev-programs/programs/programs/tip-payment/src/lib.rs#L122
warning: the `Err`-variant returned from this function is very large --> programs/tip-payment/src/lib.rs:122:68 | 122 | 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
the `Err`-variant returned from this function is very large: mev-programs/programs/programs/tip-payment/src/lib.rs#L77
warning: the `Err`-variant returned from this function is very large --> programs/tip-payment/src/lib.rs:77:51 | 77 | 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
the `Err`-variant returned from this function is very large: mev-programs/programs/programs/tip-payment/src/lib.rs#L55
warning: the `Err`-variant returned from this function is very large --> programs/tip-payment/src/lib.rs:55:71 | 55 | 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
the `Err`-variant returned from this function is very large: mev-programs/programs/programs/vote-state/src/lib.rs#L181
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
Build and test programs
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2, reinismu/clippy-check@master. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/