Skip to content

chore(cargo): adapt codebase to latest Rust (1.76) #5514

chore(cargo): adapt codebase to latest Rust (1.76)

chore(cargo): adapt codebase to latest Rust (1.76) #5514

Triggered via push February 12, 2024 16:51
Status Failure
Total duration 17m 31s
Artifacts

push.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 6 warnings
use of a fallible conversion when an infallible one could be used: rad/src/operators/map.rs#L134
error: use of a fallible conversion when an infallible one could be used --> rad/src/operators/map.rs:134:25 | 134 | let args = vec![Value::try_from(String::from(key)).unwrap()]; | ^^^^^^^^^^^^^^^ help: use: `From::from` | = note: converting `String` to `Value` cannot fail = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fallible_conversions = note: `-D clippy::unnecessary-fallible-conversions` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::unnecessary_fallible_conversions)]`
accessing first element with `input.get(0)`: data_structures/src/chain/priority.rs#L855
error: accessing first element with `input.get(0)` --> data_structures/src/chain/priority.rs:855:35 | 855 | assert_eq!(engine.get(0), input.get(0)); | ^^^^^^^^^^^^ help: try: `input.first()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first = note: `-D clippy::get-first` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::get_first)]`
build_ubuntu
could not compile `witnet_data_structures` (lib test) due to 2 previous errors
build_ubuntu
could not compile `witnet_rad` (lib test) due to 2 previous errors
build_ubuntu
Clippy had exited with the 101 exit code
use of a fallible conversion when an infallible one could be used: rad/src/operators/map.rs#L134
error: use of a fallible conversion when an infallible one could be used --> rad/src/operators/map.rs:134:25 | 134 | let args = vec![Value::try_from(String::from(key)).unwrap()]; | ^^^^^^^^^^^^^^^ help: use: `From::from` | = note: converting `String` to `Value` cannot fail = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fallible_conversions = note: `-D clippy::unnecessary-fallible-conversions` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::unnecessary_fallible_conversions)]`
accessing first element with `input.get(0)`: data_structures/src/chain/priority.rs#L855
error: accessing first element with `input.get(0)` --> data_structures/src/chain/priority.rs:855:35 | 855 | assert_eq!(engine.get(0), input.get(0)); | ^^^^^^^^^^^^ help: try: `input.first()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first = note: `-D clippy::get-first` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::get_first)]`
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
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/