Reproducible Verification of Stylus Programs #158
check.yml
on: pull_request
stable / fmt
11s
Matrix: clippy
Annotations
7 warnings
stable / fmt
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions-rs/cargo@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
stable / fmt
The following actions uses node12 which is deprecated and will be forced to run on node16: 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/
|
length comparison to zero:
check/src/project.rs#L146
warning: length comparison to zero
--> check/src/project.rs:146:20
|
146 | if glob_paths.len() > 0 {
| ^^^^^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!glob_paths.is_empty()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero
= note: `#[warn(clippy::len_zero)]` on by default
|
unneeded `return` statement:
check/src/project.rs#L152
warning: unneeded `return` statement
--> check/src/project.rs:152:21
|
152 | return false;
| ^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
= note: `#[warn(clippy::needless_return)]` on by default
help: remove `return`
|
152 - return false;
152 + false
|
|
field `rebuild` is never read:
check/src/project.rs#L33
warning: field `rebuild` is never read
--> check/src/project.rs:33:9
|
30 | pub struct BuildConfig {
| ----------- field in this struct
...
33 | pub rebuild: bool,
| ^^^^^^^
|
= note: `BuildConfig` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
= note: `#[warn(dead_code)]` on by default
|
stable / clippy
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, 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/.
|
stable / clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: 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/
|