Skip to content

fix error if wasm-pack already installed #69

fix error if wasm-pack already installed

fix error if wasm-pack already installed #69

Triggered via pull request January 21, 2024 04:49
Status Success
Total duration 6m 6s
Artifacts

ci.yaml

on: pull_request
Unit Test and Lint
1m 57s
Unit Test and Lint
Fit to window
Zoom out
Zoom in

Annotations

1 error and 18 warnings
Unit Test and Lint
binary `wasm-pack` already exists in destination
accessing first element with `self.values.get(0)`: packages/ergo-lib-wasm/src/ir/constants.rs#L591
warning: accessing first element with `self.values.get(0)` --> packages/ergo-lib-wasm/src/ir/constants.rs:591:13 | 591 | self.values.get(0).unwrap().dyn_stype() | ^^^^^^^^^^^^^^^^^^ help: try: `self.values.first()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first = note: `#[warn(clippy::get_first)]` on by default
use of a fallible conversion when an infallible one could be used: packages/ergo-lib-wasm/src/ir/constants.rs#L82
warning: use of a fallible conversion when an infallible one could be used --> packages/ergo-lib-wasm/src/ir/constants.rs:82:21 | 82 | let inner = Constant::try_from(bytes.to_vec()).map_err_js_value()?; | ^^^^^^^^^^^^^^^^^^ help: use: `From::from` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fallible_conversions = note: `#[warn(clippy::unnecessary_fallible_conversions)]` on by default
you should consider adding a `Default` implementation for `ScorexWriter`: packages/scorex-buffer/src/lib.rs#L16
warning: you should consider adding a `Default` implementation for `ScorexWriter` --> packages/scorex-buffer/src/lib.rs:16:5 | 16 | / pub fn new() -> ScorexWriter { 17 | | ScorexWriter(vec![]) 18 | | } | |_____^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default = note: `#[warn(clippy::new_without_default)]` on by default help: try adding this | 14 + impl Default for ScorexWriter { 15 + fn default() -> Self { 16 + Self::new() 17 + } 18 + } |
Unit Test and Lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@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/
Unit Test and Lint
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/
Unit Test and Lint
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/
Unit Test and Lint
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/
Unit Test and Lint
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/
Unit Test and Lint
virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"`
Unit Test and Lint
virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"`
Unit Test and Lint
virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"`
Unit Test and Lint
virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"`
Unit Test and Lint
virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"`
Unit Test and Lint
virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"`
Unit Test and Lint
virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"`
Unit Test and Lint
virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"`
Unit Test and Lint
virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"`
Unit Test and Lint
virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"`