Skip to content

simulate api for debug trace call #328

simulate api for debug trace call

simulate api for debug trace call #328

Triggered via pull request September 20, 2024 20:51
Status Success
Total duration 2m 51s
Artifacts

mac.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

6 warnings
match expression looks like `matches!` macro: main/src/main.rs#L489
warning: match expression looks like `matches!` macro --> main/src/main.rs:489:5 | 489 | / match subcommand { 490 | | "cargo-stylus-check" | "cargo-stylus-cgen" | "cargo-stylus-replay" => true, 491 | | _ => false, 492 | | } | |_____^ help: try: `matches!(subcommand, "cargo-stylus-check" | "cargo-stylus-cgen" | "cargo-stylus-replay")` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro = note: `#[warn(clippy::match_like_matches_macro)]` on by default
this expression creates a reference which is immediately dereferenced by the compiler: main/src/trace.rs#L160
warning: this expression creates a reference which is immediately dereferenced by the compiler --> main/src/trace.rs:160:64 | 160 | hex::decode(d.strip_prefix("0x").unwrap_or(&d)) | ^^ help: change this to: `d` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow = note: `#[warn(clippy::needless_borrow)]` on by default
redundant closure: main/src/trace.rs#L155
warning: redundant closure --> main/src/trace.rs:155:46 | 155 | value: args.value.unwrap_or_else(|| ethers::types::U256::zero()), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ethers::types::U256::zero` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
redundant closure: main/src/trace.rs#L153
warning: redundant closure --> main/src/trace.rs:153:33 | 153 | .unwrap_or_else(|| ethers::types::U256::zero()), // Default to 0 if no gas is provided | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `ethers::types::U256::zero` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure = note: `#[warn(clippy::redundant_closure)]` on by default
(aarch64-apple-darwin, nightly)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
(aarch64-apple-darwin, stable)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/