Skip to content

Root event date

Root event date #367

Triggered via pull request October 11, 2023 15:51
Status Success
Total duration 7m 41s
Artifacts

rust.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

30 warnings
useless conversion to the same type: `u64`: trustchain-cli/src/bin/main.rs#L243
warning: useless conversion to the same type: `u64` --> trustchain-cli/src/bin/main.rs:243:59 | 243 | ... TrustchainAPI::verify(issuer, root_event_time.into(), &verifier) | ^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `root_event_time` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion = note: `#[warn(clippy::useless_conversion)]` on by default
`if` chain can be rewritten with `match`: trustchain-ion/src/utils.rs#L374
warning: `if` chain can be rewritten with `match` --> trustchain-ion/src/utils.rs:374:9 | 374 | / if current_unixtime as i64 > target_unixtime { 375 | | end_height = current_height; // TODO CHECK: original script has: current_height - 1; 376 | | } else if (current_unixtime as i64) < target_unixtime { 377 | | start_height = current_height; // TODO CHECK: original script has: current_height + 1; 378 | | } | |_________^ | = help: consider rewriting the `if` chain to use `cmp` and `match` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#comparison_chain = note: `#[warn(clippy::comparison_chain)]` on by default
this expression creates a reference which is immediately dereferenced by the compiler: trustchain-ion/src/utils.rs#L372
warning: this expression creates a reference which is immediately dereferenced by the compiler --> trustchain-ion/src/utils.rs:372:74 | 372 | let current_unixtime = time_at_block_height(current_height, Some(&client))?; | ^^^^^^^ help: change this to: `client` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
this expression creates a reference which is immediately dereferenced by the compiler: trustchain-ion/src/utils.rs#L364
warning: this expression creates a reference which is immediately dereferenced by the compiler --> trustchain-ion/src/utils.rs:364:62 | 364 | let end_unixtime = time_at_block_height(end_height, Some(&client))?; | ^^^^^^^ help: change this to: `client` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
this expression creates a reference which is immediately dereferenced by the compiler: trustchain-ion/src/utils.rs#L356
warning: this expression creates a reference which is immediately dereferenced by the compiler --> trustchain-ion/src/utils.rs:356:66 | 356 | let start_unixtime = time_at_block_height(start_height, Some(&client))?; | ^^^^^^^ help: change this to: `client` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
this pattern reimplements `Option::unwrap_or`: trustchain-ion/src/utils.rs#L352
warning: this pattern reimplements `Option::unwrap_or` --> trustchain-ion/src/utils.rs:352:28 | 352 | let mut start_height = match start_height { | ____________________________^ 353 | | Some(x) => x, 354 | | None => 1, 355 | | }; | |_____^ help: replace with: `start_height.unwrap_or(1)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or = note: `#[warn(clippy::manual_unwrap_or)]` on by default
this expression creates a reference which is immediately dereferenced by the compiler: trustchain-ion/src/root.rs#L93
warning: this expression creates a reference which is immediately dereferenced by the compiler --> trustchain-ion/src/root.rs:93:43 | 93 | let did = get_did_from_suffix(&did_suffix, ION_TEST_METHOD); | ^^^^^^^^^^^ help: change this to: `did_suffix` | = 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
this boolean expression can be simplified: trustchain-ion/src/root.rs#L88
warning: this boolean expression can be simplified --> trustchain-ion/src/root.rs:88:16 | 88 | if !doc.get_str(MONGO_FILTER_DID_SUFFIX).is_ok() { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `doc.get_str(MONGO_FILTER_DID_SUFFIX).is_err()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool = note: `#[warn(clippy::nonminimal_bool)]` on by default
unused import: `trustchain_core::utils::get_did_suffix`: trustchain-ion/src/verifier.rs#L31
warning: unused import: `trustchain_core::utils::get_did_suffix` --> trustchain-ion/src/verifier.rs:31:5 | 31 | use trustchain_core::utils::get_did_suffix; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `std::convert::TryInto`: trustchain-ion/src/verifier.rs#L23
warning: unused import: `std::convert::TryInto` --> trustchain-ion/src/verifier.rs:23:5 | 23 | use std::convert::TryInto; | ^^^^^^^^^^^^^^^^^^^^^
unused imports: `MONGO_FILTER_TXN_NUMBER`, `MONGO_FILTER_TXN_TIME`: trustchain-ion/src/verifier.rs#L9
warning: unused imports: `MONGO_FILTER_TXN_NUMBER`, `MONGO_FILTER_TXN_TIME` --> trustchain-ion/src/verifier.rs:9:13 | 9 | use crate::{MONGO_FILTER_TXN_NUMBER, MONGO_FILTER_TXN_TIME, URL}; | ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^
unused imports: `TransactionLocator`, `query_mongodb`: trustchain-ion/src/verifier.rs#L6
warning: unused imports: `TransactionLocator`, `query_mongodb` --> trustchain-ion/src/verifier.rs:6:72 | 6 | block_header, decode_ipfs_content, locate_transaction, query_ipfs, query_mongodb, transaction, | ^^^^^^^^^^^^^ 7 | tx_to_op_return_cid, TransactionLocator, | ^^^^^^^^^^^^^^^^^^
unused import: `Timestamp`: trustchain-ion/src/utils.rs#L20
warning: unused import: `Timestamp` --> trustchain-ion/src/utils.rs:20:16 | 20 | verifier::{Timestamp, VerifierError}, | ^^^^^^^^^
unused import: `response::BitswapWantlistResponse`: trustchain-ion/src/utils.rs#L13
warning: unused import: `response::BitswapWantlistResponse` --> trustchain-ion/src/utils.rs:13:30 | 13 | use ipfs_api_backend_hyper::{response::BitswapWantlistResponse, IpfsApi, IpfsClient}; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `HashOrHeight`: trustchain-ion/src/utils.rs#L7
warning: unused import: `HashOrHeight` --> trustchain-ion/src/utils.rs:7:46 | 7 | bitcoincore_rpc_json::{BlockStatsFields, HashOrHeight}, | ^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
calling `push_str()` using a single-character string literal: trustchain-core/src/utils.rs#L107
warning: calling `push_str()` using a single-character string literal --> trustchain-core/src/utils.rs:107:5 | 107 | did.push_str(":"); | ^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `did.push(':')` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_add_str = note: `#[warn(clippy::single_char_add_str)]` on by default
unnecessary hashes around raw string literal: trustchain-core/src/data.rs#L1035
warning: unnecessary hashes around raw string literal --> trustchain-core/src/data.rs:1035:35 | 1035 | pub const TEST_CREDENTIAL: &str = r##"{ | ___________________________________^ 1036 | | "@context": [ 1037 | | "https://www.w3.org/2018/credentials/v1", 1038 | | "https://www.w3.org/2018/credentials/examples/v1", ... | 1056 | | } 1057 | | "##; | |___^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes help: try | 1035 ~ pub const TEST_CREDENTIAL: &str = r#"{ 1036 + "@context": [ 1037 + "https://www.w3.org/2018/credentials/v1", 1038 + "https://www.w3.org/2018/credentials/examples/v1", 1039 + "https://w3id.org/citizenship/v1" 1040 + ], 1041 + "credentialSchema": { 1042 + "id": "did:example:cdf:35LB7w9ueWbagPL94T9bMLtyXDj9pX5o", 1043 + "type": "did:example:schema:22KpkXgecryx9k7N6XN1QoN3gXwBkSU8SfyyYQG" 1044 + }, 1045 + "type": ["VerifiableCredential"], 1046 + "image": "some_base64_representation", 1047 + "credentialSubject": { 1048 + "givenName": "Jane", 1049 + "familyName": "Doe", 1050 + "degree": { 1051 + "type": "BachelorDegree", 1052 + "name": "Bachelor of Science and Arts", 1053 + "college": "College of Engineering" 1054 + } 1055 + } 1056 + } 1057 ~ "#; |
unnecessary hashes around raw string literal: trustchain-core/src/data.rs#L642
warning: unnecessary hashes around raw string literal --> trustchain-core/src/data.rs:642:54 | 642 | pub const TEST_ROOT_PLUS_2_DOCUMENT_METADATA: &str = r##" | ______________________________________________________^ 643 | | { 644 | | "canonicalId": "did:ion:test:EiAtHHKFJWAk5AsM3tgCut3OiBY4ekHTf66AAjoysXL65Q", 645 | | "method": { ... | 655 | | } 656 | | "##; | |___^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes help: try | 642 ~ pub const TEST_ROOT_PLUS_2_DOCUMENT_METADATA: &str = r#" 643 + { 644 + "canonicalId": "did:ion:test:EiAtHHKFJWAk5AsM3tgCut3OiBY4ekHTf66AAjoysXL65Q", 645 + "method": { 646 + "recoveryCommitment": "EiCy4pW16uB7H-ijA6V6jO6ddWfGCwqNcDSJpdv_USzoRA", 647 + "updateCommitment": "EiAsmJrz7BysD9na9SMGyZ9RjpKIVweh_AFG_2Bs-2Okkg", 648 + "published": true 649 + }, 650 + "proof": { 651 + "proofValue": "eyJhbGciOiJFUzI1NksifQ.IkVpQTNtT25QRklDbTdyc2ljVjRIaFMtNjhrT21xMndqa2tlMEtkRnkzQWlWZlEi.Fxlbm8osH2O5KOQ9sS21bypT_WoWxVD8toCU4baBnLk_gOxiOy_n3cMFMVANJ8usPrKAfRFeC27ATTkWBYZzuw", 652 + "id": "did:ion:test:EiBVpjUxXeSRJpvj2TewlX9zNF3GKMCKWwGmKBZqF6pk_A", 653 + "type": "JsonWebSignature2020" 654 + } 655 + } 656 ~ "#; |
unnecessary hashes around raw string literal: trustchain-core/src/data.rs#L630
warning: unnecessary hashes around raw string literal --> trustchain-core/src/data.rs:630:36 | 630 | pub const TEST_ROOT_JWK_PK: &str = r##" | ____________________________________^ 631 | | { 632 | | "kty": "EC", 633 | | "crv": "secp256k1", ... | 636 | | } 637 | | "##; | |___^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes help: try | 630 ~ pub const TEST_ROOT_JWK_PK: &str = r#" 631 + { 632 + "kty": "EC", 633 + "crv": "secp256k1", 634 + "x": "7ReQHHysGxbyuKEQmspQOjL7oQUqDTldTHuc9V3-yso", 635 + "y": "kWvmS7ZOvDUhF8syO08PBzEpEk3BZMuukkvEJOKSjqE" 636 + } 637 ~ "#; |
unnecessary hashes around raw string literal: trustchain-core/src/data.rs#L613
warning: unnecessary hashes around raw string literal --> trustchain-core/src/data.rs:613:54 | 613 | pub const TEST_ROOT_PLUS_1_DOCUMENT_METADATA: &str = r##" | ______________________________________________________^ 614 | | { 615 | | "proof": { 616 | | "type": "JsonWebSignature2020", ... | 626 | | } 627 | | "##; | |___^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes help: try | 613 ~ pub const TEST_ROOT_PLUS_1_DOCUMENT_METADATA: &str = r#" 614 + { 615 + "proof": { 616 + "type": "JsonWebSignature2020", 617 + "id": "did:ion:test:EiCClfEdkTv_aM3UnBBhlOV89LlGhpQAbfeZLFdFxVFkEg", 618 + "proofValue": "eyJhbGciOiJFUzI1NksifQ.IkVpQXM5dkx2SmdaNkFHMk5XbUFmTnBrbl9EMlNSSUFSa2tCWE9kajZpMk84Umci.awNd-_O1N1ycZ6i_BxeLGV14ok51Ii2x9f1FBBCflyAWw773sqiHvQRGHIMBebKMnzbxVybFu2qUEPWUuRAC9g" 619 + }, 620 + "canonicalId": "did:ion:test:EiBVpjUxXeSRJpvj2TewlX9zNF3GKMCKWwGmKBZqF6pk_A", 621 + "method": { 622 + "published": true, 623 + "recoveryCommitment": "EiClOaWycGv1m-QejUjB0L18G6DVFVeTQCZCuTRrmzCBQg", 624 + "updateCommitment": "EiA0-GpdeoAa4v0-K4YCHoNTjAPsoroDy7pleDIc4a3_QQ" 625 + } 626 + } 627 ~ "#; |
unnecessary hashes around raw string literal: trustchain-core/src/data.rs#L602
warning: unnecessary hashes around raw string literal --> trustchain-core/src/data.rs:602:47 | 602 | pub const TEST_ROOT_DOCUMENT_METADATA: &str = r##" | _______________________________________________^ 603 | | { 604 | | "canonicalId": "did:ion:test:EiCClfEdkTv_aM3UnBBhlOV89LlGhpQAbfeZLFdFxVFkEg", 605 | | "method": { ... | 610 | | } 611 | | "##; | |___^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes help: try | 602 ~ pub const TEST_ROOT_DOCUMENT_METADATA: &str = r#" 603 + { 604 + "canonicalId": "did:ion:test:EiCClfEdkTv_aM3UnBBhlOV89LlGhpQAbfeZLFdFxVFkEg", 605 + "method": { 606 + "updateCommitment": "EiDVRETvZD9iSUnou-HUAz5Ymk_F3tpyzg7FG1jdRG-ZRg", 607 + "published": true, 608 + "recoveryCommitment": "EiCymv17OGBAs7eLmm4BIXDCQBVhdOUAX5QdpIrN4SDE5w" 609 + } 610 + } 611 ~ "#; |
unnecessary hashes around raw string literal: trustchain-core/src/data.rs#L450
warning: unnecessary hashes around raw string literal --> trustchain-core/src/data.rs:450:48 | 450 | pub const TEST_ROOT_PLUS_1_SIGNING_KEY: &str = r##" | ________________________________________________^ 451 | | { 452 | | "kty": "EC", 453 | | "crv": "secp256k1", ... | 456 | | } 457 | | "##; | |___^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes help: try | 450 ~ pub const TEST_ROOT_PLUS_1_SIGNING_KEY: &str = r#" 451 + { 452 + "kty": "EC", 453 + "crv": "secp256k1", 454 + "x": "aApKobPO8H8wOv-oGT8K3Na-8l-B1AE3uBZrWGT6FJU", 455 + "y": "dspEqltAtlTKJ7cVRP_gMMknyDPqUw-JHlpwS2mFuh0" 456 + } 457 ~ "#; |
unnecessary hashes around raw string literal: trustchain-core/src/data.rs#L441
warning: unnecessary hashes around raw string literal --> trustchain-core/src/data.rs:441:40 | 441 | pub const TEST_ROOT_SIGNING_PK: &str = r##" | ________________________________________^ 442 | | { 443 | | "kty": "EC", 444 | | "crv": "secp256k1", ... | 447 | | } 448 | | "##; | |___^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes help: try | 441 ~ pub const TEST_ROOT_SIGNING_PK: &str = r#" 442 + { 443 + "kty": "EC", 444 + "crv": "secp256k1", 445 + "x": "7ReQHHysGxbyuKEQmspQOjL7oQUqDTldTHuc9V3-yso", 446 + "y": "kWvmS7ZOvDUhF8syO08PBzEpEk3BZMuukkvEJOKSjqE" 447 + } 448 ~ "#; |
unnecessary hashes around raw string literal: trustchain-core/src/data.rs#L433
warning: unnecessary hashes around raw string literal --> trustchain-core/src/data.rs:433:37 | 433 | pub const TEST_RECOVERY_KEY: &str = r##"{ | _____________________________________^ 434 | | "kty": "EC", 435 | | "crv": "secp256k1", 436 | | "x": "_Z1JRmGwvj0jIpDW-QF0dmQnAL8D_FuNg2WxF7uJSYo", 437 | | "y": "orKbmG6L6kRugAB2OWzWNgulXRfyOR06GTm353Er--c", 438 | | "d": "YobJpI7p7T5dfU0cDRE4SQwp0eOFR6LOGrsqZE1GG1A" 439 | | }"##; | |________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes help: try | 433 ~ pub const TEST_RECOVERY_KEY: &str = r#"{ 434 + "kty": "EC", 435 + "crv": "secp256k1", 436 + "x": "_Z1JRmGwvj0jIpDW-QF0dmQnAL8D_FuNg2WxF7uJSYo", 437 + "y": "orKbmG6L6kRugAB2OWzWNgulXRfyOR06GTm353Er--c", 438 + "d": "YobJpI7p7T5dfU0cDRE4SQwp0eOFR6LOGrsqZE1GG1A" 439 ~ }"#; |
unnecessary hashes around raw string literal: trustchain-core/src/data.rs#L425
warning: unnecessary hashes around raw string literal --> trustchain-core/src/data.rs:425:40 | 425 | pub const TEST_NEXT_UPDATE_KEY: &str = r##"{ | ________________________________________^ 426 | | "kty": "EC", 427 | | "crv": "secp256k1", 428 | | "x": "hm_Pj46yibXbFNyARPXfOKIAEI_UKqfmZwzZDfbUSSk", 429 | | "y": "Djxgs6Ex71m6K0QCrn4l2naNo4F6IYXfu0LrBhW2RQU", 430 | | "d": "rAUu7DWaQ2ceSap_NzJNj1YOD2yP_bf1JqabuQJz6rc" 431 | | }"##; | |________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes help: try | 425 ~ pub const TEST_NEXT_UPDATE_KEY: &str = r#"{ 426 + "kty": "EC", 427 + "crv": "secp256k1", 428 + "x": "hm_Pj46yibXbFNyARPXfOKIAEI_UKqfmZwzZDfbUSSk", 429 + "y": "Djxgs6Ex71m6K0QCrn4l2naNo4F6IYXfu0LrBhW2RQU", 430 + "d": "rAUu7DWaQ2ceSap_NzJNj1YOD2yP_bf1JqabuQJz6rc" 431 ~ }"#; |
unnecessary hashes around raw string literal: trustchain-core/src/data.rs#L417
warning: unnecessary hashes around raw string literal --> trustchain-core/src/data.rs:417:35 | 417 | pub const TEST_UPDATE_KEY: &str = r##"{ | ___________________________________^ 418 | | "kty": "EC", 419 | | "crv": "secp256k1", 420 | | "x": "2hm19BwmXmR8Vfuw2XbGrusm89Pg6dyExlzDfc-CiM8", 421 | | "y": "uFjW0fKdhHaY4c_5E9Wkk3cPi9sJ5rP3oyl1ssV_X6A", 422 | | "d": "Z2vJqNRjbWvJX2NzABKlHI2V00HWmV2KNI5P4mmxRbg" 423 | | }"##; | |________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes help: try | 417 ~ pub const TEST_UPDATE_KEY: &str = r#"{ 418 + "kty": "EC", 419 + "crv": "secp256k1", 420 + "x": "2hm19BwmXmR8Vfuw2XbGrusm89Pg6dyExlzDfc-CiM8", 421 + "y": "uFjW0fKdhHaY4c_5E9Wkk3cPi9sJ5rP3oyl1ssV_X6A", 422 + "d": "Z2vJqNRjbWvJX2NzABKlHI2V00HWmV2KNI5P4mmxRbg" 423 ~ }"#; |
unnecessary hashes around raw string literal: trustchain-core/src/data.rs#L399
warning: unnecessary hashes around raw string literal --> trustchain-core/src/data.rs:399:37 | 399 | pub const TEST_SIGNING_KEYS: &str = r##"[ | _____________________________________^ 400 | | { 401 | | "kty": "EC", 402 | | "crv": "secp256k1", ... | 414 | | ] 415 | | "##; | |_______^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes help: try | 399 ~ pub const TEST_SIGNING_KEYS: &str = r#"[ 400 + { 401 + "kty": "EC", 402 + "crv": "secp256k1", 403 + "x": "aPNNzj64rnImzI60EP0iln_u5fyHZ1k47diqmlUrwXw", 404 + "y": "fbfKhw08ZtGy9vbyJo6kiFohhGFIrnzZIUNDvEQeAYQ", 405 + "d": "sfsIThyN_6EKPjhQasF8yR27-qlQPUTGiP4QtkPTKM8" 406 + }, 407 + { 408 + "kty": "EC", 409 + "crv": "secp256k1", 410 + "x": "gjk_d4WRM5hFD7tP8vvXhHgp0MQkKwFX0uAvyjNJQJg", 411 + "y": "e5lq0RW41Y5MH1pOTm-3_18GcxKp1lO4SfbzApRaVtE", 412 + "d": "U7pUq3BovVnYT1mi1lds60wbueUKb5GobV_WvjOuY14" 413 + } 414 + ] 415 ~ "#; |
unnecessary hashes around raw string literal: trustchain-core/src/data.rs#L291
warning: unnecessary hashes around raw string literal --> trustchain-core/src/data.rs:291:53 | 291 | pub const TEST_TRUSTCHAIN_DOCUMENT_METADATA: &str = r##" | _____________________________________________________^ 292 | | { 293 | | "canonicalId" : "did:ion:test:EiCBr7qGDecjkR2yUBhn3aNJPUR3TSEOlkpNcL0Q5Au9ZQ", 294 | | "method" : { ... | 304 | | } 305 | | "##; | |___^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes help: try | 291 ~ pub const TEST_TRUSTCHAIN_DOCUMENT_METADATA: &str = r#" 292 + { 293 + "canonicalId" : "did:ion:test:EiCBr7qGDecjkR2yUBhn3aNJPUR3TSEOlkpNcL0Q5Au9ZQ", 294 + "method" : { 295 + "published" : true, 296 + "recoveryCommitment" : "EiDZpHjQ5x7aRRqv6aUtmOdHsxWktAm1kU1IZl1w7iexsw", 297 + "updateCommitment" : "EiBWPR1JNdAQ4j3ZMqurb4rt10NA7s17lztFF9OIcEO3ew" 298 + }, 299 + "proof" : { 300 + "id" : "did:ion:test:EiCBr7qGDecjkR2yUBhn3aNJPUR3TSEOlkpNcL0Q5Au9ZQ", 301 + "type" : "JsonWebSignature2020", 302 + "proofValue" : "eyJhbGciOiJFUzI1NksifQ.IkVpQmNiTkRRcjZZNHNzZGc5QXo4eC1qNy1yS1FuNWk5T2Q2S3BjZ2c0RU1KOXci.Nii8p38DtzyurmPHO9sV2JLSH7-Pv-dCKQ0Y-H34rplwhhwca2nSra4ZofcUsHCG6u1oKJ0x4AmMUD2_3UIhRA" 303 + } 304 + } 305 ~ "#; |
unnecessary hashes around raw string literal: trustchain-core/src/data.rs#L277
warning: unnecessary hashes around raw string literal --> trustchain-core/src/data.rs:277:51 | 277 | pub const TEST_SIDETREE_DOCUMENT_METADATA: &str = r##" | ___________________________________________________^ 278 | | { 279 | | "canonicalId" : "did:ion:test:EiCBr7qGDecjkR2yUBhn3aNJPUR3TSEOlkpNcL0Q5Au9ZQ", 280 | | "method" : { ... | 285 | | } 286 | | "##; | |___^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes = note: `#[warn(clippy::needless_raw_string_hashes)]` on by default help: try | 277 ~ pub const TEST_SIDETREE_DOCUMENT_METADATA: &str = r#" 278 + { 279 + "canonicalId" : "did:ion:test:EiCBr7qGDecjkR2yUBhn3aNJPUR3TSEOlkpNcL0Q5Au9ZQ", 280 + "method" : { 281 + "published" : true, 282 + "recoveryCommitment" : "EiDZpHjQ5x7aRRqv6aUtmOdHsxWktAm1kU1IZl1w7iexsw", 283 + "updateCommitment" : "EiBWPR1JNdAQ4j3ZMqurb4rt10NA7s17lztFF9OIcEO3ew" 284 + } 285 + } 286 ~ "#; |
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/