rename #607
Annotations
1 error and 23 warnings
site
Process completed with exit code 1.
|
site
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/solana-nft-programs-transfer-authority/src/lib.rs#L67
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/solana-nft-programs-transfer-authority/src/lib.rs:67:5
|
67 | 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
|
67 - pub fn accept_transfer<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, AcceptTransferCtx<'info>>) -> Result<()> {
67 + pub fn accept_transfer<'info>(ctx: Context<'_, '_, '_, 'info, AcceptTransferCtx<'info>>) -> Result<()> {
|
|
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining:
programs/solana-nft-programs-transfer-authority/src/lib.rs#L41
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/solana-nft-programs-transfer-authority/src/lib.rs:41:5
|
41 | 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
|
41 - pub fn accept_listing<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, AcceptListingCtx<'info>>, ix: AcceptListingIx) -> Result<()> {
41 + pub fn accept_listing<'info>(ctx: Context<'_, '_, '_, 'info, AcceptListingCtx<'info>>, ix: AcceptListingIx) -> Result<()> {
|
|
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining:
programs/solana-nft-programs-transfer-authority/src/lib.rs#L28
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/solana-nft-programs-transfer-authority/src/lib.rs:28:5
|
28 | 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
|
28 - pub fn release<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, ReleaseCtx<'info>>) -> Result<()> {
28 + pub fn release<'info>(ctx: Context<'_, '_, '_, 'info, ReleaseCtx<'info>>) -> Result<()> {
|
|
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining:
programs/solana-nft-programs-transfer-authority/src/instructions/transfer_authority/release.rs#L36
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/solana-nft-programs-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/solana-nft-programs-transfer-authority/src/instructions/listing/accept_listing.rs#L92
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/solana-nft-programs-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<()> {
|
|
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining:
programs/solana-nft-programs-paid-claim-approver/src/lib.rs#L18
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/solana-nft-programs-paid-claim-approver/src/lib.rs:18:5
|
18 | 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
|
18 - pub fn pay<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, PayCtx<'info>>) -> Result<()> {
18 + pub fn pay<'info>(ctx: Context<'_, '_, '_, 'info, PayCtx<'info>>) -> Result<()> {
|
|
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining:
programs/solana-nft-programs-time-invalidator/src/lib.rs#L30
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/solana-nft-programs-time-invalidator/src/lib.rs:30:5
|
30 | 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
|
30 - pub fn invalidate<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, InvalidateCtx<'info>>) -> Result<()> {
30 + pub fn invalidate<'info>(ctx: Context<'_, '_, '_, 'info, InvalidateCtx<'info>>) -> Result<()> {
|
|
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining:
programs/solana-nft-programs-time-invalidator/src/lib.rs#L18
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/solana-nft-programs-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/solana-nft-programs-use-invalidator/src/lib.rs#L26
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/solana-nft-programs-use-invalidator/src/lib.rs:26:5
|
26 | 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
|
26 - pub fn invalidate<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, InvalidateCtx<'info>>) -> Result<()> {
26 + pub fn invalidate<'info>(ctx: Context<'_, '_, '_, 'info, InvalidateCtx<'info>>) -> Result<()> {
|
|
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining:
programs/solana-nft-programs-use-invalidator/src/lib.rs#L22
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/solana-nft-programs-use-invalidator/src/lib.rs:22:5
|
22 | 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
|
22 - pub fn extend_usages<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, ExtendUsagesCtx<'info>>, payment_amount: u64) -> Result<()> {
22 + 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/solana-nft-programs-time-invalidator/src/instructions/invalidate.rs#L42
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/solana-nft-programs-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/solana-nft-programs-use-invalidator/src/instructions/invalidate.rs#L37
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/solana-nft-programs-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<()> {
|
|
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining:
programs/solana-nft-programs-token-manager/src/lib.rs#L92
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/solana-nft-programs-token-manager/src/lib.rs:92:5
|
92 | 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
|
92 - pub fn transfer<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, TransferCtx<'info>>) -> Result<()> {
92 + pub fn transfer<'info>(ctx: Context<'_, '_, '_, 'info, TransferCtx<'info>>) -> Result<()> {
|
|
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining:
programs/solana-nft-programs-token-manager/src/lib.rs#L63
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/solana-nft-programs-token-manager/src/lib.rs:63:5
|
63 | 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
|
63 - pub fn invalidate<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, InvalidateCtx<'info>>) -> Result<()> {
63 + pub fn invalidate<'info>(ctx: Context<'_, '_, '_, 'info, InvalidateCtx<'info>>) -> Result<()> {
|
|
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining:
programs/solana-nft-programs-token-manager/src/lib.rs#L59
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/solana-nft-programs-token-manager/src/lib.rs:59:5
|
59 | 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
|
59 - pub fn claim<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, ClaimCtx<'info>>) -> Result<()> {
59 + pub fn claim<'info>(ctx: Context<'_, '_, '_, 'info, ClaimCtx<'info>>) -> Result<()> {
|
|
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining:
programs/solana-nft-programs-token-manager/src/lib.rs#L55
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/solana-nft-programs-token-manager/src/lib.rs:55:5
|
55 | 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
|
55 - pub fn unissue<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, UnissueCtx<'info>>) -> Result<()> {
55 + pub fn unissue<'info>(ctx: Context<'_, '_, '_, 'info, UnissueCtx<'info>>) -> Result<()> {
|
|
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining:
programs/solana-nft-programs-token-manager/src/lib.rs#L51
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/solana-nft-programs-token-manager/src/lib.rs:51:5
|
51 | 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
|
51 - pub fn issue<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, IssueCtx<'info>>) -> Result<()> {
51 + pub fn issue<'info>(ctx: Context<'_, '_, '_, 'info, IssueCtx<'info>>) -> Result<()> {
|
|
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining:
programs/solana-nft-programs-token-manager/src/instructions/transfers/transfer.rs#L47
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/solana-nft-programs-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/solana-nft-programs-token-manager/src/instructions/unissue.rs#L33
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/solana-nft-programs-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/solana-nft-programs-token-manager/src/instructions/issue.rs#L35
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/solana-nft-programs-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/solana-nft-programs-token-manager/src/instructions/invalidate.rs#L56
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/solana-nft-programs-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/solana-nft-programs-token-manager/src/instructions/claim.rs#L52
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/solana-nft-programs-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<()> {
|
|