Skip to content

Feature: Response Models #292

Feature: Response Models

Feature: Response Models #292

Triggered via pull request February 24, 2025 03:39
Status Success
Total duration 6m 5s
Artifacts

unit_test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

182 warnings
the following explicit lifetimes could be elided: 'a: src/models/currency/mod.rs#L26
warning: the following explicit lifetimes could be elided: 'a --> src/models/currency/mod.rs:26:6 | 26 | impl<'a> Default for Currency<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 26 - impl<'a> Default for Currency<'a> { 26 + impl Default for Currency<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/currency/mod.rs#L24
warning: the following explicit lifetimes could be elided: 'a --> src/models/currency/mod.rs:24:6 | 24 | impl<'a> Model for Currency<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 24 - impl<'a> Model for Currency<'a> {} 24 + impl Model for Currency<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/currency/xrp.rs#L20
warning: the following explicit lifetimes could be elided: 'a --> src/models/currency/xrp.rs:20:6 | 20 | impl<'a> XRP<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 20 - impl<'a> XRP<'a> { 20 + impl XRP<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/currency/xrp.rs#L12
warning: the following explicit lifetimes could be elided: 'a --> src/models/currency/xrp.rs:12:6 | 12 | impl<'a> Model for XRP<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 12 - impl<'a> Model for XRP<'a> {} 12 + impl Model for XRP<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/currency/issued_currency.rs#L13
warning: the following explicit lifetimes could be elided: 'a --> src/models/currency/issued_currency.rs:13:6 | 13 | impl<'a> Model for IssuedCurrency<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 13 - impl<'a> Model for IssuedCurrency<'a> {} 13 + impl Model for IssuedCurrency<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/amount/mod.rs#L96
warning: the following explicit lifetimes could be elided: 'a --> src/models/amount/mod.rs:96:6 | 96 | impl<'a> From<BigDecimal> for Amount<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 96 - impl<'a> From<BigDecimal> for Amount<'a> { 96 + impl From<BigDecimal> for Amount<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/amount/mod.rs#L87
warning: the following explicit lifetimes could be elided: 'a --> src/models/amount/mod.rs:87:6 | 87 | impl<'a> From<f64> for Amount<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 87 - impl<'a> From<f64> for Amount<'a> { 87 + impl From<f64> for Amount<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/amount/mod.rs#L81
warning: the following explicit lifetimes could be elided: 'a --> src/models/amount/mod.rs:81:6 | 81 | impl<'a> From<u64> for Amount<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 81 - impl<'a> From<u64> for Amount<'a> { 81 + impl From<u64> for Amount<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/amount/mod.rs#L75
warning: the following explicit lifetimes could be elided: 'a --> src/models/amount/mod.rs:75:6 | 75 | impl<'a> From<u32> for Amount<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 75 - impl<'a> From<u32> for Amount<'a> { 75 + impl From<u32> for Amount<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/amount/mod.rs#L44
warning: the following explicit lifetimes could be elided: 'a --> src/models/amount/mod.rs:44:6 | 44 | impl<'a> Amount<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 44 - impl<'a> Amount<'a> { 44 + impl Amount<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/amount/mod.rs#L38
warning: the following explicit lifetimes could be elided: 'a --> src/models/amount/mod.rs:38:6 | 38 | impl<'a> Default for Amount<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 38 - impl<'a> Default for Amount<'a> { 38 + impl Default for Amount<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/amount/mod.rs#L36
warning: the following explicit lifetimes could be elided: 'a --> src/models/amount/mod.rs:36:6 | 36 | impl<'a> Model for Amount<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 36 - impl<'a> Model for Amount<'a> {} 36 + impl Model for Amount<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/amount/mod.rs#L25
warning: the following explicit lifetimes could be elided: 'a --> src/models/amount/mod.rs:25:6 | 25 | impl<'a> TryInto<BigDecimal> for Amount<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 25 - impl<'a> TryInto<BigDecimal> for Amount<'a> { 25 + impl TryInto<BigDecimal> for Amount<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/amount/xrp_amount.rs#L132
warning: the following explicit lifetimes could be elided: 'a --> src/models/amount/xrp_amount.rs:132:6 | 132 | impl<'a> Ord for XRPAmount<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 132 - impl<'a> Ord for XRPAmount<'a> { 132 + impl Ord for XRPAmount<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/amount/xrp_amount.rs#L126
warning: the following explicit lifetimes could be elided: 'a --> src/models/amount/xrp_amount.rs:126:6 | 126 | impl<'a> PartialOrd for XRPAmount<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 126 - impl<'a> PartialOrd for XRPAmount<'a> { 126 + impl PartialOrd for XRPAmount<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/amount/xrp_amount.rs#L110
warning: the following explicit lifetimes could be elided: 'a --> src/models/amount/xrp_amount.rs:110:6 | 110 | impl<'a> TryInto<BigDecimal> for XRPAmount<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 110 - impl<'a> TryInto<BigDecimal> for XRPAmount<'a> { 110 + impl TryInto<BigDecimal> for XRPAmount<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/amount/xrp_amount.rs#L102
warning: the following explicit lifetimes could be elided: 'a --> src/models/amount/xrp_amount.rs:102:6 | 102 | impl<'a> TryInto<u32> for XRPAmount<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 102 - impl<'a> TryInto<u32> for XRPAmount<'a> { 102 + impl TryInto<u32> for XRPAmount<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/amount/xrp_amount.rs#L94
warning: the following explicit lifetimes could be elided: 'a --> src/models/amount/xrp_amount.rs:94:6 | 94 | impl<'a> TryInto<f64> for XRPAmount<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 94 - impl<'a> TryInto<f64> for XRPAmount<'a> { 94 + impl TryInto<f64> for XRPAmount<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/amount/xrp_amount.rs#L80
warning: the following explicit lifetimes could be elided: 'a --> src/models/amount/xrp_amount.rs:80:6 | 80 | impl<'a> TryFrom<Value> for XRPAmount<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 80 - impl<'a> TryFrom<Value> for XRPAmount<'a> { 80 + impl TryFrom<Value> for XRPAmount<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/amount/xrp_amount.rs#L74
warning: the following explicit lifetimes could be elided: 'a --> src/models/amount/xrp_amount.rs:74:6 | 74 | impl<'a> From<u32> for XRPAmount<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 74 - impl<'a> From<u32> for XRPAmount<'a> { 74 + impl From<u32> for XRPAmount<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/amount/xrp_amount.rs#L68
warning: the following explicit lifetimes could be elided: 'a --> src/models/amount/xrp_amount.rs:68:6 | 68 | impl<'a> From<f64> for XRPAmount<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 68 - impl<'a> From<f64> for XRPAmount<'a> { 68 + impl From<f64> for XRPAmount<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/amount/xrp_amount.rs#L62
warning: the following explicit lifetimes could be elided: 'a --> src/models/amount/xrp_amount.rs:62:6 | 62 | impl<'a> From<BigDecimal> for XRPAmount<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 62 - impl<'a> From<BigDecimal> for XRPAmount<'a> { 62 + impl From<BigDecimal> for XRPAmount<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/amount/xrp_amount.rs#L56
warning: the following explicit lifetimes could be elided: 'a --> src/models/amount/xrp_amount.rs:56:6 | 56 | impl<'a> From<String> for XRPAmount<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 56 - impl<'a> From<String> for XRPAmount<'a> { 56 + impl From<String> for XRPAmount<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/amount/xrp_amount.rs#L19
warning: the following explicit lifetimes could be elided: 'a --> src/models/amount/xrp_amount.rs:19:6 | 19 | impl<'a> Model for XRPAmount<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 19 - impl<'a> Model for XRPAmount<'a> {} 19 + impl Model for XRPAmount<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/amount/issued_currency_amount.rs#L41
warning: the following explicit lifetimes could be elided: 'a --> src/models/amount/issued_currency_amount.rs:41:6 | 41 | impl<'a> Ord for IssuedCurrencyAmount<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 41 - impl<'a> Ord for IssuedCurrencyAmount<'a> { 41 + impl Ord for IssuedCurrencyAmount<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/amount/issued_currency_amount.rs#L35
warning: the following explicit lifetimes could be elided: 'a --> src/models/amount/issued_currency_amount.rs:35:6 | 35 | impl<'a> PartialOrd for IssuedCurrencyAmount<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 35 - impl<'a> PartialOrd for IssuedCurrencyAmount<'a> { 35 + impl PartialOrd for IssuedCurrencyAmount<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/amount/issued_currency_amount.rs#L27
warning: the following explicit lifetimes could be elided: 'a --> src/models/amount/issued_currency_amount.rs:27:6 | 27 | impl<'a> TryInto<BigDecimal> for IssuedCurrencyAmount<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 27 - impl<'a> TryInto<BigDecimal> for IssuedCurrencyAmount<'a> { 27 + impl TryInto<BigDecimal> for IssuedCurrencyAmount<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/amount/issued_currency_amount.rs#L15
warning: the following explicit lifetimes could be elided: 'a --> src/models/amount/issued_currency_amount.rs:15:6 | 15 | impl<'a> Model for IssuedCurrencyAmount<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 15 - impl<'a> Model for IssuedCurrencyAmount<'a> {} 15 + impl Model for IssuedCurrencyAmount<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/transactions/trust_set.rs#L73
warning: the following explicit lifetimes could be elided: 'a --> src/models/transactions/trust_set.rs:73:6 | 73 | impl<'a> Model for TrustSet<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 73 - impl<'a> Model for TrustSet<'a> {} 73 + impl Model for TrustSet<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/transactions/ticket_create.rs#L42
warning: the following explicit lifetimes could be elided: 'a --> src/models/transactions/ticket_create.rs:42:6 | 42 | impl<'a> Model for TicketCreate<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 42 - impl<'a> Model for TicketCreate<'a> {} 42 + impl Model for TicketCreate<'_> {} |
useless conversion to the same type: `alloc::string::String`: src/models/transactions/signer_list_set.rs#L136
warning: useless conversion to the same type: `alloc::string::String` --> src/models/transactions/signer_list_set.rs:136:28 | 136 | found: account.into(), | ^^^^^^^^^^^^^^ help: consider removing `.into()`: `account` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
the following explicit lifetimes could be elided: 'a: src/models/transactions/signer_list_set.rs#L89
warning: the following explicit lifetimes could be elided: 'a --> src/models/transactions/signer_list_set.rs:89:6 | 89 | impl<'a> SignerListSetError for SignerListSet<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 89 - impl<'a> SignerListSetError for SignerListSet<'a> { 89 + impl SignerListSetError for SignerListSet<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/transactions/signer_list_set.rs#L66
warning: the following explicit lifetimes could be elided: 'a --> src/models/transactions/signer_list_set.rs:66:6 | 66 | impl<'a> Model for SignerListSet<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 66 - impl<'a> Model for SignerListSet<'a> { 66 + impl Model for SignerListSet<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/transactions/set_regular_key.rs#L48
warning: the following explicit lifetimes could be elided: 'a --> src/models/transactions/set_regular_key.rs:48:6 | 48 | impl<'a> Model for SetRegularKey<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 48 - impl<'a> Model for SetRegularKey<'a> {} 48 + impl Model for SetRegularKey<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/transactions/pseudo_transactions/unl_modify.rs#L51
warning: the following explicit lifetimes could be elided: 'a --> src/models/transactions/pseudo_transactions/unl_modify.rs:51:6 | 51 | impl<'a> Model for UNLModify<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 51 - impl<'a> Model for UNLModify<'a> {} 51 + impl Model for UNLModify<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/transactions/pseudo_transactions/set_fee.rs#L42
warning: the following explicit lifetimes could be elided: 'a --> src/models/transactions/pseudo_transactions/set_fee.rs:42:6 | 42 | impl<'a> Model for SetFee<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 42 - impl<'a> Model for SetFee<'a> {} 42 + impl Model for SetFee<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/transactions/pseudo_transactions/enable_amendment.rs#L53
warning: the following explicit lifetimes could be elided: 'a --> src/models/transactions/pseudo_transactions/enable_amendment.rs:53:6 | 53 | impl<'a> Model for EnableAmendment<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 53 - impl<'a> Model for EnableAmendment<'a> {} 53 + impl Model for EnableAmendment<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/transactions/payment_channel_fund.rs#L53
warning: the following explicit lifetimes could be elided: 'a --> src/models/transactions/payment_channel_fund.rs:53:6 | 53 | impl<'a> Model for PaymentChannelFund<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 53 - impl<'a> Model for PaymentChannelFund<'a> {} 53 + impl Model for PaymentChannelFund<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/transactions/payment_channel_create.rs#L61
warning: the following explicit lifetimes could be elided: 'a --> src/models/transactions/payment_channel_create.rs:61:6 | 61 | impl<'a> Model for PaymentChannelCreate<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 61 - impl<'a> Model for PaymentChannelCreate<'a> {} 61 + impl Model for PaymentChannelCreate<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/transactions/payment_channel_claim.rs#L91
warning: the following explicit lifetimes could be elided: 'a --> src/models/transactions/payment_channel_claim.rs:91:6 | 91 | impl<'a> Model for PaymentChannelClaim<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 91 - impl<'a> Model for PaymentChannelClaim<'a> {} 91 + impl Model for PaymentChannelClaim<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/transactions/payment.rs#L118
warning: the following explicit lifetimes could be elided: 'a --> src/models/transactions/payment.rs:118:6 | 118 | impl<'a> PaymentError for Payment<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 118 - impl<'a> PaymentError for Payment<'a> { 118 + impl PaymentError for Payment<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/transactions/offer_create.rs#L82
warning: the following explicit lifetimes could be elided: 'a --> src/models/transactions/offer_create.rs:82:6 | 82 | impl<'a> Model for OfferCreate<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 82 - impl<'a> Model for OfferCreate<'a> {} 82 + impl Model for OfferCreate<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/transactions/offer_cancel.rs#L44
warning: the following explicit lifetimes could be elided: 'a --> src/models/transactions/offer_cancel.rs:44:6 | 44 | impl<'a> Model for OfferCancel<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 44 - impl<'a> Model for OfferCancel<'a> {} 44 + impl Model for OfferCancel<'_> {} |
useless conversion to the same type: `models::exceptions::XRPLModelException`: src/models/transactions/nftoken_mint.rs#L155
warning: useless conversion to the same type: `models::exceptions::XRPLModelException` --> src/models/transactions/nftoken_mint.rs:155:21 | 155 | Err(XRPLModelException::ValueTooLong { | _____________________^ 156 | | field: "uri".into(), 157 | | max: MAX_URI_LENGTH, 158 | | found: uri.len(), 159 | | } 160 | | .into()) | |_______________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion help: consider removing `.into()` | 155 ~ Err(XRPLModelException::ValueTooLong { 156 + field: "uri".into(), 157 + max: MAX_URI_LENGTH, 158 + found: uri.len(), 159 ~ }) |
useless conversion to the same type: `models::exceptions::XRPLModelException`: src/models/transactions/nftoken_mint.rs#L138
warning: useless conversion to the same type: `models::exceptions::XRPLModelException` --> src/models/transactions/nftoken_mint.rs:138:21 | 138 | Err(XRPLModelException::ValueTooHigh { | _____________________^ 139 | | field: "transfer_fee".into(), 140 | | max: MAX_TRANSFER_FEE, 141 | | found: transfer_fee, 142 | | } 143 | | .into()) | |_______________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion help: consider removing `.into()` | 138 ~ Err(XRPLModelException::ValueTooHigh { 139 + field: "transfer_fee".into(), 140 + max: MAX_TRANSFER_FEE, 141 + found: transfer_fee, 142 ~ }) |
useless conversion to the same type: `models::exceptions::XRPLModelException`: src/models/transactions/nftoken_mint.rs#L122
warning: useless conversion to the same type: `models::exceptions::XRPLModelException` --> src/models/transactions/nftoken_mint.rs:122:21 | 122 | Err(XRPLModelException::ValueEqualsValue { | _____________________^ 123 | | field1: "issuer".into(), 124 | | field2: "account".into(), 125 | | } 126 | | .into()) | |_______________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion help: consider removing `.into()` | 122 ~ Err(XRPLModelException::ValueEqualsValue { 123 + field1: "issuer".into(), 124 + field2: "account".into(), 125 ~ }) |
the following explicit lifetimes could be elided: 'a: src/models/transactions/nftoken_mint.rs#L118
warning: the following explicit lifetimes could be elided: 'a --> src/models/transactions/nftoken_mint.rs:118:6 | 118 | impl<'a> NFTokenMintError for NFTokenMint<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 118 - impl<'a> NFTokenMintError for NFTokenMint<'a> { 118 + impl NFTokenMintError for NFTokenMint<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/transactions/nftoken_mint.rs#L90
warning: the following explicit lifetimes could be elided: 'a --> src/models/transactions/nftoken_mint.rs:90:6 | 90 | impl<'a> Model for NFTokenMint<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 90 - impl<'a> Model for NFTokenMint<'a> { 90 + impl Model for NFTokenMint<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/transactions/nftoken_create_offer.rs#L109
warning: the following explicit lifetimes could be elided: 'a --> src/models/transactions/nftoken_create_offer.rs:109:6 | 109 | impl<'a> NFTokenCreateOfferError for NFTokenCreateOffer<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 109 - impl<'a> NFTokenCreateOfferError for NFTokenCreateOffer<'a> { 109 + impl NFTokenCreateOfferError for NFTokenCreateOffer<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/transactions/nftoken_cancel_offer.rs#L70
warning: the following explicit lifetimes could be elided: 'a --> src/models/transactions/nftoken_cancel_offer.rs:70:6 | 70 | impl<'a> NFTokenCancelOfferError for NFTokenCancelOffer<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 70 - impl<'a> NFTokenCancelOfferError for NFTokenCancelOffer<'a> { 70 + impl NFTokenCancelOfferError for NFTokenCancelOffer<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/transactions/nftoken_burn.rs#L49
warning: the following explicit lifetimes could be elided: 'a --> src/models/transactions/nftoken_burn.rs:49:6 | 49 | impl<'a> Model for NFTokenBurn<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 49 - impl<'a> Model for NFTokenBurn<'a> {} 49 + impl Model for NFTokenBurn<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/transactions/nftoken_accept_offer.rs#L80
warning: the following explicit lifetimes could be elided: 'a --> src/models/transactions/nftoken_accept_offer.rs:80:6 | 80 | impl<'a> NFTokenAcceptOfferError for NFTokenAcceptOffer<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 80 - impl<'a> NFTokenAcceptOfferError for NFTokenAcceptOffer<'a> { 80 + impl NFTokenAcceptOfferError for NFTokenAcceptOffer<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/transactions/escrow_finish.rs#L69
warning: the following explicit lifetimes could be elided: 'a --> src/models/transactions/escrow_finish.rs:69:6 | 69 | impl<'a> EscrowFinishError for EscrowFinish<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 69 - impl<'a> EscrowFinishError for EscrowFinish<'a> { 69 + impl EscrowFinishError for EscrowFinish<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/transactions/escrow_create.rs#L79
warning: the following explicit lifetimes could be elided: 'a --> src/models/transactions/escrow_create.rs:79:6 | 79 | impl<'a> EscrowCreateError for EscrowCreate<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 79 - impl<'a> EscrowCreateError for EscrowCreate<'a> { 79 + impl EscrowCreateError for EscrowCreate<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/transactions/escrow_cancel.rs#L41
warning: the following explicit lifetimes could be elided: 'a --> src/models/transactions/escrow_cancel.rs:41:6 | 41 | impl<'a> Model for EscrowCancel<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 41 - impl<'a> Model for EscrowCancel<'a> {} 41 + impl Model for EscrowCancel<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/transactions/deposit_preauth.rs#L61
warning: the following explicit lifetimes could be elided: 'a --> src/models/transactions/deposit_preauth.rs:61:6 | 61 | impl<'a> DepositPreauthError for DepositPreauth<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 61 - impl<'a> DepositPreauthError for DepositPreauth<'a> { 61 + impl DepositPreauthError for DepositPreauth<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/transactions/check_create.rs#L53
warning: the following explicit lifetimes could be elided: 'a --> src/models/transactions/check_create.rs:53:6 | 53 | impl<'a> Model for CheckCreate<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 53 - impl<'a> Model for CheckCreate<'a> {} 53 + impl Model for CheckCreate<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/transactions/check_cash.rs#L70
warning: the following explicit lifetimes could be elided: 'a --> src/models/transactions/check_cash.rs:70:6 | 70 | impl<'a> CheckCashError for CheckCash<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 70 - impl<'a> CheckCashError for CheckCash<'a> { 70 + impl CheckCashError for CheckCash<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/transactions/check_cancel.rs#L42
warning: the following explicit lifetimes could be elided: 'a --> src/models/transactions/check_cancel.rs:42:6 | 42 | impl<'a> Model for CheckCancel<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 42 - impl<'a> Model for CheckCancel<'a> {} 42 + impl Model for CheckCancel<'_> {} |
useless conversion to the same type: `&[&str]`: src/models/transactions/amm_deposit.rs#L76
warning: useless conversion to the same type: `&[&str]` --> src/models/transactions/amm_deposit.rs:76:17 | 76 | ["lp_token_out", "amount"].as_ref().into(), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `["lp_token_out", "amount"].as_ref()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
the following explicit lifetimes could be elided: 'a: src/models/transactions/account_set.rs#L152
warning: the following explicit lifetimes could be elided: 'a --> src/models/transactions/account_set.rs:152:6 | 152 | impl<'a> AccountSetError for AccountSet<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 152 - impl<'a> AccountSetError for AccountSet<'a> { 152 + impl AccountSetError for AccountSet<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/transactions/account_set.rs#L122
warning: the following explicit lifetimes could be elided: 'a --> src/models/transactions/account_set.rs:122:6 | 122 | impl<'a> Model for AccountSet<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 122 - impl<'a> Model for AccountSet<'a> { 122 + impl Model for AccountSet<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/transactions/account_delete.rs#L47
warning: the following explicit lifetimes could be elided: 'a --> src/models/transactions/account_delete.rs:47:6 | 47 | impl<'a> Model for AccountDelete<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 47 - impl<'a> Model for AccountDelete<'a> {} 47 + impl Model for AccountDelete<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/results/mod.rs#L311
warning: the following explicit lifetimes could be elided: 'a --> src/models/results/mod.rs:311:6 | 311 | impl<'a> TryInto<Value> for XRPLResult<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 311 - impl<'a> TryInto<Value> for XRPLResult<'a> { 311 + impl TryInto<Value> for XRPLResult<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/results/mod.rs#L249
warning: the following explicit lifetimes could be elided: 'a --> src/models/results/mod.rs:249:6 | 249 | impl<'a> From<XRPLOtherResult> for XRPLResult<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 249 - impl<'a> From<XRPLOtherResult> for XRPLResult<'a> { 249 + impl From<XRPLOtherResult> for XRPLResult<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/results/mod.rs#L243
warning: the following explicit lifetimes could be elided: 'a --> src/models/results/mod.rs:243:6 | 243 | impl<'a> From<Value> for XRPLResult<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 243 - impl<'a> From<Value> for XRPLResult<'a> { 243 + impl From<Value> for XRPLResult<'_> { |
large size difference between variants: src/models/results/mod.rs#L156
warning: large size difference between variants --> src/models/results/mod.rs:156:1 | 156 | / pub enum XRPLResult<'a> { 157 | | AccountChannels(account_channels::AccountChannels<'a>), 158 | | AccountInfo(account_info::AccountInfo<'a>), | | ------------------------------------------ the second-largest variant contains at least 520 bytes 159 | | AccountCurrencies(account_currencies::AccountCurrencies<'a>), ... | 185 | | ServerState(server_state::ServerState<'a>), | | ------------------------------------------ the largest variant contains at least 792 bytes ... | 193 | | Other(XRPLOtherResult), 194 | | } | |_^ the entire enum is at least 0 bytes | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant = note: `#[warn(clippy::large_enum_variant)]` on by default help: consider boxing the large fields to reduce the total size of the enum | 185 | ServerState(Box<server_state::ServerState<'a>>), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
the following explicit lifetimes could be elided: 'a: src/models/results/gateway_balances.rs#L46
warning: the following explicit lifetimes could be elided: 'a --> src/models/results/gateway_balances.rs:46:6 | 46 | impl<'a> Default for AssetBalance<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 46 - impl<'a> Default for AssetBalance<'a> { 46 + impl Default for AssetBalance<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/requests/unsubscribe.rs#L63
warning: the following explicit lifetimes could be elided: 'a --> src/models/requests/unsubscribe.rs:63:6 | 63 | impl<'a> Model for Unsubscribe<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 63 - impl<'a> Model for Unsubscribe<'a> {} 63 + impl Model for Unsubscribe<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/requests/tx.rs#L37
warning: the following explicit lifetimes could be elided: 'a --> src/models/requests/tx.rs:37:6 | 37 | impl<'a> Model for Tx<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 37 - impl<'a> Model for Tx<'a> {} 37 + impl Model for Tx<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/requests/transaction_entry.rs#L32
warning: the following explicit lifetimes could be elided: 'a --> src/models/requests/transaction_entry.rs:32:6 | 32 | impl<'a> Model for TransactionEntry<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 32 - impl<'a> Model for TransactionEntry<'a> {} 32 + impl Model for TransactionEntry<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/requests/subscribe.rs#L78
warning: the following explicit lifetimes could be elided: 'a --> src/models/requests/subscribe.rs:78:6 | 78 | impl<'a> Model for Subscribe<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 78 - impl<'a> Model for Subscribe<'a> {} 78 + impl Model for Subscribe<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/requests/submit_multisigned.rs#L31
warning: the following explicit lifetimes could be elided: 'a --> src/models/requests/submit_multisigned.rs:31:6 | 31 | impl<'a> Model for SubmitMultisigned<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 31 - impl<'a> Model for SubmitMultisigned<'a> {} 31 + impl Model for SubmitMultisigned<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/requests/submit.rs#L50
warning: the following explicit lifetimes could be elided: 'a --> src/models/requests/submit.rs:50:6 | 50 | impl<'a> Model for Submit<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 50 - impl<'a> Model for Submit<'a> {} 50 + impl Model for Submit<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/requests/server_state.rs#L29
warning: the following explicit lifetimes could be elided: 'a --> src/models/requests/server_state.rs:29:6 | 29 | impl<'a> Model for ServerState<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 29 - impl<'a> Model for ServerState<'a> {} 29 + impl Model for ServerState<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/requests/server_info.rs#L23
warning: the following explicit lifetimes could be elided: 'a --> src/models/requests/server_info.rs:23:6 | 23 | impl<'a> Model for ServerInfo<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 23 - impl<'a> Model for ServerInfo<'a> {} 23 + impl Model for ServerInfo<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/requests/ripple_path_find.rs#L63
warning: the following explicit lifetimes could be elided: 'a --> src/models/requests/ripple_path_find.rs:63:6 | 63 | impl<'a> Model for RipplePathFind<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 63 - impl<'a> Model for RipplePathFind<'a> {} 63 + impl Model for RipplePathFind<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/requests/random.rs#L23
warning: the following explicit lifetimes could be elided: 'a --> src/models/requests/random.rs:23:6 | 23 | impl<'a> Model for Random<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 23 - impl<'a> Model for Random<'a> {} 23 + impl Model for Random<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/requests/ping.rs#L22
warning: the following explicit lifetimes could be elided: 'a --> src/models/requests/ping.rs:22:6 | 22 | impl<'a> Model for Ping<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 22 - impl<'a> Model for Ping<'a> {} 22 + impl Model for Ping<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/requests/path_find.rs#L91
warning: the following explicit lifetimes could be elided: 'a --> src/models/requests/path_find.rs:91:6 | 91 | impl<'a> Model for PathFind<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 91 - impl<'a> Model for PathFind<'a> {} 91 + impl Model for PathFind<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/requests/no_ripple_check.rs#L59
warning: the following explicit lifetimes could be elided: 'a --> src/models/requests/no_ripple_check.rs:59:6 | 59 | impl<'a> Model for NoRippleCheck<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 59 - impl<'a> Model for NoRippleCheck<'a> {} 59 + impl Model for NoRippleCheck<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/requests/nft_sell_offers.rs#L23
warning: the following explicit lifetimes could be elided: 'a --> src/models/requests/nft_sell_offers.rs:23:6 | 23 | impl<'a> Model for NftSellOffers<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 23 - impl<'a> Model for NftSellOffers<'a> {} 23 + impl Model for NftSellOffers<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/requests/nft_buy_offers.rs#L35
warning: the following explicit lifetimes could be elided: 'a --> src/models/requests/nft_buy_offers.rs:35:6 | 35 | impl<'a> Model for NftBuyOffers<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 35 - impl<'a> Model for NftBuyOffers<'a> {} 35 + impl Model for NftBuyOffers<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/requests/manifest.rs#L28
warning: the following explicit lifetimes could be elided: 'a --> src/models/requests/manifest.rs:28:6 | 28 | impl<'a> Model for Manifest<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 28 - impl<'a> Model for Manifest<'a> {} 28 + impl Model for Manifest<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/requests/ledger_entry.rs#L103
warning: the following explicit lifetimes could be elided: 'a --> src/models/requests/ledger_entry.rs:103:6 | 103 | impl<'a> LedgerEntryError for LedgerEntry<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 103 - impl<'a> LedgerEntryError for LedgerEntry<'a> { 103 + impl LedgerEntryError for LedgerEntry<'_> { |
question mark operator is useless here: src/models/requests/ledger_entry.rs#L99
warning: question mark operator is useless here --> src/models/requests/ledger_entry.rs:99:9 | 99 | Ok(self._get_field_error()?) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing question mark and `Ok()`: `self._get_field_error()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
the following explicit lifetimes could be elided: 'a: src/models/requests/ledger_data.rs#L37
warning: the following explicit lifetimes could be elided: 'a --> src/models/requests/ledger_data.rs:37:6 | 37 | impl<'a> Model for LedgerData<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 37 - impl<'a> Model for LedgerData<'a> {} 37 + impl Model for LedgerData<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/requests/ledger_current.rs#L23
warning: the following explicit lifetimes could be elided: 'a --> src/models/requests/ledger_current.rs:23:6 | 23 | impl<'a> Model for LedgerCurrent<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 23 - impl<'a> Model for LedgerCurrent<'a> {} 23 + impl Model for LedgerCurrent<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/requests/ledger_closed.rs#L23
warning: the following explicit lifetimes could be elided: 'a --> src/models/requests/ledger_closed.rs:23:6 | 23 | impl<'a> Model for LedgerClosed<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 23 - impl<'a> Model for LedgerClosed<'a> {} 23 + impl Model for LedgerClosed<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/requests/ledger.rs#L59
warning: the following explicit lifetimes could be elided: 'a --> src/models/requests/ledger.rs:59:6 | 59 | impl<'a> Model for Ledger<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 59 - impl<'a> Model for Ledger<'a> {} 59 + impl Model for Ledger<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/requests/gateway_balances.rs#L37
warning: the following explicit lifetimes could be elided: 'a --> src/models/requests/gateway_balances.rs:37:6 | 37 | impl<'a> Model for GatewayBalances<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 37 - impl<'a> Model for GatewayBalances<'a> {} 37 + impl Model for GatewayBalances<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/requests/fee.rs#L24
warning: the following explicit lifetimes could be elided: 'a --> src/models/requests/fee.rs:24:6 | 24 | impl<'a> Model for Fee<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 24 - impl<'a> Model for Fee<'a> {} 24 + impl Model for Fee<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/requests/deposit_authorize.rs#L31
warning: the following explicit lifetimes could be elided: 'a --> src/models/requests/deposit_authorize.rs:31:6 | 31 | impl<'a> Model for DepositAuthorized<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 31 - impl<'a> Model for DepositAuthorized<'a> {} 31 + impl Model for DepositAuthorized<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/requests/channel_verify.rs#L31
warning: the following explicit lifetimes could be elided: 'a --> src/models/requests/channel_verify.rs:31:6 | 31 | impl<'a> Model for ChannelVerify<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 31 - impl<'a> Model for ChannelVerify<'a> {} 31 + impl Model for ChannelVerify<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/requests/channel_authorize.rs#L88
warning: the following explicit lifetimes could be elided: 'a --> src/models/requests/channel_authorize.rs:88:6 | 88 | impl<'a> ChannelAuthorizeError for ChannelAuthorize<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 88 - impl<'a> ChannelAuthorizeError for ChannelAuthorize<'a> { 88 + impl ChannelAuthorizeError for ChannelAuthorize<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/requests/channel_authorize.rs#L72
warning: the following explicit lifetimes could be elided: 'a --> src/models/requests/channel_authorize.rs:72:6 | 72 | impl<'a> Model for ChannelAuthorize<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 72 - impl<'a> Model for ChannelAuthorize<'a> { 72 + impl Model for ChannelAuthorize<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/requests/book_offers.rs#L47
warning: the following explicit lifetimes could be elided: 'a --> src/models/requests/book_offers.rs:47:6 | 47 | impl<'a> Model for BookOffers<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 47 - impl<'a> Model for BookOffers<'a> {} 47 + impl Model for BookOffers<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/requests/account_tx.rs#L54
warning: the following explicit lifetimes could be elided: 'a --> src/models/requests/account_tx.rs:54:6 | 54 | impl<'a> Model for AccountTx<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 54 - impl<'a> Model for AccountTx<'a> {} 54 + impl Model for AccountTx<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/requests/account_offers.rs#L41
warning: the following explicit lifetimes could be elided: 'a --> src/models/requests/account_offers.rs:41:6 | 41 | impl<'a> Model for AccountOffers<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 41 - impl<'a> Model for AccountOffers<'a> {} 41 + impl Model for AccountOffers<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/requests/account_objects.rs#L64
warning: the following explicit lifetimes could be elided: 'a --> src/models/requests/account_objects.rs:64:6 | 64 | impl<'a> Model for AccountObjects<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 64 - impl<'a> Model for AccountObjects<'a> {} 64 + impl Model for AccountObjects<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/requests/account_nfts.rs#L30
warning: the following explicit lifetimes could be elided: 'a --> src/models/requests/account_nfts.rs:30:6 | 30 | impl<'a> Model for AccountNfts<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 30 - impl<'a> Model for AccountNfts<'a> {} 30 + impl Model for AccountNfts<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/requests/account_lines.rs#L39
warning: the following explicit lifetimes could be elided: 'a --> src/models/requests/account_lines.rs:39:6 | 39 | impl<'a> Model for AccountLines<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 39 - impl<'a> Model for AccountLines<'a> {} 39 + impl Model for AccountLines<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/requests/account_info.rs#L45
warning: the following explicit lifetimes could be elided: 'a --> src/models/requests/account_info.rs:45:6 | 45 | impl<'a> Model for AccountInfo<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 45 - impl<'a> Model for AccountInfo<'a> {} 45 + impl Model for AccountInfo<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/requests/account_currencies.rs#L38
warning: the following explicit lifetimes could be elided: 'a --> src/models/requests/account_currencies.rs:38:6 | 38 | impl<'a> Model for AccountCurrencies<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 38 - impl<'a> Model for AccountCurrencies<'a> {} 38 + impl Model for AccountCurrencies<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/requests/account_channels.rs#L62
warning: the following explicit lifetimes could be elided: 'a --> src/models/requests/account_channels.rs:62:6 | 62 | impl<'a> Model for AccountChannels<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 62 - impl<'a> Model for AccountChannels<'a> {} 62 + impl Model for AccountChannels<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/ledger/objects/mod.rs#L111
warning: the following explicit lifetimes could be elided: 'a --> src/models/ledger/objects/mod.rs:111:6 | 111 | impl<'a, T> LedgerObject<T> for CommonFields<'a, T> | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 111 - impl<'a, T> LedgerObject<T> for CommonFields<'a, T> 111 + impl<T> LedgerObject<T> for CommonFields<'_, T> |
the following explicit lifetimes could be elided: 'a: src/models/ledger/objects/ticket.rs#L43
warning: the following explicit lifetimes could be elided: 'a --> src/models/ledger/objects/ticket.rs:43:6 | 43 | impl<'a> Model for Ticket<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 43 - impl<'a> Model for Ticket<'a> {} 43 + impl Model for Ticket<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/ledger/objects/signer_list.rs#L81
warning: the following explicit lifetimes could be elided: 'a --> src/models/ledger/objects/signer_list.rs:81:6 | 81 | impl<'a> Model for SignerList<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 81 - impl<'a> Model for SignerList<'a> {} 81 + impl Model for SignerList<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/ledger/objects/ripple_state.rs#L94
warning: the following explicit lifetimes could be elided: 'a --> src/models/ledger/objects/ripple_state.rs:94:6 | 94 | impl<'a> LedgerObject<RippleStateFlag> for RippleState<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 94 - impl<'a> LedgerObject<RippleStateFlag> for RippleState<'a> { 94 + impl LedgerObject<RippleStateFlag> for RippleState<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/ledger/objects/ripple_state.rs#L92
warning: the following explicit lifetimes could be elided: 'a --> src/models/ledger/objects/ripple_state.rs:92:6 | 92 | impl<'a> Model for RippleState<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 92 - impl<'a> Model for RippleState<'a> {} 92 + impl Model for RippleState<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/ledger/objects/pay_channel.rs#L75
warning: the following explicit lifetimes could be elided: 'a --> src/models/ledger/objects/pay_channel.rs:75:6 | 75 | impl<'a> LedgerObject<NoFlags> for PayChannel<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 75 - impl<'a> LedgerObject<NoFlags> for PayChannel<'a> { 75 + impl LedgerObject<NoFlags> for PayChannel<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/ledger/objects/pay_channel.rs#L73
warning: the following explicit lifetimes could be elided: 'a --> src/models/ledger/objects/pay_channel.rs:73:6 | 73 | impl<'a> Model for PayChannel<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 73 - impl<'a> Model for PayChannel<'a> {} 73 + impl Model for PayChannel<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/ledger/objects/offer.rs#L74
warning: the following explicit lifetimes could be elided: 'a --> src/models/ledger/objects/offer.rs:74:6 | 74 | impl<'a> LedgerObject<OfferFlag> for Offer<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 74 - impl<'a> LedgerObject<OfferFlag> for Offer<'a> { 74 + impl LedgerObject<OfferFlag> for Offer<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/ledger/objects/offer.rs#L72
warning: the following explicit lifetimes could be elided: 'a --> src/models/ledger/objects/offer.rs:72:6 | 72 | impl<'a> Model for Offer<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 72 - impl<'a> Model for Offer<'a> {} 72 + impl Model for Offer<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/ledger/objects/nftoken_page.rs#L61
warning: the following explicit lifetimes could be elided: 'a --> src/models/ledger/objects/nftoken_page.rs:61:6 | 61 | impl<'a> LedgerObject<NoFlags> for NFTokenPage<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 61 - impl<'a> LedgerObject<NoFlags> for NFTokenPage<'a> { 61 + impl LedgerObject<NoFlags> for NFTokenPage<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/ledger/objects/nftoken_page.rs#L59
warning: the following explicit lifetimes could be elided: 'a --> src/models/ledger/objects/nftoken_page.rs:59:6 | 59 | impl<'a> Model for NFTokenPage<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 59 - impl<'a> Model for NFTokenPage<'a> {} 59 + impl Model for NFTokenPage<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/ledger/objects/nftoken_offer.rs#L76
warning: the following explicit lifetimes could be elided: 'a --> src/models/ledger/objects/nftoken_offer.rs:76:6 | 76 | impl<'a> LedgerObject<NFTokenOfferFlag> for NFTokenOffer<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 76 - impl<'a> LedgerObject<NFTokenOfferFlag> for NFTokenOffer<'a> { 76 + impl LedgerObject<NFTokenOfferFlag> for NFTokenOffer<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/ledger/objects/nftoken_offer.rs#L74
warning: the following explicit lifetimes could be elided: 'a --> src/models/ledger/objects/nftoken_offer.rs:74:6 | 74 | impl<'a> Model for NFTokenOffer<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 74 - impl<'a> Model for NFTokenOffer<'a> {} 74 + impl Model for NFTokenOffer<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/ledger/objects/negative_unl.rs#L57
warning: the following explicit lifetimes could be elided: 'a --> src/models/ledger/objects/negative_unl.rs:57:6 | 57 | impl<'a> LedgerObject<NoFlags> for NegativeUNL<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 57 - impl<'a> LedgerObject<NoFlags> for NegativeUNL<'a> { 57 + impl LedgerObject<NoFlags> for NegativeUNL<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/ledger/objects/negative_unl.rs#L55
warning: the following explicit lifetimes could be elided: 'a --> src/models/ledger/objects/negative_unl.rs:55:6 | 55 | impl<'a> Model for NegativeUNL<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 55 - impl<'a> Model for NegativeUNL<'a> {} 55 + impl Model for NegativeUNL<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/ledger/objects/ledger_hashes.rs#L48
warning: the following explicit lifetimes could be elided: 'a --> src/models/ledger/objects/ledger_hashes.rs:48:6 | 48 | impl<'a> Model for LedgerHashes<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 48 - impl<'a> Model for LedgerHashes<'a> {} 48 + impl Model for LedgerHashes<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/ledger/objects/fee_settings.rs#L42
warning: the following explicit lifetimes could be elided: 'a --> src/models/ledger/objects/fee_settings.rs:42:6 | 42 | impl<'a> LedgerObject<NoFlags> for FeeSettings<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 42 - impl<'a> LedgerObject<NoFlags> for FeeSettings<'a> { 42 + impl LedgerObject<NoFlags> for FeeSettings<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/ledger/objects/fee_settings.rs#L40
warning: the following explicit lifetimes could be elided: 'a --> src/models/ledger/objects/fee_settings.rs:40:6 | 40 | impl<'a> Model for FeeSettings<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 40 - impl<'a> Model for FeeSettings<'a> {} 40 + impl Model for FeeSettings<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/ledger/objects/escrow.rs#L82
warning: the following explicit lifetimes could be elided: 'a --> src/models/ledger/objects/escrow.rs:82:6 | 82 | impl<'a> LedgerObject<NoFlags> for Escrow<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 82 - impl<'a> LedgerObject<NoFlags> for Escrow<'a> { 82 + impl LedgerObject<NoFlags> for Escrow<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/ledger/objects/escrow.rs#L80
warning: the following explicit lifetimes could be elided: 'a --> src/models/ledger/objects/escrow.rs:80:6 | 80 | impl<'a> Model for Escrow<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 80 - impl<'a> Model for Escrow<'a> {} 80 + impl Model for Escrow<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/ledger/objects/directory_node.rs#L69
warning: the following explicit lifetimes could be elided: 'a --> src/models/ledger/objects/directory_node.rs:69:6 | 69 | impl<'a> LedgerObject<NoFlags> for DirectoryNode<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 69 - impl<'a> LedgerObject<NoFlags> for DirectoryNode<'a> { 69 + impl LedgerObject<NoFlags> for DirectoryNode<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/ledger/objects/directory_node.rs#L67
warning: the following explicit lifetimes could be elided: 'a --> src/models/ledger/objects/directory_node.rs:67:6 | 67 | impl<'a> Model for DirectoryNode<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 67 - impl<'a> Model for DirectoryNode<'a> {} 67 + impl Model for DirectoryNode<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/ledger/objects/deposit_preauth.rs#L46
warning: the following explicit lifetimes could be elided: 'a --> src/models/ledger/objects/deposit_preauth.rs:46:6 | 46 | impl<'a> LedgerObject<NoFlags> for DepositPreauth<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 46 - impl<'a> LedgerObject<NoFlags> for DepositPreauth<'a> { 46 + impl LedgerObject<NoFlags> for DepositPreauth<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/ledger/objects/deposit_preauth.rs#L44
warning: the following explicit lifetimes could be elided: 'a --> src/models/ledger/objects/deposit_preauth.rs:44:6 | 44 | impl<'a> Model for DepositPreauth<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 44 - impl<'a> Model for DepositPreauth<'a> {} 44 + impl Model for DepositPreauth<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/ledger/objects/check.rs#L67
warning: the following explicit lifetimes could be elided: 'a --> src/models/ledger/objects/check.rs:67:6 | 67 | impl<'a> LedgerObject<NoFlags> for Check<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 67 - impl<'a> LedgerObject<NoFlags> for Check<'a> { 67 + impl LedgerObject<NoFlags> for Check<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/ledger/objects/check.rs#L65
warning: the following explicit lifetimes could be elided: 'a --> src/models/ledger/objects/check.rs:65:6 | 65 | impl<'a> Model for Check<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 65 - impl<'a> Model for Check<'a> {} 65 + impl Model for Check<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/ledger/objects/amm.rs#L95
warning: the following explicit lifetimes could be elided: 'a --> src/models/ledger/objects/amm.rs:95:6 | 95 | impl<'a> LedgerObject<NoFlags> for AMM<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 95 - impl<'a> LedgerObject<NoFlags> for AMM<'a> { 95 + impl LedgerObject<NoFlags> for AMM<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/ledger/objects/amm.rs#L93
warning: the following explicit lifetimes could be elided: 'a --> src/models/ledger/objects/amm.rs:93:6 | 93 | impl<'a> Model for AMM<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 93 - impl<'a> Model for AMM<'a> {} 93 + impl Model for AMM<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/ledger/objects/amendments.rs#L55
warning: the following explicit lifetimes could be elided: 'a --> src/models/ledger/objects/amendments.rs:55:6 | 55 | impl<'a> LedgerObject<NoFlags> for Amendments<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 55 - impl<'a> LedgerObject<NoFlags> for Amendments<'a> { 55 + impl LedgerObject<NoFlags> for Amendments<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/ledger/objects/amendments.rs#L53
warning: the following explicit lifetimes could be elided: 'a --> src/models/ledger/objects/amendments.rs:53:6 | 53 | impl<'a> Model for Amendments<'a> {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 53 - impl<'a> Model for Amendments<'a> {} 53 + impl Model for Amendments<'_> {} |
the following explicit lifetimes could be elided: 'a: src/models/ledger/objects/account_root.rs#L124
warning: the following explicit lifetimes could be elided: 'a --> src/models/ledger/objects/account_root.rs:124:6 | 124 | impl<'a> LedgerObject<AccountRootFlag> for AccountRoot<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 124 - impl<'a> LedgerObject<AccountRootFlag> for AccountRoot<'a> { 124 + impl LedgerObject<AccountRootFlag> for AccountRoot<'_> { |
the following explicit lifetimes could be elided: 'a: src/models/ledger/objects/account_root.rs#L122
warning: the following explicit lifetimes could be elided: 'a --> src/models/ledger/objects/account_root.rs:122:6 | 122 | impl<'a> Model for AccountRoot<'a> {} | ^^ ^^ | = 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 | 122 - impl<'a> Model for AccountRoot<'a> {} 122 + impl Model for AccountRoot<'_> {} |
question mark operator is useless here: src/core/binarycodec/types/paths.rs#L370
warning: question mark operator is useless here --> src/core/binarycodec/types/paths.rs:370:9 | 370 | Ok(Path::new(Some(&buffer))?) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing question mark and `Ok()`: `Path::new(Some(&buffer))` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
question mark operator is useless here: src/core/binarycodec/types/paths.rs#L354
warning: question mark operator is useless here --> src/core/binarycodec/types/paths.rs:354:9 | 354 | Ok(Self::new(Some(&buffer))?) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing question mark and `Ok()`: `Self::new(Some(&buffer))` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
question mark operator is useless here: src/core/binarycodec/types/hash.rs#L179
warning: question mark operator is useless here --> src/core/binarycodec/types/hash.rs:179:9 | 179 | Ok(parser.read(read_length)?) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing question mark and `Ok()`: `parser.read(read_length)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark = note: `#[warn(clippy::needless_question_mark)]` on by default
useless conversion to the same type: `core::exceptions::XRPLCoreException`: src/core/binarycodec/types/amount.rs#L348
warning: useless conversion to the same type: `core::exceptions::XRPLCoreException` --> src/core/binarycodec/types/amount.rs:348:17 | 348 | / XRPLCoreException::SerdeJsonError(XRPLSerdeJsonError::UnexpectedValueType { 349 | | expected: "String/Object".into(), 350 | | found: value, 351 | | }) 352 | | .into(), | |_______________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion help: consider removing `.into()` | 348 ~ XRPLCoreException::SerdeJsonError(XRPLSerdeJsonError::UnexpectedValueType { 349 + expected: "String/Object".into(), 350 + found: value, 351 ~ }), |
redundant closure: src/core/addresscodec/mod.rs#L152
warning: redundant closure --> src/core/addresscodec/mod.rs:152:26 | 152 | .map_err(|err| XRPLAddressCodecException::VecResizeError(err))?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `XRPLAddressCodecException::VecResizeError` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
this lifetime isn't used in the function definition: src/asynch/transaction/mod.rs#L281
warning: this lifetime isn't used in the function definition --> src/asynch/transaction/mod.rs:281:33 | 281 | fn is_not_later_rippled_version<'a>(source: String, target: String) -> XRPLHelperResult<bool> { | ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes = note: `#[warn(clippy::extra_unused_lifetimes)]` on by default
useless conversion to the same type: `asynch::exceptions::XRPLHelperException`: src/asynch/transaction/mod.rs#L274
warning: useless conversion to the same type: `asynch::exceptions::XRPLHelperException` --> src/asynch/transaction/mod.rs:274:27 | 274 | Err(e) => Err(e.into()), | ^^^^^^^^ help: consider removing `.into()`: `e` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
useless conversion to the same type: `alloc::string::String`: src/asynch/transaction/submit_and_wait.rs#L97
warning: useless conversion to the same type: `alloc::string::String` --> src/asynch/transaction/submit_and_wait.rs:97:25 | 97 | / format!("{}: {}", error, response.error_message.unwrap_or("".into())) 98 | | .into(), | |___________________________________^ help: consider removing `.into()`: `format!("{}: {}", error, response.error_message.unwrap_or("".into()))` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion = note: `#[warn(clippy::useless_conversion)]` on by default
redundant closure: src/asynch/clients/websocket/websocket_base.rs#L82
warning: redundant closure --> src/asynch/clients/websocket/websocket_base.rs:82:26 | 82 | .map_err(|e| XRPLWebSocketException::MessageChannelError(e))?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `XRPLWebSocketException::MessageChannelError` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure = note: `#[warn(clippy::redundant_closure)]` on by default
unreachable statement: src/asynch/mod.rs#L25
warning: unreachable statement --> src/asynch/mod.rs:25:5 | 22 | return; | ------ any code following this expression is unreachable ... 25 | / { 26 | | embassy_time::Timer::after_secs(1).await; 27 | | return; 28 | | } | |_____^ unreachable statement | = note: `#[warn(unreachable_code)]` on by default
unneeded sub `cfg` when there is only one condition: src/lib.rs#L56
warning: unneeded sub `cfg` when there is only one condition --> src/lib.rs:56:7 | 56 | #[cfg(any(feature = "models"))] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `feature = "models"` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#non_minimal_cfg
unneeded sub `cfg` when there is only one condition: src/lib.rs#L45
warning: unneeded sub `cfg` when there is only one condition --> src/lib.rs:45:7 | 45 | #[cfg(any(feature = "models"))] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `feature = "models"` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#non_minimal_cfg = note: `#[warn(clippy::non_minimal_cfg)]` on by default
xrpl-rust
unused manifest key: dev-dependencies.anyhow.no-default-features
xrpl-rust
unused manifest key: dev-dependencies.anyhow.no-default-features
xrpl-rust: src/asynch/clients/client.rs#L5
unused import: `alloc::borrow::Cow`
xrpl-rust: src/asynch/mod.rs#L16
unused variable: `seconds`
xrpl-rust
`xrpl-rust` (lib) generated 2 warnings (run `cargo fix --lib -p xrpl-rust` to apply 1 suggestion)
xrpl-rust
unused manifest key: dev-dependencies.anyhow.no-default-features
xrpl-rust
unused manifest key: dev-dependencies.anyhow.no-default-features
xrpl-rust: src/asynch/clients/client.rs#L5
unused import: `alloc::borrow::Cow`
xrpl-rust: src/asynch/clients/websocket/mod.rs#L28
unused import: `XRPLClientException`
xrpl-rust: src/asynch/mod.rs#L16
unused variable: `seconds`
xrpl-rust
`xrpl-rust` (lib) generated 3 warnings (run `cargo fix --lib -p xrpl-rust` to apply 2 suggestions)
xrpl-rust
unused manifest key: dev-dependencies.anyhow.no-default-features
xrpl-rust
unused manifest key: dev-dependencies.anyhow.no-default-features
xrpl-rust
unused manifest key: dev-dependencies.anyhow.no-default-features
xrpl-rust
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/
xrpl-rust
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/
xrpl-rust
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/
xrpl-rust
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/
xrpl-rust
unused manifest key: dev-dependencies.anyhow.no-default-features
xrpl-rust: src/asynch/clients/client.rs#L5
unused import: `alloc::borrow::Cow`
xrpl-rust: src/asynch/clients/websocket/mod.rs#L28
unused import: `XRPLClientException`
xrpl-rust: src/asynch/mod.rs#L16
unused variable: `seconds`
xrpl-rust
`xrpl-rust` (lib) generated 3 warnings (run `cargo fix --lib -p xrpl-rust` to apply 2 suggestions)
xrpl-rust
unused manifest key: dev-dependencies.anyhow.no-default-features
xrpl-rust
unused manifest key: dev-dependencies.anyhow.no-default-features
xrpl-rust: src/asynch/clients/client.rs#L5
unused import: `alloc::borrow::Cow`
xrpl-rust: src/asynch/clients/websocket/mod.rs#L28
unused import: `XRPLClientException`
xrpl-rust: src/asynch/mod.rs#L16
unused variable: `seconds`
xrpl-rust
`xrpl-rust` (lib) generated 3 warnings (run `cargo fix --lib -p xrpl-rust` to apply 2 suggestions)
xrpl-rust
unused manifest key: dev-dependencies.anyhow.no-default-features
xrpl-rust: src/asynch/clients/client.rs#L5
unused import: `alloc::borrow::Cow`
xrpl-rust: src/asynch/clients/websocket/mod.rs#L28
unused import: `XRPLClientException`
xrpl-rust
`xrpl-rust` (lib) generated 2 warnings (run `cargo fix --lib -p xrpl-rust` to apply 2 suggestions)