refactor project #93
GitHub Actions / Clippy Output
succeeded
Mar 4, 2024 in 0s
Clippy Output
2 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 2 |
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 194 in src/resize.rs
github-actions / Clippy Output
using `clone` on type `ImageSize` which implements the `Copy` trait
warning: using `clone` on type `ImageSize` which implements the `Copy` trait
--> src/resize.rs:194:43
|
194 | let mut output = Image::from_size_val(new_size.clone(), 0.0)?;
| ^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `new_size`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
= note: `#[warn(clippy::clone_on_copy)]` on by default
Check warning on line 145 in src/io/jpeg.rs
github-actions / Clippy Output
question mark operator is useless here
warning: question mark operator is useless here
--> src/io/jpeg.rs:145:9
|
145 | Ok(Image::new(image_size, pixels)?)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing question mark and `Ok()`: `Image::new(image_size, pixels)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
= note: `#[warn(clippy::needless_question_mark)]` on by default
Loading