Shutdown #1633
test.yml
on: pull_request
rust-clippy
2m 7s
rust-fmt
18s
soteria-scan
20m 24s
integration-tests
20m 34s
Annotations
22 errors and 89 warnings
Accept Listing ► Accept Listing Create Transfer Authority ► Accept Listing Create Transfer Authority:
tests/out.xml#L0
Failed test found in:
tests/out.xml
Error:
Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0x178b
|
Accept Listing ► Accept Listing Wrap Token ► Accept Listing Wrap Token:
tests/transfer-authority/acceptListing.test.ts#L43
Failed test found in:
tests/out.xml
Error:
Error: thrown: "No transfer authority with name lst-auth-0.8699815279431709 found"
|
Accept Listing ► Accept Listing Create Marketplace ► Accept Listing Create Marketplace:
tests/out.xml#L0
Failed test found in:
tests/out.xml
Error:
Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0x178b
|
Accept Listing ► Accept Listing Create Listing ► Accept Listing Create Listing:
tests/transfer-authority/acceptListing.test.ts#L43
Failed test found in:
tests/out.xml
Error:
Error: thrown: "No tokenManagerData for mint id5RN6r1KVf25gAiobcCBMa3a7UsrYiiLS7opt62LoKLFu found"
|
Accept Listing ► Accept Listing Accept Listing Different Amount Fail ► Accept Listing Accept Listing Different Amount Fail:
src/programs/transferAuthority/accounts.ts#L107
Failed test found in:
tests/out.xml
Error:
Error: Account does not exist or has no data GTo9U8nX3RzymCn5wG7qykq8X1ssUeWTV75vrYNEHjgY
|
Accept Listing ► Accept Listing Accept Listing ► Accept Listing Accept Listing:
src/programs/transferAuthority/accounts.ts#L107
Failed test found in:
tests/out.xml
Error:
Error: Account does not exist or has no data GTo9U8nX3RzymCn5wG7qykq8X1ssUeWTV75vrYNEHjgY
|
Accept Listing Permissioned ► Accept Listing Permissioned Create Transfer Authority ► Accept Listing Permissioned Create Transfer Authority:
tests/out.xml#L0
Failed test found in:
tests/out.xml
Error:
Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0x178b
|
Accept Listing Permissioned ► Accept Listing Permissioned Wrap Token ► Accept Listing Permissioned Wrap Token:
tests/transfer-authority/acceptListingKindPermissioned.test.ts#L39
Failed test found in:
tests/out.xml
Error:
Error: thrown: "No transfer authority with name lst-auth-0.11074487964005186 found"
|
Accept Listing Permissioned ► Accept Listing Permissioned Create Marketplace ► Accept Listing Permissioned Create Marketplace:
tests/out.xml#L0
Failed test found in:
tests/out.xml
Error:
Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0x178b
|
Accept Listing Permissioned ► Accept Listing Permissioned Create Listing ► Accept Listing Permissioned Create Listing:
tests/transfer-authority/acceptListingKindPermissioned.test.ts#L39
Failed test found in:
tests/out.xml
Error:
Error: thrown: "No tokenManagerData for mint id5XKHHmQspZnZYvDJa5cVqn3HShK51hhfFtuc6PC6q5fH found"
|
Accept Listing Permissioned ► Accept Listing Permissioned Accept Listing ► Accept Listing Permissioned Accept Listing:
src/programs/transferAuthority/accounts.ts#L107
Failed test found in:
tests/out.xml
Error:
Error: Account does not exist or has no data 4YXzDVwNd6stF1Z4Za7wxeSfPLjeHLmiUckXp1bmUFaZ
|
Accept Listing › Create Transfer Authority:
undefined#L1
failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0x178b
at Connection.sendEncodedTransaction (node_modules/@solana/web3.js/src/connection.ts:5742:13)
at Connection.sendRawTransaction (node_modules/@solana/web3.js/src/connection.ts:5701:20)
at sendAndConfirmRawTransaction (node_modules/@solana/web3.js/src/utils/send-and-confirm-raw-transaction.ts:84:21)
|
Accept Listing › Wrap Token:
tests/transfer-authority/acceptListing.test.ts#L237
thrown: "No transfer authority with name lst-auth-0.8699815279431709 found"
at tests/transfer-authority/acceptListing.test.ts:237:3
at Object.<anonymous> (tests/transfer-authority/acceptListing.test.ts:43:1)
|
Accept Listing › Create Marketplace:
undefined#L1
failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0x178b
at Connection.sendEncodedTransaction (node_modules/@solana/web3.js/src/connection.ts:5742:13)
at Connection.sendRawTransaction (node_modules/@solana/web3.js/src/connection.ts:5701:20)
at sendAndConfirmRawTransaction (node_modules/@solana/web3.js/src/utils/send-and-confirm-raw-transaction.ts:84:21)
|
Accept Listing › Create Listing:
tests/transfer-authority/acceptListing.test.ts#L293
thrown: "No tokenManagerData for mint id5RN6r1KVf25gAiobcCBMa3a7UsrYiiLS7opt62LoKLFu found"
at tests/transfer-authority/acceptListing.test.ts:293:3
at Object.<anonymous> (tests/transfer-authority/acceptListing.test.ts:43:1)
|
Accept Listing › Accept Listing Different Amount Fail:
src/programs/transferAuthority/accounts.ts#L107
Account does not exist or has no data GTo9U8nX3RzymCn5wG7qykq8X1ssUeWTV75vrYNEHjgY
at AccountClient.fetch (node_modules/@project-serum/anchor/src/program/namespace/account.ts:173:13)
at getListing (src/programs/transferAuthority/accounts.ts:107:18)
at Object.<anonymous> (tests/transfer-authority/acceptListing.test.ts:335:26)
|
Accept Listing › Accept Listing:
src/programs/transferAuthority/accounts.ts#L107
Account does not exist or has no data GTo9U8nX3RzymCn5wG7qykq8X1ssUeWTV75vrYNEHjgY
at AccountClient.fetch (node_modules/@project-serum/anchor/src/program/namespace/account.ts:173:13)
at getListing (src/programs/transferAuthority/accounts.ts:107:18)
at Object.<anonymous> (tests/transfer-authority/acceptListing.test.ts:362:26)
|
Create rental reissue › Create rental:
undefined#L1
failed to send transaction: Transaction simulation failed: Error processing Instruction 1: custom program error: 0x1798
at Connection.sendEncodedTransaction (node_modules/@solana/web3.js/src/connection.ts:5742:13)
at Connection.sendRawTransaction (node_modules/@solana/web3.js/src/connection.ts:5701:20)
at sendAndConfirmRawTransaction (node_modules/@solana/web3.js/src/utils/send-and-confirm-raw-transaction.ts:84:21)
|
Create rental reissue › Claim rental:
tests/time-invalidation/rentals/disableReissue.test.ts#L103
thrown: "Token manager not found"
at tests/time-invalidation/rentals/disableReissue.test.ts:103:3
at Object.<anonymous> (tests/time-invalidation/rentals/disableReissue.test.ts:23:1)
|
Create rental reissue › Invalidate:
tests/time-invalidation/rentals/disableReissue.test.ts#L191
expect(received).toEqual(expected) // deep equality
Expected: 5000000
Received: 0
at Object.<anonymous> (tests/time-invalidation/rentals/disableReissue.test.ts:191:7)
|
Create rental reissue › Claim again:
tests/time-invalidation/rentals/disableReissue.test.ts#L226
thrown: "Token manager not found"
at tests/time-invalidation/rentals/disableReissue.test.ts:226:3
at Object.<anonymous> (tests/time-invalidation/rentals/disableReissue.test.ts:23:1)
|
integration-tests
Failed test were found and 'fail-on-error' option is set to true
|
rust-fmt
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
rust-fmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
rust-fmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
rust-fmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
rust-fmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining:
programs/cardinal-transfer-authority/src/lib.rs#L72
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/cardinal-transfer-authority/src/lib.rs:72:5
|
72 | pub fn accept_transfer<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, AcceptTransferCtx<'info>>) -> Result<()...
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
72 - pub fn accept_transfer<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, AcceptTransferCtx<'info>>) -> Result<()> {
72 + pub fn accept_transfer<'info>(ctx: Context<'_, '_, '_, 'info, AcceptTransferCtx<'info>>) -> Result<()> {
|
|
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining:
programs/cardinal-transfer-authority/src/lib.rs#L44
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/cardinal-transfer-authority/src/lib.rs:44:5
|
44 | pub fn accept_listing<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, AcceptListingCtx<'info>>, ix: AcceptListingIx) -> Result<()...
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
44 - pub fn accept_listing<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, AcceptListingCtx<'info>>, ix: AcceptListingIx) -> Result<()> {
44 + pub fn accept_listing<'info>(ctx: Context<'_, '_, '_, 'info, AcceptListingCtx<'info>>, ix: AcceptListingIx) -> Result<()> {
|
|
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining:
programs/cardinal-transfer-authority/src/lib.rs#L29
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/cardinal-transfer-authority/src/lib.rs:29:5
|
29 | pub fn release<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, ReleaseCtx<'info>>) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
29 - pub fn release<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, ReleaseCtx<'info>>) -> Result<()> {
29 + pub fn release<'info>(ctx: Context<'_, '_, '_, 'info, ReleaseCtx<'info>>) -> Result<()> {
|
|
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining:
programs/cardinal-transfer-authority/src/instructions/transfer_authority/release.rs#L36
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/cardinal-transfer-authority/src/instructions/transfer_authority/release.rs:36:1
|
36 | pub fn handler<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, ReleaseCtx<'info>>) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
36 - pub fn handler<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, ReleaseCtx<'info>>) -> Result<()> {
36 + pub fn handler<'info>(ctx: Context<'_, '_, '_, 'info, ReleaseCtx<'info>>) -> Result<()> {
|
|
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining:
programs/cardinal-transfer-authority/src/instructions/listing/accept_listing.rs#L92
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/cardinal-transfer-authority/src/instructions/listing/accept_listing.rs:92:1
|
92 | pub fn handler<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, AcceptListingCtx<'info>>, ix: AcceptListingIx) -> Result<()...
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
|
92 - pub fn handler<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, AcceptListingCtx<'info>>, ix: AcceptListingIx) -> Result<()> {
92 + pub fn handler<'info>(ctx: Context<'_, '_, '_, 'info, AcceptListingCtx<'info>>, ix: AcceptListingIx) -> Result<()> {
|
|
unused variable: `ix`:
programs/cardinal-transfer-authority/src/lib.rs#L54
warning: unused variable: `ix`
--> programs/cardinal-transfer-authority/src/lib.rs:54:63
|
54 | pub fn init_marketplace(ctx: Context<InitMarketplaceCtx>, ix: InitMarketplaceIx) -> Result<()> {
| ^^ help: if this is intentional, prefix it with an underscore: `_ix`
|
unused variable: `ctx`:
programs/cardinal-transfer-authority/src/lib.rs#L54
warning: unused variable: `ctx`
--> programs/cardinal-transfer-authority/src/lib.rs:54:29
|
54 | pub fn init_marketplace(ctx: Context<InitMarketplaceCtx>, ix: InitMarketplaceIx) -> Result<()> {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
|
unused variable: `ix`:
programs/cardinal-transfer-authority/src/lib.rs#L44
warning: unused variable: `ix`
--> programs/cardinal-transfer-authority/src/lib.rs:44:138
|
44 | ...'info, AcceptListingCtx<'info>>, ix: AcceptListingIx) -> Result<()> {
| ^^ help: if this is intentional, prefix it with an underscore: `_ix`
|
unused variable: `ctx`:
programs/cardinal-transfer-authority/src/lib.rs#L44
warning: unused variable: `ctx`
--> programs/cardinal-transfer-authority/src/lib.rs:44:63
|
44 | pub fn accept_listing<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, AcceptListingCtx<'info>>, ...
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
|
unused variable: `ix`:
programs/cardinal-transfer-authority/src/lib.rs#L39
warning: unused variable: `ix`
--> programs/cardinal-transfer-authority/src/lib.rs:39:59
|
39 | pub fn update_listing(ctx: Context<UpdateListingCtx>, ix: UpdateListingIx) -> Result<()> {
| ^^ help: if this is intentional, prefix it with an underscore: `_ix`
|
unused variable: `ctx`:
programs/cardinal-transfer-authority/src/lib.rs#L39
warning: unused variable: `ctx`
--> programs/cardinal-transfer-authority/src/lib.rs:39:27
|
39 | pub fn update_listing(ctx: Context<UpdateListingCtx>, ix: UpdateListingIx) -> Result<()> {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
|
unused variable: `ix`:
programs/cardinal-transfer-authority/src/lib.rs#L34
warning: unused variable: `ix`
--> programs/cardinal-transfer-authority/src/lib.rs:34:59
|
34 | pub fn create_listing(ctx: Context<CreateListingCtx>, ix: CreateListingIx) -> Result<()> {
| ^^ help: if this is intentional, prefix it with an underscore: `_ix`
|
unused variable: `ctx`:
programs/cardinal-transfer-authority/src/lib.rs#L34
warning: unused variable: `ctx`
--> programs/cardinal-transfer-authority/src/lib.rs:34:27
|
34 | pub fn create_listing(ctx: Context<CreateListingCtx>, ix: CreateListingIx) -> Result<()> {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
|
unused variable: `ix`:
programs/cardinal-transfer-authority/src/lib.rs#L16
warning: unused variable: `ix`
--> programs/cardinal-transfer-authority/src/lib.rs:16:76
|
16 | pub fn init_transfer_authority(ctx: Context<InitTransferAuthorityCtx>, ix: InitTransferAuthorityIx) -> Result<()> {
| ^^ help: if this is intentional, prefix it with an underscore: `_ix`
|
unused variable: `ctx`:
programs/cardinal-transfer-authority/src/lib.rs#L16
warning: unused variable: `ctx`
--> programs/cardinal-transfer-authority/src/lib.rs:16:36
|
16 | pub fn init_transfer_authority(ctx: Context<InitTransferAuthorityCtx>, ix: InitTransferAuthorityIx) -> Result<()> {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
|
= note: `#[warn(unused_variables)]` on by default
|
unreachable expression:
programs/cardinal-transfer-authority/src/lib.rs#L56
warning: unreachable expression
--> programs/cardinal-transfer-authority/src/lib.rs:56:9
|
55 | return Err(error!(errors::ErrorCode::ProtocolsShutdown));
| -------------------------------------------------------- any code following this expression is unreachable
56 | marketplace::init_marketplace::handler(ctx, ix)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression
|
unreachable expression:
programs/cardinal-transfer-authority/src/lib.rs#L46
warning: unreachable expression
--> programs/cardinal-transfer-authority/src/lib.rs:46:9
|
45 | return Err(error!(errors::ErrorCode::ProtocolsShutdown));
| -------------------------------------------------------- any code following this expression is unreachable
46 | listing::accept_listing::handler(ctx, ix)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression
|
unreachable expression:
programs/cardinal-transfer-authority/src/lib.rs#L41
warning: unreachable expression
--> programs/cardinal-transfer-authority/src/lib.rs:41:9
|
40 | return Err(error!(errors::ErrorCode::ProtocolsShutdown));
| -------------------------------------------------------- any code following this expression is unreachable
41 | listing::update_listing::handler(ctx, ix)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression
|
unreachable expression:
programs/cardinal-transfer-authority/src/lib.rs#L36
warning: unreachable expression
--> programs/cardinal-transfer-authority/src/lib.rs:36:9
|
35 | return Err(error!(errors::ErrorCode::ProtocolsShutdown));
| -------------------------------------------------------- any code following this expression is unreachable
36 | listing::create_listing::handler(ctx, ix)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression
|
unreachable expression:
programs/cardinal-transfer-authority/src/lib.rs#L18
warning: unreachable expression
--> programs/cardinal-transfer-authority/src/lib.rs:18:9
|
17 | return Err(error!(errors::ErrorCode::ProtocolsShutdown));
| -------------------------------------------------------- any code following this expression is unreachable
18 | transfer_authority::init_transfer_authority::handler(ctx, ix)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression
|
= note: `#[warn(unreachable_code)]` on by default
|
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining:
programs/cardinal-use-invalidator/src/lib.rs#L29
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/cardinal-use-invalidator/src/lib.rs:29:5
|
29 | pub fn invalidate<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, InvalidateCtx<'info>>) -> Result<()...
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
29 - pub fn invalidate<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, InvalidateCtx<'info>>) -> Result<()> {
29 + pub fn invalidate<'info>(ctx: Context<'_, '_, '_, 'info, InvalidateCtx<'info>>) -> Result<()> {
|
|
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining:
programs/cardinal-use-invalidator/src/lib.rs#L24
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/cardinal-use-invalidator/src/lib.rs:24:5
|
24 | pub fn extend_usages<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, ExtendUsagesCtx<'info>>, payment_amount: u64) -> Result<()...
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
24 - pub fn extend_usages<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, ExtendUsagesCtx<'info>>, payment_amount: u64) -> Result<()> {
24 + pub fn extend_usages<'info>(ctx: Context<'_, '_, '_, 'info, ExtendUsagesCtx<'info>>, payment_amount: u64) -> Result<()> {
|
|
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining:
programs/cardinal-use-invalidator/src/instructions/invalidate.rs#L37
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/cardinal-use-invalidator/src/instructions/invalidate.rs:37:1
|
37 | pub fn handler<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, InvalidateCtx<'info>>) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
|
37 - pub fn handler<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, InvalidateCtx<'info>>) -> Result<()> {
37 + pub fn handler<'info>(ctx: Context<'_, '_, '_, 'info, InvalidateCtx<'info>>) -> Result<()> {
|
|
unused variable: `payment_amount`:
programs/cardinal-use-invalidator/src/lib.rs#L24
warning: unused variable: `payment_amount`
--> programs/cardinal-use-invalidator/src/lib.rs:24:136
|
24 | ...ndUsagesCtx<'info>>, payment_amount: u64) -> Result<()> {
| ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payment_amount`
|
unused variable: `ctx`:
programs/cardinal-use-invalidator/src/lib.rs#L24
warning: unused variable: `ctx`
--> programs/cardinal-use-invalidator/src/lib.rs:24:62
|
24 | pub fn extend_usages<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, ExtendUsagesCtx<'info>>, pa...
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
|
unused variable: `num_usages`:
programs/cardinal-use-invalidator/src/lib.rs#L19
warning: unused variable: `num_usages`
--> programs/cardinal-use-invalidator/src/lib.rs:19:63
|
19 | pub fn increment_usages(ctx: Context<IncrementUsagesCtx>, num_usages: u64) -> Result<()> {
| ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_usages`
|
unused variable: `ctx`:
programs/cardinal-use-invalidator/src/lib.rs#L19
warning: unused variable: `ctx`
--> programs/cardinal-use-invalidator/src/lib.rs:19:29
|
19 | pub fn increment_usages(ctx: Context<IncrementUsagesCtx>, num_usages: u64) -> Result<()> {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
|
unused variable: `ix`:
programs/cardinal-use-invalidator/src/lib.rs#L14
warning: unused variable: `ix`
--> programs/cardinal-use-invalidator/src/lib.rs:14:40
|
14 | pub fn init(ctx: Context<InitCtx>, ix: InitIx) -> Result<()> {
| ^^ help: if this is intentional, prefix it with an underscore: `_ix`
|
unused variable: `ctx`:
programs/cardinal-use-invalidator/src/lib.rs#L14
warning: unused variable: `ctx`
--> programs/cardinal-use-invalidator/src/lib.rs:14:17
|
14 | pub fn init(ctx: Context<InitCtx>, ix: InitIx) -> Result<()> {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
|
= note: `#[warn(unused_variables)]` on by default
|
unreachable expression:
programs/cardinal-use-invalidator/src/lib.rs#L26
warning: unreachable expression
--> programs/cardinal-use-invalidator/src/lib.rs:26:9
|
25 | return Err(error!(errors::ErrorCode::ProtocolsShutdown));
| -------------------------------------------------------- any code following this expression is unreachable
26 | extend_usages::handler(ctx, payment_amount)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression
|
unreachable expression:
programs/cardinal-use-invalidator/src/lib.rs#L21
warning: unreachable expression
--> programs/cardinal-use-invalidator/src/lib.rs:21:9
|
20 | return Err(error!(errors::ErrorCode::ProtocolsShutdown));
| -------------------------------------------------------- any code following this expression is unreachable
21 | increment_usages::handler(ctx, num_usages)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression
|
unreachable expression:
programs/cardinal-use-invalidator/src/lib.rs#L16
warning: unreachable expression
--> programs/cardinal-use-invalidator/src/lib.rs:16:9
|
15 | return Err(error!(errors::ErrorCode::ProtocolsShutdown));
| -------------------------------------------------------- any code following this expression is unreachable
16 | init::handler(ctx, ix)
| ^^^^^^^^^^^^^^^^^^^^^^ unreachable expression
|
= note: `#[warn(unreachable_code)]` on by default
|
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining:
programs/cardinal-time-invalidator/src/lib.rs#L32
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/cardinal-time-invalidator/src/lib.rs:32:5
|
32 | pub fn invalidate<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, InvalidateCtx<'info>>) -> Result<()...
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
32 - pub fn invalidate<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, InvalidateCtx<'info>>) -> Result<()> {
32 + pub fn invalidate<'info>(ctx: Context<'_, '_, '_, 'info, InvalidateCtx<'info>>) -> Result<()> {
|
|
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining:
programs/cardinal-time-invalidator/src/lib.rs#L18
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/cardinal-time-invalidator/src/lib.rs:18:5
|
18 | pub fn extend_expiration<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, ExtendExpirationCtx<'info>>, seconds_to_add: u64) -> Result<()...
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
18 - pub fn extend_expiration<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, ExtendExpirationCtx<'info>>, seconds_to_add: u64) -> Result<()> {
18 + pub fn extend_expiration<'info>(ctx: Context<'_, '_, '_, 'info, ExtendExpirationCtx<'info>>, seconds_to_add: u64) -> Result<()> {
|
|
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining:
programs/cardinal-time-invalidator/src/instructions/invalidate.rs#L42
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/cardinal-time-invalidator/src/instructions/invalidate.rs:42:1
|
42 | pub fn handler<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, InvalidateCtx<'info>>) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
|
42 - pub fn handler<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, InvalidateCtx<'info>>) -> Result<()> {
42 + pub fn handler<'info>(ctx: Context<'_, '_, '_, 'info, InvalidateCtx<'info>>) -> Result<()> {
|
|
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining:
programs/cardinal-paid-claim-approver/src/lib.rs#L19
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/cardinal-paid-claim-approver/src/lib.rs:19:5
|
19 | pub fn pay<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, PayCtx<'info>>) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
|
19 - pub fn pay<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, PayCtx<'info>>) -> Result<()> {
19 + pub fn pay<'info>(ctx: Context<'_, '_, '_, 'info, PayCtx<'info>>) -> Result<()> {
|
|
unused variable: `ix`:
programs/cardinal-time-invalidator/src/lib.rs#L27
warning: unused variable: `ix`
--> programs/cardinal-time-invalidator/src/lib.rs:27:72
|
27 | pub fn update_max_expiration(ctx: Context<UpdateMaxExpirationCtx>, ix: UpdateMaxExpirationIx) -> Result<()> {
| ^^ help: if this is intentional, prefix it with an underscore: `_ix`
|
unused variable: `ctx`:
programs/cardinal-time-invalidator/src/lib.rs#L27
warning: unused variable: `ctx`
--> programs/cardinal-time-invalidator/src/lib.rs:27:34
|
27 | pub fn update_max_expiration(ctx: Context<UpdateMaxExpirationCtx>, ix: UpdateMaxExpirationIx) -> Result<()> {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
|
unused variable: `seconds_to_add`:
programs/cardinal-time-invalidator/src/lib.rs#L18
warning: unused variable: `seconds_to_add`
--> programs/cardinal-time-invalidator/src/lib.rs:18:144
|
18 | ...pirationCtx<'info>>, seconds_to_add: u64) -> Result<()> {
| ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_seconds_to_add`
|
unused variable: `ctx`:
programs/cardinal-time-invalidator/src/lib.rs#L18
warning: unused variable: `ctx`
--> programs/cardinal-time-invalidator/src/lib.rs:18:66
|
18 | ..., 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, ExtendExpirationCtx<'info>>, seconds_to_add: u64) -> ...
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
|
= note: `#[warn(unused_variables)]` on by default
|
unreachable expression:
programs/cardinal-time-invalidator/src/lib.rs#L29
warning: unreachable expression
--> programs/cardinal-time-invalidator/src/lib.rs:29:9
|
28 | return Err(error!(errors::ErrorCode::ProtocolsShutdown));
| -------------------------------------------------------- any code following this expression is unreachable
29 | update_max_expiration::handler(ctx, ix)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression
|
unreachable expression:
programs/cardinal-time-invalidator/src/lib.rs#L20
warning: unreachable expression
--> programs/cardinal-time-invalidator/src/lib.rs:20:9
|
19 | return Err(error!(errors::ErrorCode::ProtocolsShutdown));
| -------------------------------------------------------- any code following this expression is unreachable
20 | extend_expiration::handler(ctx, seconds_to_add)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression
|
= note: `#[warn(unreachable_code)]` on by default
|
unused variable: `ctx`:
programs/cardinal-paid-claim-approver/src/lib.rs#L19
warning: unused variable: `ctx`
--> programs/cardinal-paid-claim-approver/src/lib.rs:19:52
|
19 | pub fn pay<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, PayCtx<'info>>) -> Result<()> {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
|
unused variable: `ix`:
programs/cardinal-paid-claim-approver/src/lib.rs#L14
warning: unused variable: `ix`
--> programs/cardinal-paid-claim-approver/src/lib.rs:14:40
|
14 | pub fn init(ctx: Context<InitCtx>, ix: InitIx) -> Result<()> {
| ^^ help: if this is intentional, prefix it with an underscore: `_ix`
|
unused variable: `ctx`:
programs/cardinal-paid-claim-approver/src/lib.rs#L14
warning: unused variable: `ctx`
--> programs/cardinal-paid-claim-approver/src/lib.rs:14:17
|
14 | pub fn init(ctx: Context<InitCtx>, ix: InitIx) -> Result<()> {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
|
= note: `#[warn(unused_variables)]` on by default
|
unreachable expression:
programs/cardinal-paid-claim-approver/src/lib.rs#L21
warning: unreachable expression
--> programs/cardinal-paid-claim-approver/src/lib.rs:21:9
|
20 | return Err(error!(errors::ErrorCode::ProtocolsShutdown));
| -------------------------------------------------------- any code following this expression is unreachable
21 | pay::handler(ctx)
| ^^^^^^^^^^^^^^^^^ unreachable expression
|
unreachable expression:
programs/cardinal-paid-claim-approver/src/lib.rs#L16
warning: unreachable expression
--> programs/cardinal-paid-claim-approver/src/lib.rs:16:9
|
15 | return Err(error!(errors::ErrorCode::ProtocolsShutdown));
| -------------------------------------------------------- any code following this expression is unreachable
16 | init::handler(ctx, ix)
| ^^^^^^^^^^^^^^^^^^^^^^ unreachable expression
|
= note: `#[warn(unreachable_code)]` on by default
|
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining:
programs/cardinal-token-manager/src/lib.rs#L96
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/cardinal-token-manager/src/lib.rs:96:5
|
96 | pub fn transfer<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, TransferCtx<'info>>) -> Result<()...
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
96 - pub fn transfer<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, TransferCtx<'info>>) -> Result<()> {
96 + pub fn transfer<'info>(ctx: Context<'_, '_, '_, 'info, TransferCtx<'info>>) -> Result<()> {
|
|
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining:
programs/cardinal-token-manager/src/lib.rs#L67
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/cardinal-token-manager/src/lib.rs:67:5
|
67 | pub fn invalidate<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, InvalidateCtx<'info>>) -> Result<()...
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
67 - pub fn invalidate<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, InvalidateCtx<'info>>) -> Result<()> {
67 + pub fn invalidate<'info>(ctx: Context<'_, '_, '_, 'info, InvalidateCtx<'info>>) -> Result<()> {
|
|
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining:
programs/cardinal-token-manager/src/lib.rs#L62
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/cardinal-token-manager/src/lib.rs:62:5
|
62 | pub fn claim<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, ClaimCtx<'info>>) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
62 - pub fn claim<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, ClaimCtx<'info>>) -> Result<()> {
62 + pub fn claim<'info>(ctx: Context<'_, '_, '_, 'info, ClaimCtx<'info>>) -> Result<()> {
|
|
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining:
programs/cardinal-token-manager/src/lib.rs#L58
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/cardinal-token-manager/src/lib.rs:58:5
|
58 | pub fn unissue<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, UnissueCtx<'info>>) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
58 - pub fn unissue<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, UnissueCtx<'info>>) -> Result<()> {
58 + pub fn unissue<'info>(ctx: Context<'_, '_, '_, 'info, UnissueCtx<'info>>) -> Result<()> {
|
|
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining:
programs/cardinal-token-manager/src/lib.rs#L53
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/cardinal-token-manager/src/lib.rs:53:5
|
53 | pub fn issue<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, IssueCtx<'info>>) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
53 - pub fn issue<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, IssueCtx<'info>>) -> Result<()> {
53 + pub fn issue<'info>(ctx: Context<'_, '_, '_, 'info, IssueCtx<'info>>) -> Result<()> {
|
|
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining:
programs/cardinal-token-manager/src/instructions/transfers/transfer.rs#L47
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/cardinal-token-manager/src/instructions/transfers/transfer.rs:47:1
|
47 | pub fn handler<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, TransferCtx<'info>>) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
47 - pub fn handler<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, TransferCtx<'info>>) -> Result<()> {
47 + pub fn handler<'info>(ctx: Context<'_, '_, '_, 'info, TransferCtx<'info>>) -> Result<()> {
|
|
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining:
programs/cardinal-token-manager/src/instructions/unissue.rs#L33
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/cardinal-token-manager/src/instructions/unissue.rs:33:1
|
33 | pub fn handler<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, UnissueCtx<'info>>) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
33 - pub fn handler<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, UnissueCtx<'info>>) -> Result<()> {
33 + pub fn handler<'info>(ctx: Context<'_, '_, '_, 'info, UnissueCtx<'info>>) -> Result<()> {
|
|
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining:
programs/cardinal-token-manager/src/instructions/issue.rs#L35
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/cardinal-token-manager/src/instructions/issue.rs:35:1
|
35 | pub fn handler<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, IssueCtx<'info>>) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
35 - pub fn handler<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, IssueCtx<'info>>) -> Result<()> {
35 + pub fn handler<'info>(ctx: Context<'_, '_, '_, 'info, IssueCtx<'info>>) -> Result<()> {
|
|
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining:
programs/cardinal-token-manager/src/instructions/invalidate.rs#L56
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/cardinal-token-manager/src/instructions/invalidate.rs:56:1
|
56 | pub fn handler<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, InvalidateCtx<'info>>) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
56 - pub fn handler<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, InvalidateCtx<'info>>) -> Result<()> {
56 + pub fn handler<'info>(ctx: Context<'_, '_, '_, 'info, InvalidateCtx<'info>>) -> Result<()> {
|
|
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining:
programs/cardinal-token-manager/src/instructions/claim.rs#L52
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/cardinal-token-manager/src/instructions/claim.rs:52:1
|
52 | pub fn handler<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, ClaimCtx<'info>>) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
|
52 - pub fn handler<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, ClaimCtx<'info>>) -> Result<()> {
52 + pub fn handler<'info>(ctx: Context<'_, '_, '_, 'info, ClaimCtx<'info>>) -> Result<()> {
|
|
unused variable: `ctx`:
programs/cardinal-token-manager/src/lib.rs#L62
warning: unused variable: `ctx`
--> programs/cardinal-token-manager/src/lib.rs:62:54
|
62 | pub fn claim<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, ClaimCtx<'info>>) -> Result<()> {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
|
unused variable: `ctx`:
programs/cardinal-token-manager/src/lib.rs#L53
warning: unused variable: `ctx`
--> programs/cardinal-token-manager/src/lib.rs:53:54
|
53 | pub fn issue<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, IssueCtx<'info>>) -> Result<()> {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
|
unused variable: `name`:
programs/cardinal-token-manager/src/lib.rs#L48
warning: unused variable: `name`
--> programs/cardinal-token-manager/src/lib.rs:48:66
|
48 | pub fn claim_receipt_mint(ctx: Context<ClaimReceiptMintCtx>, name: String) -> Result<()> {
| ^^^^ help: if this is intentional, prefix it with an underscore: `_name`
|
unused variable: `ctx`:
programs/cardinal-token-manager/src/lib.rs#L48
warning: unused variable: `ctx`
--> programs/cardinal-token-manager/src/lib.rs:48:31
|
48 | pub fn claim_receipt_mint(ctx: Context<ClaimReceiptMintCtx>, name: String) -> Result<()> {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
|
unused variable: `ix`:
programs/cardinal-token-manager/src/lib.rs#L15
warning: unused variable: `ix`
--> programs/cardinal-token-manager/src/lib.rs:15:40
|
15 | pub fn init(ctx: Context<InitCtx>, ix: InitIx) -> Result<()> {
| ^^ help: if this is intentional, prefix it with an underscore: `_ix`
|
unused variable: `ctx`:
programs/cardinal-token-manager/src/lib.rs#L15
warning: unused variable: `ctx`
--> programs/cardinal-token-manager/src/lib.rs:15:17
|
15 | pub fn init(ctx: Context<InitCtx>, ix: InitIx) -> Result<()> {
| ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`
|
= note: `#[warn(unused_variables)]` on by default
|
unreachable expression:
programs/cardinal-token-manager/src/lib.rs#L64
warning: unreachable expression
--> programs/cardinal-token-manager/src/lib.rs:64:9
|
63 | return Err(error!(errors::ErrorCode::ProtocolsShutdown));
| -------------------------------------------------------- any code following this expression is unreachable
64 | claim::handler(ctx)
| ^^^^^^^^^^^^^^^^^^^ unreachable expression
|
unreachable expression:
programs/cardinal-token-manager/src/lib.rs#L55
warning: unreachable expression
--> programs/cardinal-token-manager/src/lib.rs:55:9
|
54 | return Err(error!(errors::ErrorCode::ProtocolsShutdown));
| -------------------------------------------------------- any code following this expression is unreachable
55 | issue::handler(ctx)
| ^^^^^^^^^^^^^^^^^^^ unreachable expression
|
unreachable expression:
programs/cardinal-token-manager/src/lib.rs#L50
warning: unreachable expression
--> programs/cardinal-token-manager/src/lib.rs:50:9
|
49 | return Err(error!(errors::ErrorCode::ProtocolsShutdown));
| -------------------------------------------------------- any code following this expression is unreachable
50 | claim_receipt_mint::handler(ctx, name)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression
|
unreachable expression:
programs/cardinal-token-manager/src/lib.rs#L17
warning: unreachable expression
--> programs/cardinal-token-manager/src/lib.rs:17:9
|
16 | return Err(error!(errors::ErrorCode::ProtocolsShutdown));
| -------------------------------------------------------- any code following this expression is unreachable
17 | init::handler(ctx, ix)
| ^^^^^^^^^^^^^^^^^^^^^^ unreachable expression
|
= note: `#[warn(unreachable_code)]` on by default
|
rust-clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
rust-clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
rust-clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
rust-clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
rust-clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
soteria-scan
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
soteria-scan
Unexpected input(s) 'soteria_version', valid inputs are ['soteria-version']
|
soteria-scan
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
soteria-scan
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
soteria-scan
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
soteria-scan
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
soteria-scan
Unexpected input(s) 'soteria_version', valid inputs are ['soteria-version']
|
integration-tests
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions/cache@v2, actions/upload-artifact@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
integration-tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
integration-tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
integration-tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
integration-tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
Integration Tests
Expired
|
234 KB |
|
anchor-binary
Expired
|
16.9 MB |
|