[Reproducible builds] v0.28.0 #5397
Annotations
5 errors and 56 warnings
&-masking with zero:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bitflags-1.3.2/src/lib.rs#L464
error: &-masking with zero
--> elrond-wasm/src/types/general/esdt_local_role_flags.rs:4:1
|
4 | / bitflags! {
5 | | pub struct EsdtLocalRoleFlags: u64 {
6 | | const NONE = 0b00000000;
7 | | const MINT = 0b00000001;
... |
14 | | }
15 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bad_bit_mask
= note: this error originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info)
|
&-masking with zero:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bitflags-1.3.2/src/lib.rs#L464
error: &-masking with zero
--> elrond-wasm/src/types/general/code_metadata.rs:6:1
|
6 | / bitflags! {
7 | | #[derive(Default)]
8 | | pub struct CodeMetadata: u16 {
9 | | const DEFAULT = 0;
... |
14 | | }
15 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bad_bit_mask
= note: `#[deny(clippy::bad_bit_mask)]` on by default
= note: this error originates in the macro `__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info)
|
Clippy linter check
Clippy had exited with the 101 exit code
|
Wasm tests
Process completed with exit code 127.
|
Rust tests
Process completed with exit code 101.
|
iterating on a map's keys:
elrond-wasm-debug/src/world_mock/account_esdt.rs#L192
warning: iterating on a map's keys
--> elrond-wasm-debug/src/world_mock/account_esdt.rs:192:39
|
192 | let esdt_keys: Vec<Vec<u8>> = self.clone().0.iter().map(|(k, _)| k.clone()).collect();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.clone().0.keys().map(|k| k.clone())`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_kv_map
|
iterating on a map's keys:
elrond-wasm-debug/src/world_mock/account_data.rs#L27
warning: iterating on a map's keys
--> elrond-wasm-debug/src/world_mock/account_data.rs:27:46
|
27 | let mut storage_keys: Vec<Vec<u8>> = self.storage.iter().map(|(k, _)| k.clone()).collect();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.storage.keys().map(|k| k.clone())`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_kv_map
= note: `#[warn(clippy::iter_kv_map)]` on by default
|
explicit call to `.into_iter()` in function argument accepting `IntoIterator`:
elrond-wasm-debug/src/tx_mock/tx_cache.rs#L126
warning: explicit call to `.into_iter()` in function argument accepting `IntoIterator`
--> elrond-wasm-debug/src/tx_mock/tx_cache.rs:126:36
|
126 | blockchain.accounts.extend(self.accounts.into_iter());
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing the `.into_iter()`: `self.accounts`
|
note: this parameter accepts any `IntoIterator`, so you don't need to call `.into_iter()`
--> /rustc/89e2160c4ca5808657ed55392620ed1dbbce78d1/library/core/src/iter/traits/collect.rs:372:18
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
explicit call to `.into_iter()` in function argument accepting `IntoIterator`:
elrond-wasm-debug/src/tx_mock/tx_cache.rs#L110
warning: explicit call to `.into_iter()` in function argument accepting `IntoIterator`
--> elrond-wasm-debug/src/tx_mock/tx_cache.rs:110:21
|
110 | .extend(updates.accounts.into_iter());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing the `.into_iter()`: `updates.accounts`
|
note: this parameter accepts any `IntoIterator`, so you don't need to call `.into_iter()`
--> /rustc/89e2160c4ca5808657ed55392620ed1dbbce78d1/library/core/src/iter/traits/collect.rs:372:18
= 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
|
deref on an immutable reference:
elrond-wasm-debug/src/mandos_step/set_state.rs#L81
warning: deref on an immutable reference
--> elrond-wasm-debug/src/mandos_step/set_state.rs:81:35
|
81 | if let Some(block_info_obj) = &*current_block_info {
| ^^^^^^^^^^^^^^^^^^^^ help: if you would like to reborrow, try removing `&*`: `current_block_info`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref
|
deref on an immutable reference:
elrond-wasm-debug/src/mandos_step/set_state.rs#L78
warning: deref on an immutable reference
--> elrond-wasm-debug/src/mandos_step/set_state.rs:78:35
|
78 | if let Some(block_info_obj) = &*previous_block_info {
| ^^^^^^^^^^^^^^^^^^^^^ help: if you would like to reborrow, try removing `&*`: `previous_block_info`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref
= note: `#[warn(clippy::borrow_deref_ref)]` on by default
|
casting to the same type is unnecessary (`usize` -> `usize`):
elrond-wasm-debug/src/api/send_api_mock.rs#L459
warning: casting to the same type is unnecessary (`usize` -> `usize`)
--> elrond-wasm-debug/src/api/send_api_mock.rs:459:13
|
459 | num_return_data_after as usize,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `num_return_data_after`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
|
casting to the same type is unnecessary (`usize` -> `usize`):
elrond-wasm-debug/src/api/send_api_mock.rs#L458
warning: casting to the same type is unnecessary (`usize` -> `usize`)
--> elrond-wasm-debug/src/api/send_api_mock.rs:458:13
|
458 | num_return_data_before as usize,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `num_return_data_before`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
= note: `#[warn(clippy::unnecessary_cast)]` on by default
|
accessing first element with `abi.constructors.get(0)`:
elrond-wasm-debug/src/abi_json/contract_abi_json.rs#L27
warning: accessing first element with `abi.constructors.get(0)`
--> elrond-wasm-debug/src/abi_json/contract_abi_json.rs:27:26
|
27 | constructor: abi.constructors.get(0).map(ConstructorAbiJson::from),
| ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `abi.constructors.first()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
= note: `#[warn(clippy::get_first)]` on by default
|
the feature `generic_associated_types` has been stable since 1.65.0 and no longer requires an attribute to enable:
elrond-wasm-debug/src/lib.rs#L1
warning: the feature `generic_associated_types` has been stable since 1.65.0 and no longer requires an attribute to enable
--> elrond-wasm-debug/src/lib.rs:1:12
|
1 | #![feature(generic_associated_types)]
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(stable_features)]` on by default
|
unused import: `helper_macros::*`:
elrond-wasm-debug/src/testing_framework/mod.rs#L10
warning: unused import: `helper_macros::*`
--> elrond-wasm-debug/src/testing_framework/mod.rs:10:9
|
10 | pub use helper_macros::*;
| ^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
this `impl` can be derived:
mandos/src/serde_raw/value_raw_check_list.rs#L24
warning: this `impl` can be derived
--> mandos/src/serde_raw/value_raw_check_list.rs:24:1
|
24 | / impl Default for CheckValueListRaw {
25 | | fn default() -> Self {
26 | | CheckValueListRaw::Unspecified
27 | | }
28 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
= help: remove the manual implementation...
help: ...and instead derive it...
|
8 + #[derive(Default)]
9 | pub enum CheckValueListRaw {
|
help: ...and mark the default variant
|
9 ~ #[default]
10 ~ Unspecified,
|
|
this `impl` can be derived:
mandos/src/serde_raw/value_raw_check.rs#L24
warning: this `impl` can be derived
--> mandos/src/serde_raw/value_raw_check.rs:24:1
|
24 | / impl Default for CheckBytesValueRaw {
25 | | fn default() -> Self {
26 | | CheckBytesValueRaw::Unspecified
27 | | }
28 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
= help: remove the manual implementation...
help: ...and instead derive it...
|
8 + #[derive(Default)]
9 | pub enum CheckBytesValueRaw {
|
help: ...and mark the default variant
|
9 ~ #[default]
10 ~ Unspecified,
|
|
replacing an `Option` with `None`:
elrond-wasm/src/types/managed/managed_buffer_cached_builder.rs#L68
warning: replacing an `Option` with `None`
--> elrond-wasm/src/types/managed/managed_buffer_cached_builder.rs:68:36
|
68 | let mut static_cache_mut = core::mem::replace(&mut self.static_cache, None);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider `Option::take()` instead: `self.static_cache.take()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_option_with_none
|
replacing an `Option` with `None`:
elrond-wasm/src/types/managed/managed_buffer_cached_builder.rs#L47
warning: replacing an `Option` with `None`
--> elrond-wasm/src/types/managed/managed_buffer_cached_builder.rs:47:32
|
47 | let old_static_cache = core::mem::replace(&mut self.static_cache, None);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider `Option::take()` instead: `self.static_cache.take()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_option_with_none
= note: `#[warn(clippy::mem_replace_option_with_none)]` on by default
|
this `impl` can be derived:
mandos/src/serde_raw/logs_raw.rs#L32
warning: this `impl` can be derived
--> mandos/src/serde_raw/logs_raw.rs:32:1
|
32 | / impl Default for CheckLogsRaw {
33 | | fn default() -> Self {
34 | | CheckLogsRaw::Unspecified
35 | | }
36 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
= help: remove the manual implementation...
help: ...and instead derive it...
|
16 + #[derive(Default)]
17 | pub enum CheckLogsRaw {
|
help: ...and mark the default variant
|
19 ~ #[default]
20 ~ Unspecified,
|
|
this `impl` can be derived:
mandos/src/serde_raw/esdt_data_raw/esdt_map_raw_check.rs#L24
warning: this `impl` can be derived
--> mandos/src/serde_raw/esdt_data_raw/esdt_map_raw_check.rs:24:1
|
24 | / impl Default for CheckEsdtMapRaw {
25 | | fn default() -> Self {
26 | | CheckEsdtMapRaw::Unspecified
27 | | }
28 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
= help: remove the manual implementation...
help: ...and instead derive it...
|
8 + #[derive(Default)]
9 | pub enum CheckEsdtMapRaw {
|
help: ...and mark the default variant
|
9 ~ #[default]
10 ~ Unspecified,
|
|
this `impl` can be derived:
mandos/src/serde_raw/esdt_data_raw/esdt_instances_raw_check.rs#L25
warning: this `impl` can be derived
--> mandos/src/serde_raw/esdt_data_raw/esdt_instances_raw_check.rs:25:1
|
25 | / impl Default for CheckEsdtInstancesRaw {
26 | | fn default() -> Self {
27 | | CheckEsdtInstancesRaw::Unspecified
28 | | }
29 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
= help: remove the manual implementation...
help: ...and instead derive it...
|
9 + #[derive(Default)]
10 | pub enum CheckEsdtInstancesRaw {
|
help: ...and mark the default variant
|
10 ~ #[default]
11 ~ Unspecified,
|
|
the borrowed expression implements the required traits:
elrond-wasm/src/types/interaction/contract_call.rs#L200
warning: the borrowed expression implements the required traits
--> elrond-wasm/src/types/interaction/contract_call.rs:200:41
|
200 | new_arg_buffer.push_arg(&payment.token_nonce);
| ^^^^^^^^^^^^^^^^^^^^ help: change this to: `payment.token_nonce`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
non-canonical implementation of `partial_cmp` on an `Ord` type:
mandos/src/model/value/value_key_u64.rs#L37
warning: non-canonical implementation of `partial_cmp` on an `Ord` type
--> mandos/src/model/value/value_key_u64.rs:37:1
|
37 | / impl PartialOrd for U64Key {
38 | | fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
| | _____________________________________________________________-
39 | || self.value.partial_cmp(&other.value)
40 | || }
| ||_____- help: change this to: `{ Some(self.cmp(other)) }`
41 | | }
| |__^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#non_canonical_partial_ord_impl
|
non-canonical implementation of `partial_cmp` on an `Ord` type:
mandos/src/model/value/value_key_bytes.rs#L34
warning: non-canonical implementation of `partial_cmp` on an `Ord` type
--> mandos/src/model/value/value_key_bytes.rs:34:1
|
34 | / impl PartialOrd for BytesKey {
35 | | fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
| | _____________________________________________________________-
36 | || self.value.partial_cmp(&other.value)
37 | || }
| ||_____- help: change this to: `{ Some(self.cmp(other)) }`
38 | | }
| |__^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#non_canonical_partial_ord_impl
= note: `#[warn(clippy::non_canonical_partial_ord_impl)]` on by default
|
this `impl` can be derived:
mandos/src/model/value/value_check.rs#L25
warning: this `impl` can be derived
--> mandos/src/model/value/value_check.rs:25:1
|
25 | / impl<T> Default for CheckValue<T>
26 | | where
27 | | T: Default,
28 | | {
... |
31 | | }
32 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
= note: `#[warn(clippy::derivable_impls)]` on by default
= help: remove the manual implementation...
help: ...and instead derive it...
|
11 + #[derive(Default)]
12 | pub enum CheckValue<T: Default> {
|
help: ...and mark the default variant
|
12 ~ #[default]
13 ~ Star,
|
|
deref which would be done by auto-deref:
elrond-wasm/src/types/general/boxed_bytes.rs#L143
warning: deref which would be done by auto-deref
--> elrond-wasm/src/types/general/boxed_bytes.rs:143:9
|
143 | &*self.0
| ^^^^^^^^ help: try: `&self.0`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
elrond-wasm/src/types/general/boxed_bytes.rs#L79
warning: deref which would be done by auto-deref
--> elrond-wasm/src/types/general/boxed_bytes.rs:79:9
|
79 | &mut *self.0
| ^^^^^^^^^^^^ help: try: `&mut self.0`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
elrond-wasm/src/types/general/boxed_bytes.rs#L74
warning: deref which would be done by auto-deref
--> elrond-wasm/src/types/general/boxed_bytes.rs:74:9
|
74 | &*self.0
| ^^^^^^^^ help: try: `&self.0`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
the borrowed expression implements the required traits:
elrond-wasm/src/storage/mappers/whitelist_mapper.rs#L46
warning: the borrowed expression implements the required traits
--> elrond-wasm/src/storage/mappers/whitelist_mapper.rs:46:20
|
46 | mapper.set(&true);
| ^^^^^ help: change this to: `true`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
manual check for common ascii range:
elrond-wasm/src/hex_util.rs#L36
warning: manual check for common ascii range
--> elrond-wasm/src/hex_util.rs:36:8
|
36 | if (b'0'..=b'9').contains(&digit) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `digit.is_ascii_digit()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_ascii_check
= note: `#[warn(clippy::manual_is_ascii_check)]` on by default
|
the borrowed expression implements the required traits:
elrond-wasm/src/contract_base/wrappers/send_wrapper.rs#L392
warning: the borrowed expression implements the required traits
--> elrond-wasm/src/contract_base/wrappers/send_wrapper.rs:392:33
|
392 | arg_buffer.push_arg(&());
| ^^^ help: change this to: `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
|
the borrowed expression implements the required traits:
elrond-wasm/src/contract_base/wrappers/send_wrapper.rs#L288
warning: the borrowed expression implements the required traits
--> elrond-wasm/src/contract_base/wrappers/send_wrapper.rs:288:33
|
288 | arg_buffer.push_arg(&nonce);
| ^^^^^^ help: change this to: `nonce`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
= note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default
|
deref which would be done by auto-deref:
elrond-wasm/src/api/blockchain_api.rs#L103
warning: deref which would be done by auto-deref
--> elrond-wasm/src/api/blockchain_api.rs:103:42
|
103 | ManagedByteArray::new_from_bytes(&*self.get_prev_block_random_seed_legacy())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&self.get_prev_block_random_seed_legacy()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
elrond-wasm/src/api/blockchain_api.rs#L89
warning: deref which would be done by auto-deref
--> elrond-wasm/src/api/blockchain_api.rs:89:42
|
89 | ManagedByteArray::new_from_bytes(&*self.get_block_random_seed_legacy())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&self.get_block_random_seed_legacy()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
= note: `#[warn(clippy::explicit_auto_deref)]` on by default
|
the feature `generic_associated_types` has been stable since 1.65.0 and no longer requires an attribute to enable:
elrond-wasm/src/lib.rs#L8
warning: the feature `generic_associated_types` has been stable since 1.65.0 and no longer requires an attribute to enable
--> elrond-wasm/src/lib.rs:8:12
|
8 | #![feature(generic_associated_types)]
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(stable_features)]` on by default
|
lint `clippy::clone_double_ref` has been renamed to `suspicious_double_ref_op`:
elrond-wasm/src/types/managed/managed_vec_ref_iter.rs#L96
warning: lint `clippy::clone_double_ref` has been renamed to `suspicious_double_ref_op`
--> elrond-wasm/src/types/managed/managed_vec_ref_iter.rs:96:13
|
96 | #[allow(clippy::clone_double_ref)]
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `suspicious_double_ref_op`
|
lint `clippy::clone_double_ref` has been renamed to `suspicious_double_ref_op`:
elrond-wasm/src/types/managed/managed_vec_owned_iter.rs#L106
warning: lint `clippy::clone_double_ref` has been renamed to `suspicious_double_ref_op`
--> elrond-wasm/src/types/managed/managed_vec_owned_iter.rs:106:13
|
106 | #[allow(clippy::clone_double_ref)]
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `suspicious_double_ref_op`
|
= note: `#[warn(renamed_and_removed_lints)]` on by default
|
unneeded `return` statement:
elrond-wasm-derive/src/generate/only_owner_gen.rs#L11
warning: unneeded `return` statement
--> elrond-wasm-derive/src/generate/only_owner_gen.rs:11:5
|
11 | return quote! {};
| ^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
= note: `#[warn(clippy::needless_return)]` on by default
help: remove `return`
|
11 - return quote! {};
11 + quote! {}
|
|
casting to the same type is unnecessary (`usize` -> `usize`):
elrond-wasm-derive/src/generate/auto_impl_event.rs#L101
warning: casting to the same type is unnecessary (`usize` -> `usize`)
--> elrond-wasm-derive/src/generate/auto_impl_event.rs:101:21
|
101 | let nr_topics = nr_args_no_self as usize; // -1 data, +1 event id
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `nr_args_no_self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
= note: `#[warn(clippy::unnecessary_cast)]` on by default
|
unused import: `supertrait_parse::*`:
elrond-wasm-derive/src/parse/mod.rs#L20
warning: unused import: `supertrait_parse::*`
--> elrond-wasm-derive/src/parse/mod.rs:20:9
|
20 | pub use supertrait_parse::*;
| ^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
deref which would be done by auto-deref:
elrond-codec/src/single/top_en_output.rs#L26
warning: deref which would be done by auto-deref
--> elrond-codec/src/single/top_en_output.rs:26:27
|
26 | self.set_slice_u8(&*bytes);
| ^^^^^^^ help: try: `&bytes`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
elrond-codec/src/single/top_de_input.rs#L32
warning: deref which would be done by auto-deref
--> elrond-codec/src/single/top_de_input.rs:32:25
|
32 | bytes_to_number(&*self.into_boxed_slice_u8(), true) as i64
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&self.into_boxed_slice_u8()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
elrond-codec/src/single/top_de_input.rs#L24
warning: deref which would be done by auto-deref
--> elrond-codec/src/single/top_de_input.rs:24:25
|
24 | bytes_to_number(&*self.into_boxed_slice_u8(), false)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&self.into_boxed_slice_u8()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
= note: `#[warn(clippy::explicit_auto_deref)]` on by default
|
casting to the same type is unnecessary (`u8` -> `u8`):
elrond-codec/src/impl_for_types/impl_num_unsigned.rs#L11
warning: casting to the same type is unnecessary (`u8` -> `u8`)
--> elrond-codec/src/impl_for_types/impl_num_unsigned.rs:11:24
|
11 | dest.push_byte(*self as u8);
| ^^^^^^^^^^^ help: try: `*self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
= note: `#[warn(clippy::unnecessary_cast)]` on by default
|
Clippy linter check
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Clippy linter check
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/
|
Clippy linter check
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/
|
Clippy linter check
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/
|
Clippy linter check
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/
|
Wasm tests
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Wasm tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Wasm tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Wasm tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Wasm tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Rust tests
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Rust tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Rust tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Rust tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Rust tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|