GitHub Actions / clippy
succeeded
Aug 13, 2024 in 0s
clippy
2 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 2 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.80.0 (051478957 2024-07-21)
- cargo 1.80.0 (376290515 2024-07-16)
- clippy 0.1.80 (0514789 2024-07-21)
Annotations
Check warning on line 465 in src/models/block.rs
github-actions / clippy
an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
warning: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
--> src/models/block.rs:465:1
|
465 | impl Into<CreateBlock> for Block {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into
= note: `#[warn(clippy::from_over_into)]` on by default
help: replace the `Into` implementation with `From<models::block::Block>`
|
465 ~ impl From<Block> for CreateBlock {
466 ~ fn from(val: Block) -> Self {
467 ~ match val {
|
Check warning on line 16 in src/models/mod.rs
github-actions / clippy
unused import: `serde_json::Value`
warning: unused import: `serde_json::Value`
--> src/models/mod.rs:16:5
|
16 | use serde_json::Value;
| ^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
Loading