feat(mining): disable mint transactions post wit\2 #100
Annotations
22 errors and 9 warnings
usage of a legacy numeric method:
data_structures/src/transaction_factory.rs#L332
error: usage of a legacy numeric method
--> data_structures/src/transaction_factory.rs:332:69
|
332 | .map(|o| o.checked_total_value().unwrap_or(u64::max_value()))
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
332 | .map(|o| o.checked_total_value().unwrap_or(u64::MAX))
| ~~~
|
usage of a legacy numeric method:
data_structures/src/transaction_factory.rs#L329
error: usage of a legacy numeric method
--> data_structures/src/transaction_factory.rs:329:29
|
329 | .unwrap_or(u64::max_value())
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
329 | .unwrap_or(u64::MAX)
| ~~~
|
usage of a legacy numeric method:
data_structures/src/proto/mod.rs#L303
error: usage of a legacy numeric method
--> data_structures/src/proto/mod.rs:303:49
|
303 | pb <= Self::ProtoStruct::from(Self::max_value()),
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
303 | pb <= Self::ProtoStruct::from(Self::MAX),
| ~~~
|
usage of a legacy numeric method:
data_structures/src/proto/mod.rs#L289
error: usage of a legacy numeric method
--> data_structures/src/proto/mod.rs:289:49
|
289 | pb <= Self::ProtoStruct::from(Self::max_value()),
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
289 | pb <= Self::ProtoStruct::from(Self::MAX),
| ~~~
|
usage of a legacy numeric method:
data_structures/src/proto/mod.rs#L275
error: usage of a legacy numeric method
--> data_structures/src/proto/mod.rs:275:49
|
275 | pb <= Self::ProtoStruct::from(Self::max_value()),
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
275 | pb <= Self::ProtoStruct::from(Self::MAX),
| ~~~
|
usage of a legacy numeric method:
data_structures/src/transaction_factory.rs#L332
error: usage of a legacy numeric method
--> data_structures/src/transaction_factory.rs:332:69
|
332 | .map(|o| o.checked_total_value().unwrap_or(u64::max_value()))
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
332 | .map(|o| o.checked_total_value().unwrap_or(u64::MAX))
| ~~~
|
usage of a legacy numeric method:
data_structures/src/transaction_factory.rs#L329
error: usage of a legacy numeric method
--> data_structures/src/transaction_factory.rs:329:29
|
329 | .unwrap_or(u64::max_value())
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
329 | .unwrap_or(u64::MAX)
| ~~~
|
usage of a legacy numeric method:
data_structures/src/proto/mod.rs#L303
error: usage of a legacy numeric method
--> data_structures/src/proto/mod.rs:303:49
|
303 | pb <= Self::ProtoStruct::from(Self::max_value()),
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
303 | pb <= Self::ProtoStruct::from(Self::MAX),
| ~~~
|
usage of a legacy numeric method:
data_structures/src/proto/mod.rs#L289
error: usage of a legacy numeric method
--> data_structures/src/proto/mod.rs:289:49
|
289 | pb <= Self::ProtoStruct::from(Self::max_value()),
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
289 | pb <= Self::ProtoStruct::from(Self::MAX),
| ~~~
|
usage of a legacy numeric method:
data_structures/src/proto/mod.rs#L275
error: usage of a legacy numeric method
--> data_structures/src/proto/mod.rs:275:49
|
275 | pb <= Self::ProtoStruct::from(Self::max_value()),
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
275 | pb <= Self::ProtoStruct::from(Self::MAX),
| ~~~
|
usage of a legacy numeric method:
data_structures/src/chain/mod.rs#L6439
error: usage of a legacy numeric method
--> data_structures/src/chain/mod.rs:6439:57
|
6439 | assert_eq!(rep_engine.threshold_factor(9), u32::max_value());
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
6439 | assert_eq!(rep_engine.threshold_factor(9), u32::MAX);
| ~~~
|
usage of a legacy numeric method:
data_structures/src/chain/mod.rs#L6372
error: usage of a legacy numeric method
--> data_structures/src/chain/mod.rs:6372:58
|
6372 | assert_eq!(rep_engine.threshold_factor(10), u32::max_value());
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
6372 | assert_eq!(rep_engine.threshold_factor(10), u32::MAX);
| ~~~
|
usage of a legacy numeric method:
data_structures/src/chain/mod.rs#L6266
error: usage of a legacy numeric method
--> data_structures/src/chain/mod.rs:6266:57
|
6266 | assert_eq!(rep_engine.threshold_factor(1), u32::max_value());
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
6266 | assert_eq!(rep_engine.threshold_factor(1), u32::MAX);
| ~~~
|
usage of a legacy numeric method:
data_structures/src/chain/mod.rs#L4504
error: usage of a legacy numeric method
--> data_structures/src/chain/mod.rs:4504:38
|
4504 | .filter(|&x| x <= Epoch::max_value() as Epoch)
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
4504 | .filter(|&x| x <= Epoch::MAX as Epoch)
| ~~~
|
usage of a legacy numeric method:
data_structures/src/chain/mod.rs#L4406
error: usage of a legacy numeric method
--> data_structures/src/chain/mod.rs:4406:10
|
4406 | u32::max_value()
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
4406 | u32::MAX
| ~~~
|
usage of a legacy numeric method:
data_structures/src/chain/mod.rs#L4402
error: usage of a legacy numeric method
--> data_structures/src/chain/mod.rs:4402:57
|
4402 | return u32::try_from(factor).unwrap_or(u32::max_value());
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: `-D clippy::legacy-numeric-constants` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::legacy_numeric_constants)]`
help: use the associated constant instead
|
4402 | return u32::try_from(factor).unwrap_or(u32::MAX);
| ~~~
|
usage of a legacy numeric method:
data_structures/src/chain/mod.rs#L4504
error: usage of a legacy numeric method
--> data_structures/src/chain/mod.rs:4504:38
|
4504 | .filter(|&x| x <= Epoch::max_value() as Epoch)
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
4504 | .filter(|&x| x <= Epoch::MAX as Epoch)
| ~~~
|
usage of a legacy numeric method:
data_structures/src/chain/mod.rs#L4406
error: usage of a legacy numeric method
--> data_structures/src/chain/mod.rs:4406:10
|
4406 | u32::max_value()
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
4406 | u32::MAX
| ~~~
|
usage of a legacy numeric method:
data_structures/src/chain/mod.rs#L4402
error: usage of a legacy numeric method
--> data_structures/src/chain/mod.rs:4402:57
|
4402 | return u32::try_from(factor).unwrap_or(u32::max_value());
| ^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
= note: `-D clippy::legacy-numeric-constants` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::legacy_numeric_constants)]`
help: use the associated constant instead
|
4402 | return u32::try_from(factor).unwrap_or(u32::MAX);
| ~~~
|
build_ubuntu
could not compile `witnet_data_structures` (lib) due to 9 previous errors
|
build_ubuntu
could not compile `witnet_data_structures` (lib test) due to 12 previous errors
|
build_ubuntu
Clippy had exited with the 101 exit code
|
build_ubuntu
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions-rs/toolchain@v1, actions-rs/cargo@v1, actions-rs/clippy-check@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
build_ubuntu
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@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/
|
build_ubuntu
`/home/runner/work/witnet-rust/witnet-rust/.cargo/config` is deprecated in favor of `config.toml`
|
build_ubuntu
`/home/runner/work/witnet-rust/witnet-rust/.cargo/config` is deprecated in favor of `config.toml`
|
build_ubuntu
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/
|
build_ubuntu
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/
|
build_ubuntu
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/
|
build_ubuntu
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/
|
build_ubuntu
`/home/runner/work/witnet-rust/witnet-rust/.cargo/config` is deprecated in favor of `config.toml`
|