Release Tag #31
clippy
6 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 6 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.75.0 (82e1608df 2023-12-21)
- cargo 1.75.0 (1d8b05cdd 2023-11-20)
- clippy 0.1.75 (82e1608 2023-12-21)
Annotations
Check failure on line 95 in rad/src/types/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/types/map.rs:95:25
|
95 | Value::try_from(key.to_string()),
| ^^^^^^^^^^^^^^^ help: use: `From::from`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fallible_conversions
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`
|
= 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 170 in rad/src/operators/array.rs
github-actions / clippy
accessing first element with `args.get(0)`
error: accessing first element with `args.get(0)`
--> rad/src/operators/array.rs:170:21
|
170 | let first_arg = args.get(0).ok_or_else(wrong_args)?;
| ^^^^^^^^^^^ help: try: `args.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)]`
Check failure on line 95 in rad/src/types/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/types/map.rs:95:25
|
95 | Value::try_from(key.to_string()),
| ^^^^^^^^^^^^^^^ help: use: `From::from`
|
= 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 170 in rad/src/operators/array.rs
github-actions / clippy
accessing first element with `args.get(0)`
error: accessing first element with `args.get(0)`
--> rad/src/operators/array.rs:170:21
|
170 | let first_arg = args.get(0).ok_or_else(wrong_args)?;
| ^^^^^^^^^^^ help: try: `args.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)]`
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)]`