Migrate v2 #426
Migrate v2 #426
clippy
22 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 22 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.69.0 (84c898d65 2023-04-16)
- cargo 1.69.0 (6e9a83356 2023-04-12)
- clippy 0.1.69 (84c898d 2023-04-16)
Annotations
Check warning on line 67 in programs/cardinal-transfer-authority/src/lib.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/cardinal-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<()> {
|
Check warning on line 41 in programs/cardinal-transfer-authority/src/lib.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/cardinal-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<()> {
|
Check warning on line 28 in programs/cardinal-transfer-authority/src/lib.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/cardinal-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<()> {
|
github-actions / clippy
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
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<()> {
|
github-actions / clippy
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
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<()> {
|
Check warning on line 18 in programs/cardinal-paid-claim-approver/src/lib.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/cardinal-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<()> {
|
Check warning on line 30 in programs/cardinal-time-invalidator/src/lib.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/cardinal-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<()> {
|
Check warning on line 18 in programs/cardinal-time-invalidator/src/lib.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
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<()> {
|
Check warning on line 26 in programs/cardinal-use-invalidator/src/lib.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/cardinal-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<()> {
|
Check warning on line 22 in programs/cardinal-use-invalidator/src/lib.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/cardinal-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<()> {
|
Check warning on line 42 in programs/cardinal-time-invalidator/src/instructions/invalidate.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
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<()> {
|
Check warning on line 37 in programs/cardinal-use-invalidator/src/instructions/invalidate.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
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<()> {
|
Check warning on line 92 in programs/cardinal-token-manager/src/lib.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/cardinal-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<()> {
|
Check warning on line 63 in programs/cardinal-token-manager/src/lib.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/cardinal-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<()> {
|
Check warning on line 59 in programs/cardinal-token-manager/src/lib.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/cardinal-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<()> {
|
Check warning on line 55 in programs/cardinal-token-manager/src/lib.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/cardinal-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<()> {
|
Check warning on line 51 in programs/cardinal-token-manager/src/lib.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
--> programs/cardinal-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<()> {
|
Check warning on line 47 in programs/cardinal-token-manager/src/instructions/transfers/transfer.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
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<()> {
|
Check warning on line 33 in programs/cardinal-token-manager/src/instructions/unissue.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
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<()> {
|
Check warning on line 35 in programs/cardinal-token-manager/src/instructions/issue.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
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<()> {
|
Check warning on line 56 in programs/cardinal-token-manager/src/instructions/invalidate.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
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<()> {
|
Check warning on line 52 in programs/cardinal-token-manager/src/instructions/claim.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining
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<()> {
|