refactor project #65
GitHub Actions / Clippy Output
succeeded
Feb 15, 2024 in 0s
Clippy Output
1 warning
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 1 |
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 warning on line 20 in src/io/functions.rs
github-actions / Clippy Output
useless conversion to the same type: `anyhow::Error`
warning: useless conversion to the same type: `anyhow::Error`
--> src/io/functions.rs:20:20
|
20 | return Err(anyhow::anyhow!("File does not exist: {}", file_path.to_str().unwrap()).into());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `anyhow::anyhow!("File does not exist: {}", file_path.to_str().unwrap())`
|
= 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
Loading