Skip to content

feat: add get_seed() for stronghold #9514

feat: add get_seed() for stronghold

feat: add get_seed() for stronghold #9514

Triggered via pull request December 31, 2024 12:28
Status Success
Total duration 22m 2s
Artifacts

bindings-nodejs.yml

on: pull_request
Matrix: Test
Fit to window
Zoom out
Zoom in

Annotations

165 errors and 3 warnings
this argument is a mutable reference, but not used mutably: sdk/src/wallet/account/update.rs#L282
error: this argument is a mutable reference, but not used mutably --> sdk/src/wallet/account/update.rs:282:51 | 282 | pub(crate) async fn update_account_bech32_hrp(&mut self) -> crate::wallet::Result<()> { | ^^^^^^^^^ help: consider changing to: `&self` | = note: this is cfg-gated and may require further changes = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut
this argument is a mutable reference, but not used mutably: sdk/src/wallet/account/builder.rs#L61
error: this argument is a mutable reference, but not used mutably --> sdk/src/wallet/account/builder.rs:61:25 | 61 | pub async fn finish(&mut self) -> crate::wallet::Result<Account<S>> { | ^^^^^^^^^ help: consider changing to: `&self` | = note: this is cfg-gated and may require further changes = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut = note: `#[deny(clippy::needless_pass_by_ref_mut)]` implied by `#[deny(clippy::nursery)]`
unnecessary use of `to_vec`: sdk/src/wallet/migration/chrysalis.rs#L337
error: unnecessary use of `to_vec` --> sdk/src/wallet/migration/chrysalis.rs:337:41 | 337 | if !chrysalis_data.contains_key(&b"iota-wallet-account-indexation".to_vec()) { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `b"iota-wallet-account-indexation".as_slice()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned = note: `#[deny(clippy::unnecessary_to_owned)]` implied by `#[deny(warnings)]`
the borrowed expression implements the required traits: sdk/src/wallet/core/operations/stronghold_backup/mod.rs#L372
error: the borrowed expression implements the required traits --> sdk/src/wallet/core/operations/stronghold_backup/mod.rs:372:21 | 372 | / &self 373 | | .storage_options 374 | | .path 375 | | .clone() 376 | | .into_os_string() 377 | | .into_string() 378 | | .expect("can't convert os string"), | |__________________________________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args help: change this to | 372 ~ self 373 + .storage_options 374 + .path 375 + .clone() 376 + .into_os_string() 377 + .into_string() 378 ~ .expect("can't convert os string"), |
this `map_or` is redundant: sdk/src/wallet/core/operations/stronghold_backup/mod.rs#L297
error: this `map_or` is redundant --> sdk/src/wallet/core/operations/stronghold_backup/mod.rs:297:36 | 297 | let ignore_backup_values = ignore_if_coin_type_mismatch.map_or(false, |ignore| { | ____________________________________^ 298 | | if ignore { 299 | | read_coin_type.map_or(true, |read_coin_type| { 300 | | self.coin_type.load(Ordering::Relaxed) != read_coin_type ... | 304 | | } 305 | | }); | |__________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or help: use is_some_and instead | 297 ~ let ignore_backup_values = ignore_if_coin_type_mismatch.is_some_and(|ignore| { 298 + if ignore { 299 + read_coin_type.map_or(true, |read_coin_type| { 300 + self.coin_type.load(Ordering::Relaxed) != read_coin_type 301 + }) 302 + } else { 303 + false 304 + } 305 ~ }); |
the borrowed expression implements the required traits: sdk/src/wallet/core/operations/stronghold_backup/mod.rs#L199
error: the borrowed expression implements the required traits --> sdk/src/wallet/core/operations/stronghold_backup/mod.rs:199:21 | 199 | / &self 200 | | .storage_options 201 | | .path 202 | | .clone() 203 | | .into_os_string() 204 | | .into_string() 205 | | .expect("can't convert os string"), | |__________________________________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args help: change this to | 199 ~ self 200 + .storage_options 201 + .path 202 + .clone() 203 + .into_os_string() 204 + .into_string() 205 ~ .expect("can't convert os string"), |
this `map_or` is redundant: sdk/src/wallet/core/operations/stronghold_backup/mod.rs#L115
error: this `map_or` is redundant --> sdk/src/wallet/core/operations/stronghold_backup/mod.rs:115:36 | 115 | let ignore_backup_values = ignore_if_coin_type_mismatch.map_or(false, |ignore| { | ____________________________________^ 116 | | if ignore { 117 | | read_coin_type.map_or(true, |read_coin_type| { 118 | | self.coin_type.load(Ordering::Relaxed) != read_coin_type ... | 122 | | } 123 | | }); | |__________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or help: use is_some_and instead | 115 ~ let ignore_backup_values = ignore_if_coin_type_mismatch.is_some_and(|ignore| { 116 + if ignore { 117 + read_coin_type.map_or(true, |read_coin_type| { 118 + self.coin_type.load(Ordering::Relaxed) != read_coin_type 119 + }) 120 + } else { 121 + false 122 + } 123 ~ }); |
the borrowed expression implements the required traits: sdk/src/wallet/core/operations/stronghold_backup/stronghold_snapshot.rs#L48
error: the borrowed expression implements the required traits --> sdk/src/wallet/core/operations/stronghold_backup/stronghold_snapshot.rs:48:59 | 48 | serialized_accounts.push(serde_json::to_value(&AccountDetailsDto::from( | ___________________________________________________________^ 49 | | &*account.details().await, 50 | | ))?); | |_____________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args = note: `#[deny(clippy::needless_borrows_for_generic_args)]` implied by `#[deny(warnings)]` help: change this to | 48 ~ serialized_accounts.push(serde_json::to_value(AccountDetailsDto::from( 49 + &*account.details().await, 50 ~ ))?); |
this `map_or` is redundant: sdk/src/wallet/core/operations/address_generation.rs#L42
error: this `map_or` is redundant --> sdk/src/wallet/core/operations/address_generation.rs:42:20 | 42 | if options.as_ref().map_or(false, |o| o.ledger_nano_prompt) { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use is_some_and instead: `options.as_ref().is_some_and(|o| o.ledger_nano_prompt)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
this `map_or` is redundant: sdk/src/wallet/account/operations/transaction/input_selection.rs#L64
error: this `map_or` is redundant --> sdk/src/wallet/account/operations/transaction/input_selection.rs:64:28 | 64 | let required = mandatory_inputs.as_ref().map_or(false, |mandatory_inputs| { | ____________________________^ 65 | | mandatory_inputs.contains(&voting_output.output_id) 66 | | }); | |______________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or help: use is_some_and instead | 64 ~ let required = mandatory_inputs.as_ref().is_some_and(|mandatory_inputs| { 65 + mandatory_inputs.contains(&voting_output.output_id) 66 ~ }); |
this `map_or` is redundant: sdk/src/wallet/account/operations/syncing/outputs.rs#L46
error: this `map_or` is redundant --> sdk/src/wallet/account/operations/syncing/outputs.rs:46:33 | 46 | let remainder = account_details | _________________________________^ 47 | | .transactions 48 | | .get(output_with_meta.metadata().transaction_id()) 49 | | .map_or(false, |tx| !tx.incoming); | |_____________________________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or help: use is_some_and instead | 46 ~ let remainder = account_details 47 + .transactions 48 ~ .get(output_with_meta.metadata().transaction_id()).is_some_and(|tx| !tx.incoming); |
this `map_or` is redundant: sdk/src/wallet/account/operations/participation/mod.rs#L323
error: this `map_or` is redundant --> sdk/src/wallet/account/operations/participation/mod.rs:323:9 | 323 | / basic_output 324 | | .features() 325 | | .tag() 326 | | .map_or(false, |tag| tag.tag() == PARTICIPATION_TAG.as_bytes()) | |___________________________________________________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or help: use is_some_and instead | 323 ~ basic_output 324 + .features() 325 + .tag().is_some_and(|tag| tag.tag() == PARTICIPATION_TAG.as_bytes()) |
this `map_or` is redundant: sdk/src/wallet/account/operations/output_claiming.rs#L438
error: this `map_or` is redundant --> sdk/src/wallet/account/operations/output_claiming.rs:438:27 | 438 | let expired = unlock_conditions | ___________________________^ 439 | | .expiration() 440 | | .map_or(false, |expiration| current_time >= expiration.timestamp()); | |___________________________________________________________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or help: use is_some_and instead | 438 ~ let expired = unlock_conditions 439 ~ .expiration().is_some_and(|expiration| current_time >= expiration.timestamp()); |
usage of `HashSet::insert` after `HashSet::contains`: sdk/src/wallet/account/operations/output_claiming.rs#L361
error: usage of `HashSet::insert` after `HashSet::contains` --> sdk/src/wallet/account/operations/output_claiming.rs:361:48 | 361 | if !additional_inputs_used.contains(&output_data.output_id) { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 376 | additional_inputs_used.insert(output_data.output_id); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#set_contains_or_insert
function call inside of `unwrap_or`: sdk/src/wallet/account/operations/balance.rs#L340
error: function call inside of `unwrap_or` --> sdk/src/wallet/account/operations/balance.rs:340:80 | 340 | available: native_token.amount() - *locked_native_token_amount.unwrap_or(&U256::from(0u8)), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_else(|| &U256::from(0u8))` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_call = note: `#[deny(clippy::or_fun_call)]` implied by `#[deny(clippy::nursery)]`
unnecessary structure name repetition: sdk/src/types/mod.rs#L122
error: unnecessary structure name repetition --> sdk/src/types/mod.rs:122:24 | 122 | fn from(value: &'a ValidationParams<'a>) -> Self { | ^^^^^^^^^^^^^^^^^^^^ help: use the applicable keyword: `Self` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#use_self
unnecessary structure name repetition: sdk/src/types/mod.rs#L121
error: unnecessary structure name repetition --> sdk/src/types/mod.rs:121:19 | 121 | impl<'a> From<&'a ValidationParams<'a>> for ValidationParams<'a> { | ^^^^^^^^^^^^^^^^^^^^ help: use the applicable keyword: `Self` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#use_self
the following explicit lifetimes could be elided: 'a: sdk/src/types/mod.rs#L109
error: the following explicit lifetimes could be elided: 'a --> sdk/src/types/mod.rs:109:6 | 109 | impl<'a> From<ProtocolParameters> for ValidationParams<'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> From<ProtocolParameters> for ValidationParams<'a> { 109 + impl From<ProtocolParameters> for ValidationParams<'_> { |
the following explicit lifetimes could be elided: 'a: sdk/src/types/mod.rs#L103
error: the following explicit lifetimes could be elided: 'a --> sdk/src/types/mod.rs:103:6 | 103 | impl<'a> From<u64> for ValidationParams<'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> From<u64> for ValidationParams<'a> { 103 + impl From<u64> for ValidationParams<'_> { |
unnecessary structure name repetition: sdk/src/types/mod.rs#L66
error: unnecessary structure name repetition --> sdk/src/types/mod.rs:66:24 | 66 | fn from(value: &'a Boo<'a, T>) -> Self { | ^^^^^^^^^^ help: use the applicable keyword: `Self` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#use_self
unnecessary structure name repetition: sdk/src/types/mod.rs#L65
error: unnecessary structure name repetition --> sdk/src/types/mod.rs:65:22 | 65 | impl<'a, T> From<&'a Boo<'a, T>> for Boo<'a, T> { | ^^^^^^^^^^ help: use the applicable keyword: `Self` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#use_self = note: `#[deny(clippy::use_self)]` implied by `#[deny(clippy::nursery)]`
the following explicit lifetimes could be elided: 'a: sdk/src/types/mod.rs#L53
error: the following explicit lifetimes could be elided: 'a --> sdk/src/types/mod.rs:53:6 | 53 | impl<'a, T> From<T> for Boo<'a, T> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 53 - impl<'a, T> From<T> for Boo<'a, T> { 53 + impl<T> From<T> for Boo<'_, T> { |
the following explicit lifetimes could be elided: 'a: sdk/src/types/mod.rs#L42
error: the following explicit lifetimes could be elided: 'a --> sdk/src/types/mod.rs:42:6 | 42 | impl<'a, T> Deref for Boo<'a, T> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 42 - impl<'a, T> Deref for Boo<'a, T> { 42 + impl<T> Deref for Boo<'_, T> { |
the following explicit lifetimes could be elided: 'a: sdk/src/types/mod.rs#L36
error: the following explicit lifetimes could be elided: 'a --> sdk/src/types/mod.rs:36:6 | 36 | impl<'a, T> AsRef<T> for Boo<'a, T> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 36 - impl<'a, T> AsRef<T> for Boo<'a, T> { 36 + impl<T> AsRef<T> for Boo<'_, T> { |
the following explicit lifetimes could be elided: 'a: sdk/src/types/mod.rs#L24
error: the following explicit lifetimes could be elided: 'a --> sdk/src/types/mod.rs:24:6 | 24 | impl<'a, T> Boo<'a, T> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 24 - impl<'a, T> Boo<'a, T> { 24 + impl<T> Boo<'_, T> { |
the following explicit lifetimes could be elided: 'a: sdk/src/types/block/signature/ed25519.rs#L115
error: the following explicit lifetimes could be elided: 'a --> sdk/src/types/block/signature/ed25519.rs:115:14 | 115 | impl<'a> fmt::Debug for UnquotedStr<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 115 - impl<'a> fmt::Debug for UnquotedStr<'a> { 115 + impl fmt::Debug for UnquotedStr<'_> { |
empty doc comment: sdk/src/types/block/semantic.rs#L219
error: empty doc comment --> sdk/src/types/block/semantic.rs:219:1 | 219 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/semantic.rs#L174
error: empty doc comment --> sdk/src/types/block/semantic.rs:174:5 | 174 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/semantic.rs#L169
error: empty doc comment --> sdk/src/types/block/semantic.rs:169:5 | 169 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/semantic.rs#L167
error: empty doc comment --> sdk/src/types/block/semantic.rs:167:5 | 167 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/semantic.rs#L165
error: empty doc comment --> sdk/src/types/block/semantic.rs:165:5 | 165 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/semantic.rs#L163
error: empty doc comment --> sdk/src/types/block/semantic.rs:163:5 | 163 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/semantic.rs#L161
error: empty doc comment --> sdk/src/types/block/semantic.rs:161:5 | 161 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/semantic.rs#L159
error: empty doc comment --> sdk/src/types/block/semantic.rs:159:5 | 159 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/semantic.rs#L157
error: empty doc comment --> sdk/src/types/block/semantic.rs:157:5 | 157 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/semantic.rs#L155
error: empty doc comment --> sdk/src/types/block/semantic.rs:155:5 | 155 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/semantic.rs#L153
error: empty doc comment --> sdk/src/types/block/semantic.rs:153:5 | 153 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/semantic.rs#L151
error: empty doc comment --> sdk/src/types/block/semantic.rs:151:5 | 151 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/semantic.rs#L149
error: empty doc comment --> sdk/src/types/block/semantic.rs:149:5 | 149 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/semantic.rs#L147
error: empty doc comment --> sdk/src/types/block/semantic.rs:147:5 | 147 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/semantic.rs#L145
error: empty doc comment --> sdk/src/types/block/semantic.rs:145:5 | 145 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/semantic.rs#L143
error: empty doc comment --> sdk/src/types/block/semantic.rs:143:5 | 143 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/semantic.rs#L141
error: empty doc comment --> sdk/src/types/block/semantic.rs:141:1 | 141 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/payload/transaction/essence/regular.rs#L117
error: empty doc comment --> sdk/src/types/block/payload/transaction/essence/regular.rs:117:5 | 117 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/payload/milestone/option/mod.rs#L93
error: empty doc comment --> sdk/src/types/block/payload/milestone/option/mod.rs:93:5 | 93 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/payload/milestone/option/mod.rs#L57
error: empty doc comment --> sdk/src/types/block/payload/milestone/option/mod.rs:57:1 | 57 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/payload/milestone/option/mod.rs#L20
error: empty doc comment --> sdk/src/types/block/payload/milestone/option/mod.rs:20:1 | 20 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/payload/milestone/option/receipt/mod.rs#L165
error: empty doc comment --> sdk/src/types/block/payload/milestone/option/receipt/mod.rs:165:5 | 165 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/payload/milestone/option/parameters.rs#L77
error: empty doc comment --> sdk/src/types/block/payload/milestone/option/parameters.rs:77:5 | 77 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/payload/milestone/option/parameters.rs#L18
error: empty doc comment --> sdk/src/types/block/payload/milestone/option/parameters.rs:18:1 | 18 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/payload/milestone/mod.rs#L11
error: empty doc comment --> sdk/src/types/block/payload/milestone/mod.rs:11:1 | 11 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/mod.rs#L353
error: empty doc comment --> sdk/src/types/block/output/mod.rs:353:5 | 353 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
this `map_or` is redundant: sdk/src/types/block/output/unlock_condition/mod.rs#L437
error: this `map_or` is redundant --> sdk/src/types/block/output/unlock_condition/mod.rs:437:9 | 437 | / self.expiration() 438 | | .map_or(false, |expiration| milestone_timestamp >= expiration.timestamp()) | |______________________________________________________________________________________^ help: use is_some_and instead: `self.expiration().is_some_and(|expiration| milestone_timestamp >= expiration.timestamp())` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
this `map_or` is redundant: sdk/src/types/block/output/unlock_condition/mod.rs#L430
error: this `map_or` is redundant --> sdk/src/types/block/output/unlock_condition/mod.rs:430:9 | 430 | / self.timelock() 431 | | .map_or(false, |timelock| milestone_timestamp < timelock.timestamp()) | |_________________________________________________________________________________^ help: use is_some_and instead: `self.timelock().is_some_and(|timelock| milestone_timestamp < timelock.timestamp())` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
empty doc comment: sdk/src/types/block/output/unlock_condition/mod.rs#L334
error: empty doc comment --> sdk/src/types/block/output/unlock_condition/mod.rs:334:5 | 334 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/unlock_condition/mod.rs#L298
error: empty doc comment --> sdk/src/types/block/output/unlock_condition/mod.rs:298:1 | 298 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/unlock_condition/mod.rs#L34
error: empty doc comment --> sdk/src/types/block/output/unlock_condition/mod.rs:34:1 | 34 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/mod.rs#L28
error: empty doc comment --> sdk/src/types/block/output/mod.rs:28:1 | 28 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/nft.rs#L356
error: empty doc comment --> sdk/src/types/block/output/nft.rs:356:5 | 356 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/nft.rs#L345
error: empty doc comment --> sdk/src/types/block/output/nft.rs:345:5 | 345 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/nft.rs#L335
error: empty doc comment --> sdk/src/types/block/output/nft.rs:335:5 | 335 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/nft.rs#L329
error: empty doc comment --> sdk/src/types/block/output/nft.rs:329:5 | 329 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/nft.rs#L323
error: empty doc comment --> sdk/src/types/block/output/nft.rs:323:5 | 323 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/nft.rs#L317
error: empty doc comment --> sdk/src/types/block/output/nft.rs:317:5 | 317 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/nft.rs#L305
error: empty doc comment --> sdk/src/types/block/output/nft.rs:305:5 | 305 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/nft.rs#L299
error: empty doc comment --> sdk/src/types/block/output/nft.rs:299:5 | 299 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/nft.rs#L293
error: empty doc comment --> sdk/src/types/block/output/nft.rs:293:5 | 293 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/nft.rs#L221
error: empty doc comment --> sdk/src/types/block/output/nft.rs:221:5 | 221 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/nft.rs#L188
error: empty doc comment --> sdk/src/types/block/output/nft.rs:188:5 | 188 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/nft.rs#L90
error: empty doc comment --> sdk/src/types/block/output/nft.rs:90:5 | 90 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/nft.rs#L83
error: empty doc comment --> sdk/src/types/block/output/nft.rs:83:5 | 83 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/nft.rs#L34
error: empty doc comment --> sdk/src/types/block/output/nft.rs:34:1 | 34 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/mod.rs#L26
error: empty doc comment --> sdk/src/types/block/output/mod.rs:26:1 | 26 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/foundry.rs#L389
error: empty doc comment --> sdk/src/types/block/output/foundry.rs:389:5 | 389 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/foundry.rs#L383
error: empty doc comment --> sdk/src/types/block/output/foundry.rs:383:5 | 383 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/foundry.rs#L363
error: empty doc comment --> sdk/src/types/block/output/foundry.rs:363:5 | 363 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/foundry.rs#L357
error: empty doc comment --> sdk/src/types/block/output/foundry.rs:357:5 | 357 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/foundry.rs#L351
error: empty doc comment --> sdk/src/types/block/output/foundry.rs:351:5 | 351 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/foundry.rs#L345
error: empty doc comment --> sdk/src/types/block/output/foundry.rs:345:5 | 345 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/foundry.rs#L339
error: empty doc comment --> sdk/src/types/block/output/foundry.rs:339:5 | 339 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/foundry.rs#L333
error: empty doc comment --> sdk/src/types/block/output/foundry.rs:333:5 | 333 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/foundry.rs#L327
error: empty doc comment --> sdk/src/types/block/output/foundry.rs:327:5 | 327 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/foundry.rs#L321
error: empty doc comment --> sdk/src/types/block/output/foundry.rs:321:5 | 321 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/foundry.rs#L245
error: empty doc comment --> sdk/src/types/block/output/foundry.rs:245:5 | 245 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/foundry.rs#L207
error: empty doc comment --> sdk/src/types/block/output/foundry.rs:207:5 | 207 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/foundry.rs#L102
error: empty doc comment --> sdk/src/types/block/output/foundry.rs:102:5 | 102 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/foundry.rs#L95
error: empty doc comment --> sdk/src/types/block/output/foundry.rs:95:5 | 95 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/foundry.rs#L36
error: empty doc comment --> sdk/src/types/block/output/foundry.rs:36:1 | 36 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/mod.rs#L24
error: empty doc comment --> sdk/src/types/block/output/mod.rs:24:1 | 24 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/feature/mod.rs#L194
error: empty doc comment --> sdk/src/types/block/output/feature/mod.rs:194:5 | 194 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/feature/mod.rs#L161
error: empty doc comment --> sdk/src/types/block/output/feature/mod.rs:161:1 | 161 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/feature/mod.rs#L24
error: empty doc comment --> sdk/src/types/block/output/feature/mod.rs:24:1 | 24 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/mod.rs#L22
error: empty doc comment --> sdk/src/types/block/output/mod.rs:22:1 | 22 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/basic.rs#L278
error: empty doc comment --> sdk/src/types/block/output/basic.rs:278:5 | 278 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/basic.rs#L268
error: empty doc comment --> sdk/src/types/block/output/basic.rs:268:5 | 268 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/basic.rs#L262
error: empty doc comment --> sdk/src/types/block/output/basic.rs:262:5 | 262 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/basic.rs#L256
error: empty doc comment --> sdk/src/types/block/output/basic.rs:256:5 | 256 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/basic.rs#L250
error: empty doc comment --> sdk/src/types/block/output/basic.rs:250:5 | 250 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/basic.rs#L244
error: empty doc comment --> sdk/src/types/block/output/basic.rs:244:5 | 244 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/basic.rs#L173
error: empty doc comment --> sdk/src/types/block/output/basic.rs:173:5 | 173 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/basic.rs#L146
error: empty doc comment --> sdk/src/types/block/output/basic.rs:146:5 | 146 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/basic.rs#L82
error: empty doc comment --> sdk/src/types/block/output/basic.rs:82:5 | 82 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/basic.rs#L75
error: empty doc comment --> sdk/src/types/block/output/basic.rs:75:5 | 75 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/basic.rs#L28
error: empty doc comment --> sdk/src/types/block/output/basic.rs:28:1 | 28 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/mod.rs#L20
error: empty doc comment --> sdk/src/types/block/output/mod.rs:20:1 | 20 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/alias.rs#L470
error: empty doc comment --> sdk/src/types/block/output/alias.rs:470:5 | 470 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/alias.rs#L459
error: empty doc comment --> sdk/src/types/block/output/alias.rs:459:5 | 459 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/alias.rs#L449
error: empty doc comment --> sdk/src/types/block/output/alias.rs:449:5 | 449 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/alias.rs#L439
error: empty doc comment --> sdk/src/types/block/output/alias.rs:439:5 | 439 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/alias.rs#L433
error: empty doc comment --> sdk/src/types/block/output/alias.rs:433:5 | 433 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/alias.rs#L427
error: empty doc comment --> sdk/src/types/block/output/alias.rs:427:5 | 427 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/alias.rs#L421
error: empty doc comment --> sdk/src/types/block/output/alias.rs:421:5 | 421 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/alias.rs#L415
error: empty doc comment --> sdk/src/types/block/output/alias.rs:415:5 | 415 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/alias.rs#L409
error: empty doc comment --> sdk/src/types/block/output/alias.rs:409:5 | 409 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/alias.rs#L403
error: empty doc comment --> sdk/src/types/block/output/alias.rs:403:5 | 403 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/alias.rs#L391
error: empty doc comment --> sdk/src/types/block/output/alias.rs:391:5 | 391 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/alias.rs#L385
error: empty doc comment --> sdk/src/types/block/output/alias.rs:385:5 | 385 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/alias.rs#L379
error: empty doc comment --> sdk/src/types/block/output/alias.rs:379:5 | 379 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/alias.rs#L296
error: empty doc comment --> sdk/src/types/block/output/alias.rs:296:5 | 296 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/alias.rs#L249
error: empty doc comment --> sdk/src/types/block/output/alias.rs:249:5 | 249 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/alias.rs#L158
error: empty doc comment --> sdk/src/types/block/output/alias.rs:158:5 | 158 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/alias.rs#L151
error: empty doc comment --> sdk/src/types/block/output/alias.rs:151:5 | 151 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/alias.rs#L144
error: empty doc comment --> sdk/src/types/block/output/alias.rs:144:5 | 144 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/alias.rs#L130
error: empty doc comment --> sdk/src/types/block/output/alias.rs:130:5 | 130 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/alias.rs#L123
error: empty doc comment --> sdk/src/types/block/output/alias.rs:123:5 | 123 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/alias.rs#L68
error: empty doc comment --> sdk/src/types/block/output/alias.rs:68:1 | 68 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/mod.rs#L18
error: empty doc comment --> sdk/src/types/block/output/mod.rs:18:1 | 18 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/token_scheme/mod.rs#L14
error: empty doc comment --> sdk/src/types/block/output/token_scheme/mod.rs:14:5 | 14 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/token_scheme/mod.rs#L9
error: empty doc comment --> sdk/src/types/block/output/token_scheme/mod.rs:9:1 | 9 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/token_scheme/simple.rs#L14
error: empty doc comment --> sdk/src/types/block/output/token_scheme/simple.rs:14:1 | 14 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/state_transition.rs#L42
error: empty doc comment --> sdk/src/types/block/output/state_transition.rs:42:5 | 42 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/state_transition.rs#L35
error: empty doc comment --> sdk/src/types/block/output/state_transition.rs:35:5 | 35 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/state_transition.rs#L32
error: empty doc comment --> sdk/src/types/block/output/state_transition.rs:32:5 | 32 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/state_transition.rs#L30
error: empty doc comment --> sdk/src/types/block/output/state_transition.rs:30:1 | 30 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/state_transition.rs#L6
error: empty doc comment --> sdk/src/types/block/output/state_transition.rs:6:1 | 6 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/nft_id.rs#L21
error: empty doc comment --> sdk/src/types/block/output/nft_id.rs:21:5 | 21 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/native_token.rs#L153
error: empty doc comment --> sdk/src/types/block/output/native_token.rs:153:1 | 153 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/native_token.rs#L17
error: empty doc comment --> sdk/src/types/block/output/native_token.rs:17:1 | 17 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/chain_id.rs#L42
error: empty doc comment --> sdk/src/types/block/output/chain_id.rs:42:5 | 42 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/chain_id.rs#L33
error: empty doc comment --> sdk/src/types/block/output/chain_id.rs:33:5 | 33 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/chain_id.rs#L16
error: empty doc comment --> sdk/src/types/block/output/chain_id.rs:16:5 | 16 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/chain_id.rs#L14
error: empty doc comment --> sdk/src/types/block/output/chain_id.rs:14:5 | 14 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/chain_id.rs#L12
error: empty doc comment --> sdk/src/types/block/output/chain_id.rs:12:5 | 12 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/chain_id.rs#L8
error: empty doc comment --> sdk/src/types/block/output/chain_id.rs:8:1 | 8 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/output/alias_id.rs#L21
error: empty doc comment --> sdk/src/types/block/output/alias_id.rs:21:5 | 21 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/core.rs#L282
error: empty doc comment --> sdk/src/types/block/core.rs:282:9 | 282 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/core.rs#L279
error: empty doc comment --> sdk/src/types/block/core.rs:279:9 | 279 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/core.rs#L277
error: empty doc comment --> sdk/src/types/block/core.rs:277:9 | 277 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/core.rs#L275
error: empty doc comment --> sdk/src/types/block/core.rs:275:9 | 275 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
empty doc comment: sdk/src/types/block/address/mod.rs#L126
error: empty doc comment --> sdk/src/types/block/address/mod.rs:126:5 | 126 | /// | ^^^ | = help: consider removing or filling it = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs = note: `#[deny(clippy::empty_docs)]` implied by `#[deny(warnings)]`
first doc comment paragraph is too long: sdk/src/types/block/macro.rs#L148
error: first doc comment paragraph is too long --> sdk/src/types/block/macro.rs:148:1 | 148 | / /// Convenience macro to work around the fact the `[bitflags]` crate does not yet support iterating over the 149 | | /// individual flags. This macro essentially creates the `[bitflags]` and puts the individual flags into an associated 150 | | /// constant `pub const ALL_FLAGS: &'static []`. | |_^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_long_first_doc_paragraph
doc list item without indentation: sdk/src/types/api/core/response.rs#L263
error: doc list item without indentation --> sdk/src/types/api/core/response.rs:263:5 | 263 | /// Returns information about a peer. | ^ | = help: if this is supposed to be its own paragraph, add a blank line = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation = note: `#[deny(clippy::doc_lazy_continuation)]` implied by `#[deny(warnings)]` help: indent this line | 263 | /// Returns information about a peer. | ++
first doc comment paragraph is too long: sdk/src/client/secret/ledger_nano.rs#L418
error: first doc comment paragraph is too long --> sdk/src/client/secret/ledger_nano.rs:418:1 | 418 | / /// the Ledger Nano S(+)/X app can present the user a detailed view of the transaction before it 419 | | /// is signed but only with BasicOutputs, without extra-features and if the Essence is not too large. 420 | | /// If criteria are not met, blind signing is needed. 421 | | /// This method finds out if we have to switch to blind signing mode. | |_^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_long_first_doc_paragraph
first doc comment paragraph is too long: sdk/src/client/node_api/participation.rs#L4
error: first doc comment paragraph is too long --> sdk/src/client/node_api/participation.rs:4:1 | 4 | / //! IOTA node public participation routes. 5 | | //! <https://github.com/iota-community/treasury/blob/main/specifications/hornet-participation-plugin.md#public-node-endpoints> 6 | | //! <https://github.com/iotaledger/inx-participation/blob/develop/components/participation/routes.go> | |_^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_long_first_doc_paragraph help: add an empty line | 4 ~ //! IOTA node public participation routes. 5 + //! |
first doc comment paragraph is too long: sdk/src/client/api/block_builder/transaction.rs#L153
error: first doc comment paragraph is too long --> sdk/src/client/api/block_builder/transaction.rs:153:1 | 153 | / /// Verifies that the transaction essence doesn't exceed the block size limit with 8 parents. 154 | | /// Assuming one signature unlock and otherwise reference/alias/nft unlocks. `validate_transaction_payload_length()` 155 | | /// should later be used to check the length again with the correct unlocks. | |_^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_long_first_doc_paragraph = note: `#[deny(clippy::too_long_first_doc_paragraph)]` implied by `#[deny(clippy::nursery)]` help: add an empty line | 153 ~ /// Verifies that the transaction essence doesn't exceed the block size limit with 8 parents. 154 + /// |
the following explicit lifetimes could be elided: 'a: sdk/src/client/api/block_builder/transaction.rs#L34
error: the following explicit lifetimes could be elided: 'a --> sdk/src/client/api/block_builder/transaction.rs:34:6 | 34 | impl<'a> ClientBlockBuilder<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 34 - impl<'a> ClientBlockBuilder<'a> { 34 + impl ClientBlockBuilder<'_> { |
usage of `HashSet::insert` after `HashSet::contains`: sdk/src/client/api/block_builder/input_selection/sender_issuer.rs#L256
error: usage of `HashSet::insert` after `HashSet::contains` --> sdk/src/client/api/block_builder/input_selection/sender_issuer.rs:256:57 | 256 | if !required_sender_or_issuer_addresses.contains(issuer_feature.address()) { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 259 | required_sender_or_issuer_addresses.insert(*issuer_feature.address()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#set_contains_or_insert
usage of `HashSet::insert` after `HashSet::contains`: sdk/src/client/api/block_builder/input_selection/sender_issuer.rs#L240
error: usage of `HashSet::insert` after `HashSet::contains` --> sdk/src/client/api/block_builder/input_selection/sender_issuer.rs:240:53 | 240 | if !required_sender_or_issuer_addresses.contains(sender_feature.address()) { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 243 | required_sender_or_issuer_addresses.insert(*sender_feature.address()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#set_contains_or_insert note: the lint level is defined here --> sdk/src/lib.rs:7:9 | 7 | #![deny(clippy::nursery, rust_2018_idioms, warnings, unreachable_pub)] | ^^^^^^^^^^^^^^^ = note: `#[deny(clippy::set_contains_or_insert)]` implied by `#[deny(clippy::nursery)]`
the following explicit lifetimes could be elided: 'a: sdk/src/client/api/block_builder/input_selection/sender_issuer.rs#L28
error: the following explicit lifetimes could be elided: 'a --> sdk/src/client/api/block_builder/input_selection/sender_issuer.rs:28:6 | 28 | impl<'a> ClientBlockBuilder<'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> ClientBlockBuilder<'a> { 28 + impl ClientBlockBuilder<'_> { |
the following explicit lifetimes could be elided: 'a: sdk/src/client/api/block_builder/input_selection/manual.rs#L24
error: the following explicit lifetimes could be elided: 'a --> sdk/src/client/api/block_builder/input_selection/manual.rs:24:6 | 24 | impl<'a> ClientBlockBuilder<'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> ClientBlockBuilder<'a> { 24 + impl ClientBlockBuilder<'_> { |
this `map_or` is redundant: sdk/src/client/api/block_builder/input_selection/core/requirement/native_tokens.rs#L142
error: this `map_or` is redundant --> sdk/src/client/api/block_builder/input_selection/core/requirement/native_tokens.rs:142:21 | 142 | / input 143 | | .output 144 | | .native_tokens() 145 | | .map_or(false, |native_tokens| native_tokens.contains(diff.token_id())) | |_______________________________________________________________________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or help: use is_some_and instead | 142 ~ input 143 + .output 144 + .native_tokens().is_some_and(|native_tokens| native_tokens.contains(diff.token_id())) |
this `map_or` is redundant: sdk/src/client/api/block_builder/input_selection/core/requirement/amount.rs#L253
error: this `map_or` is redundant --> sdk/src/client/api/block_builder/input_selection/core/requirement/amount.rs:253:21 | 253 | / self.automatically_transitioned 254 | | .get(chain_id) 255 | | .map_or(false, |alias_transition| { 256 | | alias_transition.map_or(true, |alias_transition| alias_transition.is_state()) 257 | | }) | |__________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or help: use is_some_and instead | 253 ~ self.automatically_transitioned 254 + .get(chain_id).is_some_and(|alias_transition| { 255 + alias_transition.map_or(true, |alias_transition| alias_transition.is_state()) 256 + }) |
this `map_or` is redundant: sdk/src/client/api/block_builder/input_selection/core/requirement/amount.rs#L25
error: this `map_or` is redundant --> sdk/src/client/api/block_builder/input_selection/core/requirement/amount.rs:25:23 | 25 | let expired = unlock_conditions | _______________________^ 26 | | .expiration() 27 | | .map_or(false, |expiration| current_time >= expiration.timestamp()); | |_______________________________________________________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or help: use is_some_and instead | 25 ~ let expired = unlock_conditions 26 ~ .expiration().is_some_and(|expiration| current_time >= expiration.timestamp()); |
this `map_or` is redundant: sdk/src/client/api/block_builder/input_selection/core/requirement/alias.rs#L69
error: this `map_or` is redundant --> sdk/src/client/api/block_builder/input_selection/core/requirement/alias.rs:69:16 | 69 | && self | ________________^ 70 | | .burn 71 | | .as_ref() 72 | | .map_or(false, |burn| burn.aliases.contains(&alias_id)) | |_______________________________________________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or = note: `#[deny(clippy::unnecessary_map_or)]` implied by `#[deny(warnings)]` help: use is_some_and instead | 69 ~ && self 70 + .burn 71 + .as_ref().is_some_and(|burn| burn.aliases.contains(&alias_id)) |
the following explicit lifetimes could be elided: 'a: sdk/src/client/api/block_builder/input_selection/automatic.rs#L26
error: the following explicit lifetimes could be elided: 'a --> sdk/src/client/api/block_builder/input_selection/automatic.rs:26:6 | 26 | impl<'a> ClientBlockBuilder<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes note: the lint level is defined here --> sdk/src/lib.rs:7:44 | 7 | #![deny(clippy::nursery, rust_2018_idioms, warnings, unreachable_pub)] | ^^^^^^^^ = note: `#[deny(clippy::needless_lifetimes)]` implied by `#[deny(warnings)]` help: elide the lifetimes | 26 - impl<'a> ClientBlockBuilder<'a> { 26 + impl ClientBlockBuilder<'_> { |
Lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Check Format
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Test (ubuntu-latest, 18)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636