Skip to content

refactor project

refactor project #61

Triggered via pull request February 4, 2024 22:54
Status Failure
Total duration 2m 27s
Artifacts

rust_lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 23 warnings
mismatched types: src/color.rs#L23
error[E0308]: mismatched types --> src/color.rs:23:49 | 23 | pub fn gray_from_rgb<T>(image: &Image<T, 3>) -> Result<Image<T, 1>, String> | ------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<Image<T, 1>, String>`, found `()` | | | implicitly returns `()` as its body has no tail or `return` expression ... 47 | Ok(Image { data: output }); | - help: remove this semicolon to return this value | = note: expected enum `std::result::Result<image::Image<T, 1>, std::string::String>` found unit type `()`
mismatched types: src/color.rs#L47
error[E0308]: mismatched types --> src/color.rs:47:22 | 47 | Ok(Image { data: output }); | ^^^^^^ expected `ArrayBase<OwnedRepr<_>, Dim<...>>`, found `Image<T, 1>` | = note: expected struct `ndarray::ArrayBase<ndarray::OwnedRepr<_>, ndarray::Dim<[usize; 3]>>` found struct `image::Image<T, 1>`
Clippy
Clippy had exited with the 101 exit code
Check: src/color.rs#L47
mismatched types
Check: src/color.rs#L23
mismatched types
Check
The process 'cross' failed with exit code 101
Rustfmt
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Rustfmt
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
unused import: `std::path::Path`: src/image.rs#L2
warning: unused import: `std::path::Path` --> src/image.rs:2:5 | 2 | use std::path::Path; | ^^^^^^^^^^^^^^^
unused import: `Array3`: src/color.rs#L2
warning: unused import: `Array3` --> src/color.rs:2:15 | 2 | use ndarray::{Array3, Zip}; | ^^^^^^ | = note: `#[warn(unused_imports)]` on by default
Clippy
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Check
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Check
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Check: src/color.rs#L2
unused import: `Array3`
Check: src/image.rs#L2
unused import: `std::path::Path`
Check
`kornia-rs` (lib) generated 2 warnings
Check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/