Skip to content

refactor project

refactor project #14

Triggered via pull request March 4, 2024 22:32
Status Cancelled
Total duration 1m 42s
Artifacts

python_test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 2 warnings
test-python
Canceling since a higher priority waiting request for 'Test Python-refs/pull/32/merge' exists
test-python
The operation was canceled.
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