refactor project #55
GitHub Actions / Clippy Output
succeeded
Feb 1, 2024 in 0s
Clippy Output
3 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 3 |
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 warning on line 17 in src/color.rs
github-actions / Clippy Output
casting to the same type is unnecessary (`usize` -> `usize`)
warning: casting to the same type is unnecessary (`usize` -> `usize`)
--> src/color.rs:17:9
|
17 | image.image_size().width as usize,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `image.image_size().width`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
Check warning on line 16 in src/color.rs
github-actions / Clippy Output
casting to the same type is unnecessary (`usize` -> `usize`)
warning: casting to the same type is unnecessary (`usize` -> `usize`)
--> src/color.rs:16:9
|
16 | image.image_size().height as usize,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `image.image_size().height`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
= note: `#[warn(clippy::unnecessary_cast)]` on by default
Check warning on line 133 in src/resize.rs
github-actions / Clippy Output
unreachable pattern
warning: unreachable pattern
--> src/resize.rs:133:17
|
133 | _ => panic!("Interpolation mode not implemented"),
| ^
|
= note: `#[warn(unreachable_patterns)]` on by default
Loading