chore(cargo): adapt codebase to latest Rust (1.76) #5514
GitHub Actions / clippy
failed
Feb 12, 2024 in 0s
clippy
2 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 2 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.76.0 (07dca489a 2024-02-04)
- cargo 1.76.0 (c84b36747 2024-01-18)
- clippy 0.1.76 (07dca48 2024-02-04)
Annotations
Check failure on line 134 in rad/src/operators/map.rs
github-actions / clippy
use of a fallible conversion when an infallible one could be used
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)]`
Check failure on line 855 in data_structures/src/chain/priority.rs
github-actions / clippy
accessing first element with `input.get(0)`
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)]`
Loading