refactor project #6
Annotations
4 warnings
using `clone` on type `ImageSize` which implements the `Copy` trait:
src/resize.rs#L194
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
|
question mark operator is useless here:
src/io/jpeg.rs#L145
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
|
test-python
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-python@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
test-python
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-python@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|