Skip to content

Remove unused deps, autoinherit and restructure #482

Remove unused deps, autoinherit and restructure

Remove unused deps, autoinherit and restructure #482

Triggered via pull request August 27, 2024 09:01
Status Success
Total duration 2m 56s
Artifacts

rust.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

7 warnings
rustfmt
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/
match can be simplified with `.unwrap_or_default()`: crates/trustchain-ion/src/commitment.rs#L470
warning: match can be simplified with `.unwrap_or_default()` --> crates/trustchain-ion/src/commitment.rs:470:25 | 470 | let endpoints = match did_doc.get_endpoints() { | _________________________^ 471 | | Some(x) => x, 472 | | None => vec![], 473 | | }; | |_________^ help: replace it with: `did_doc.get_endpoints().unwrap_or_default()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default
match can be simplified with `.unwrap_or_default()`: crates/trustchain-ion/src/commitment.rs#L466
warning: match can be simplified with `.unwrap_or_default()` --> crates/trustchain-ion/src/commitment.rs:466:20 | 466 | let keys = match did_doc.get_keys() { | ____________________^ 467 | | Some(x) => x, 468 | | None => vec![], 469 | | }; | |_________^ help: replace it with: `did_doc.get_keys().unwrap_or_default()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default = note: `#[warn(clippy::manual_unwrap_or_default)]` on by default
clippy_check
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/
clippy_check
The following actions use a deprecated Node.js version and will be forced to run on node20: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Docs
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/
build
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/