Skip to content

Add support for StatusList2021 #4197

Add support for StatusList2021

Add support for StatusList2021 #4197

Triggered via pull request January 16, 2024 08:49
Status Failure
Total duration 1m 46s
Artifacts

clippy.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 1 warning
accessing first element with `document.methods(None).get(0)`: identity_document/src/document/core_document.rs#L1156
error: accessing first element with `document.methods(None).get(0)` --> identity_document/src/document/core_document.rs:1156:16 | 1156 | assert_eq!(document.methods(None).get(0).unwrap().id().to_string(), "did:example:1234#key-1"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `document.methods(None).first()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first = note: `-D clippy::get-first` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::get_first)]`
accessing first element with `verification_methods.get(0)`: identity_document/src/document/core_document.rs#L1167
error: accessing first element with `verification_methods.get(0)` --> identity_document/src/document/core_document.rs:1167:7 | 1167 | verification_methods.get(0).unwrap().id().to_string(), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `verification_methods.first()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
accessing first element with `authentication.get(0)`: identity_document/src/document/core_document.rs#L1183
error: accessing first element with `authentication.get(0)` --> identity_document/src/document/core_document.rs:1183:7 | 1183 | authentication.get(0).unwrap().id().to_string(), | ^^^^^^^^^^^^^^^^^^^^^ help: try: `authentication.first()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
constants have by default a `'static` lifetime: identity_credential/src/revocation/status_list_2021/entry.rs#L109
error: constants have by default a `'static` lifetime --> identity_credential/src/revocation/status_list_2021/entry.rs:109:36 | 109 | const STATUS_LIST_ENTRY_SAMPLE: &'static str = r#" | -^^^^^^^---- help: consider removing `'static`: `&str` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes = note: `-D clippy::redundant-static-lifetimes` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::redundant_static_lifetimes)]`
clippy
Clippy had exited with the 101 exit code
clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: jetli/wasm-bindgen-action@24ba6f9fff570246106ac3f80f35185600c3f6c9. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/