[INFO] fetching crate keri-core 0.17.10... [INFO] linting keri-core-0.17.10 against nightly for clippy-nonminimal_bool-denied [INFO] extracting crate keri-core 0.17.10 into /workspace/builds/worker-5-tc1/source [INFO] started tweaking crates.io crate keri-core 0.17.10 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate keri-core 0.17.10 [INFO] tweaked toml for crates.io crate keri-core 0.17.10 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate keri-core 0.17.10 on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate keri-core 0.17.10 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded strum_macros v0.24.3 [INFO] [stderr] Downloaded signature v1.3.2 [INFO] [stderr] Downloaded said v0.4.3 [INFO] [stderr] Downloaded array-init v0.0.4 [INFO] [stderr] Downloaded serde-hex v0.1.0 [INFO] [stderr] Downloaded strum v0.24.1 [INFO] [stderr] Downloaded ed25519 v1.5.3 [INFO] [stderr] Downloaded group v0.10.0 [INFO] [stderr] Downloaded rancor v0.1.1 [INFO] [stderr] Downloaded num v0.2.1 [INFO] [stderr] Downloaded sad_macros v0.2.0 [INFO] [stderr] Downloaded hmac v0.11.0 [INFO] [stderr] Downloaded ff v0.10.1 [INFO] [stderr] Downloaded num-rational v0.2.4 [INFO] [stderr] Downloaded crypto-bigint v0.2.5 [INFO] [stderr] Downloaded criterion-plot v0.5.0 [INFO] [stderr] Downloaded k256 v0.9.5 [INFO] [stderr] Downloaded criterion v0.4.0 [INFO] [stderr] Downloaded fraction v0.9.0 [INFO] [stderr] Downloaded blake2 v0.9.2 [INFO] [stderr] Downloaded cesrox v0.1.8 [INFO] [stderr] Downloaded der v0.4.5 [INFO] [stderr] Downloaded num-bigint v0.2.6 [INFO] [stderr] Downloaded elliptic-curve v0.10.4 [INFO] [stderr] Downloaded rkyv_derive v0.8.14 [INFO] [stderr] Downloaded crypto-mac v0.11.1 [INFO] [stderr] Downloaded rkyv v0.8.14 [INFO] [stderr] Downloaded ecdsa v0.12.4 [INFO] [stderr] Downloaded redb v2.6.3 [INFO] [stderr] Downloaded const-oid v0.6.2 [INFO] [stderr] Downloaded pkcs8 v0.7.6 [INFO] [stderr] Downloaded munge v0.4.7 [INFO] [stderr] Downloaded ptr_meta v0.3.1 [INFO] [stderr] Downloaded simdutf8 v0.1.5 [INFO] [stderr] Downloaded munge_macro v0.4.7 [INFO] [stderr] Downloaded spki v0.4.1 [INFO] [stderr] Downloaded ptr_meta_derive v0.3.1 [INFO] [stderr] Downloaded bytecheck v0.8.2 [INFO] [stderr] Downloaded rend v0.5.3 [INFO] [stderr] Downloaded crypto-mac v0.8.0 [INFO] [stderr] Downloaded bytecheck_derive v0.8.2 [INFO] [stderr] Downloaded sodiumoxide v0.2.7 [INFO] [stderr] Downloaded libsodium-sys v0.2.7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0f7a3935ea979c47ccbe9324014711f1361f988ac8e63903bc4fedc65d9a0e2b [INFO] running `Command { std: "docker" "start" "-a" "0f7a3935ea979c47ccbe9324014711f1361f988ac8e63903bc4fedc65d9a0e2b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0f7a3935ea979c47ccbe9324014711f1361f988ac8e63903bc4fedc65d9a0e2b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0f7a3935ea979c47ccbe9324014711f1361f988ac8e63903bc4fedc65d9a0e2b", kill_on_drop: false }` [INFO] [stdout] 0f7a3935ea979c47ccbe9324014711f1361f988ac8e63903bc4fedc65d9a0e2b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 21f0390381153490125a5f2bd4397295f2481f156a15aabe28a96f169f125329 [INFO] running `Command { std: "docker" "start" "-a" "21f0390381153490125a5f2bd4397295f2481f156a15aabe28a96f169f125329", kill_on_drop: false }` [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Checking subtle v2.4.1 [INFO] [stderr] Checking parking v2.2.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling zerocopy v0.8.39 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Compiling cc v1.2.55 [INFO] [stderr] Compiling rustix v1.1.3 [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Checking concurrent-queue v2.5.0 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking linux-raw-sys v0.11.0 [INFO] [stderr] Checking zeroize v1.8.2 [INFO] [stderr] Checking const-oid v0.6.2 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Checking block-padding v0.2.1 [INFO] [stderr] Compiling semver v1.0.27 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking event-listener v5.4.1 [INFO] [stderr] Checking futures-lite v2.6.1 [INFO] [stderr] Checking der v0.4.5 [INFO] [stderr] Checking signature v1.3.2 [INFO] [stderr] Checking ff v0.10.1 [INFO] [stderr] Checking crypto-common v0.1.7 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling async-io v2.6.0 [INFO] [stderr] Checking event-listener-strategy v0.5.4 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Checking async-task v4.7.1 [INFO] [stderr] Checking os_str_bytes v6.6.1 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking async-channel v2.5.0 [INFO] [stderr] Checking spki v0.4.1 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Checking piper v0.2.4 [INFO] [stderr] Checking group v0.10.0 [INFO] [stderr] Checking pkcs8 v0.7.6 [INFO] [stderr] Checking clap_lex v0.2.4 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking crypto-bigint v0.2.5 [INFO] [stderr] Checking crypto-mac v0.11.1 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking value-bag v1.12.0 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking half v1.8.3 [INFO] [stderr] Checking textwrap v0.16.2 [INFO] [stderr] Checking simdutf8 v0.1.5 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking log v0.4.29 [INFO] [stderr] Checking hmac v0.11.0 [INFO] [stderr] Checking elliptic-curve v0.10.4 [INFO] [stderr] Checking blocking v1.6.2 [INFO] [stderr] Checking async-executor v1.13.3 [INFO] [stderr] Checking async-lock v3.4.2 [INFO] [stderr] Checking sha2 v0.9.9 [INFO] [stderr] Checking crypto-mac v0.8.0 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Checking event-listener v2.5.3 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking rmp v0.8.15 [INFO] [stderr] Compiling redb v2.6.3 [INFO] [stderr] Checking ciborium-io v0.2.2 [INFO] [stderr] Checking constant_time_eq v0.4.2 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Checking clap v3.2.25 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Checking regex-syntax v0.8.9 [INFO] [stderr] Checking plotters-backend v0.3.7 [INFO] [stderr] Checking nodrop v0.1.14 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking sha3 v0.9.1 [INFO] [stderr] Checking ed25519 v2.2.3 [INFO] [stderr] Checking array-init v0.0.4 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking async-channel v1.9.0 [INFO] [stderr] Checking plotters-svg v0.3.7 [INFO] [stderr] Checking ecdsa v0.12.4 [INFO] [stderr] Checking blake2 v0.9.2 [INFO] [stderr] Compiling blake3 v1.8.3 [INFO] [stderr] Compiling libsodium-sys v0.2.7 [INFO] [stderr] Checking kv-log-macro v1.0.7 [INFO] [stderr] Checking smallvec v0.6.14 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking cast v0.3.0 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking k256 v0.9.5 [INFO] [stderr] Checking plotters v0.3.7 [INFO] [stderr] Checking ed25519 v1.5.3 [INFO] [stderr] Checking anes v0.1.6 [INFO] [stderr] Checking oorandom v11.1.5 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking regex-automata v0.4.14 [INFO] [stderr] Checking serde_json v1.0.149 [INFO] [stderr] Checking indexmap v2.13.0 [INFO] [stderr] Checking criterion-plot v0.5.0 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking regex v1.12.3 [INFO] [stderr] Checking polling v3.11.0 [INFO] [stderr] Checking tempfile v3.24.0 [INFO] [stderr] Checking async-global-executor v2.4.1 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling zerocopy-derive v0.8.39 [INFO] [stderr] Compiling ptr_meta_derive v0.3.1 [INFO] [stderr] Compiling bytecheck_derive v0.8.2 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling munge_macro v0.4.7 [INFO] [stderr] Compiling rkyv_derive v0.8.14 [INFO] [stderr] Compiling sad_macros v0.2.0 [INFO] [stderr] Checking async-std v1.13.2 [INFO] [stderr] Checking ptr_meta v0.3.1 [INFO] [stderr] Checking rancor v0.1.1 [INFO] [stderr] Checking munge v0.4.7 [INFO] [stderr] Checking bytecheck v0.8.2 [INFO] [stderr] Checking rend v0.5.3 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking ed25519-dalek v2.2.0 [INFO] [stderr] Checking chrono v0.4.43 [INFO] [stderr] Checking serde_cbor v0.11.2 [INFO] [stderr] Checking rmp-serde v1.3.1 [INFO] [stderr] Checking serde-hex v0.1.0 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking num v0.2.1 [INFO] [stderr] Checking fraction v0.9.0 [INFO] [stderr] Checking cesrox v0.1.8 [INFO] [stderr] Checking rkyv v0.8.14 [INFO] [stderr] Checking said v0.4.3 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking half v2.7.1 [INFO] [stderr] Checking ciborium-ll v0.2.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking ciborium v0.2.2 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking criterion v0.4.0 [INFO] [stderr] Checking keri-core v0.17.10 (/opt/rustwide/workdir) [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/event/sections/key_config.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | / #[rkyv(derive(Debug))] [INFO] [stdout] 23 | | [INFO] [stdout] | |_^ [INFO] [stdout] 24 | pub struct NextKeysData { [INFO] [stdout] | ----------------------- the attribute applies to this struct [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/event/sections/seal.rs:164:1 [INFO] [stdout] | [INFO] [stdout] 164 | / #[rkyv(derive(Debug))] [INFO] [stdout] 165 | | [INFO] [stdout] | |_^ [INFO] [stdout] 166 | pub struct SourceSeal { [INFO] [stdout] | --------------------- the attribute applies to this struct [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/event/sections/threshold.rs:209:1 [INFO] [stdout] | [INFO] [stdout] 209 | / #[rkyv(derive(Debug))] [INFO] [stdout] 210 | | [INFO] [stdout] | |_^ [INFO] [stdout] 211 | pub struct MultiClauses(Vec); [INFO] [stdout] | ----------------------- the attribute applies to this struct [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/processor/event_storage.rs:377:17 [INFO] [stdout] | [INFO] [stdout] 377 | sn: sn, [INFO] [stdout] | ^^^^^^ help: replace it with: `sn` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: `#[warn(clippy::redundant_field_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_all_nontrans_receipts_couplets` is never used [INFO] [stdout] --> src/database/redb/mod.rs:352:8 [INFO] [stdout] | [INFO] [stdout] 254 | impl RedbDatabase { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 352 | fn get_all_nontrans_receipts_couplets( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/actor/event_generator.rs:30:6 [INFO] [stdout] | [INFO] [stdout] 30 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `#[warn(clippy::result_large_err)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/actor/event_generator.rs:58:6 [INFO] [stdout] | [INFO] [stdout] 58 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/actor/event_generator.rs:110:6 [INFO] [stdout] | [INFO] [stdout] 110 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/actor/event_generator.rs:133:6 [INFO] [stdout] | [INFO] [stdout] 133 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/actor/event_generator.rs:151:6 [INFO] [stdout] | [INFO] [stdout] 151 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/actor/event_generator.rs:171:6 [INFO] [stdout] | [INFO] [stdout] 171 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/actor/mod.rs:89:68 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn process_notice(msg: Notice, processor: &P) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/escrow_database.rs:75:73 [INFO] [stdout] | [INFO] [stdout] 75 | .log_event(&crate::database::redb::WriteTxnMode::CreateNew, &event)?; [INFO] [stdout] | ^^^^^^ help: change this to: `event` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/escrow_database.rs:91:73 [INFO] [stdout] | [INFO] [stdout] 91 | .log_event(&crate::database::redb::WriteTxnMode::CreateNew, &event)?; [INFO] [stdout] | ^^^^^^ help: change this to: `event` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/escrow_database.rs:94:28 [INFO] [stdout] | [INFO] [stdout] 94 | self.escrow.insert(&id, sn, &said)?; [INFO] [stdout] | ^^^ help: change this to: `id` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression borrows a value the compiler would automatically borrow [INFO] [stdout] --> src/database/redb/escrow_database.rs:201:29 [INFO] [stdout] | [INFO] [stdout] 201 | let mut table = (&write_txn).open_multimap_table(self.sn_key_table)?; [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `write_txn` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/escrow_database.rs:202:54 [INFO] [stdout] | [INFO] [stdout] 202 | let value = rkyv_adapter::serialize_said(&digest)?; [INFO] [stdout] | ^^^^^^^ help: change this to: `digest` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression borrows a value the compiler would automatically borrow [INFO] [stdout] --> src/database/redb/escrow_database.rs:205:29 [INFO] [stdout] | [INFO] [stdout] 205 | let mut table = (&write_txn).open_table(self.dts_table)?; [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `write_txn` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/escrow_database.rs:207:52 [INFO] [stdout] | [INFO] [stdout] 207 | let key = rkyv_adapter::serialize_said(&digest)?; [INFO] [stdout] | ^^^^^^^ help: change this to: `digest` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/loging.rs:83:31 [INFO] [stdout] | [INFO] [stdout] 83 | self.insert_key_event(&txn_mode, &signed_event.event_message)?; [INFO] [stdout] | ^^^^^^^^^ help: change this to: `txn_mode` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/loging.rs:89:40 [INFO] [stdout] | [INFO] [stdout] 89 | self.insert_indexed_signatures(&txn_mode, &digest, &signed_event.signatures)?; [INFO] [stdout] | ^^^^^^^^^ help: change this to: `txn_mode` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/loging.rs:91:42 [INFO] [stdout] | [INFO] [stdout] 91 | self.insert_nontrans_receipt(&txn_mode, &digest, &wits)?; [INFO] [stdout] | ^^^^^^^^^ help: change this to: `txn_mode` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/loging.rs:91:62 [INFO] [stdout] | [INFO] [stdout] 91 | self.insert_nontrans_receipt(&txn_mode, &digest, &wits)?; [INFO] [stdout] | ^^^^^ help: change this to: `wits` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/loging.rs:95:37 [INFO] [stdout] | [INFO] [stdout] 95 | self.insert_source_seal(&txn_mode, &digest, delegator_seal)?; [INFO] [stdout] | ^^^^^^^^^ help: change this to: `txn_mode` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/loging.rs:114:38 [INFO] [stdout] | [INFO] [stdout] 114 | self.insert_nontrans_receipt(&txn_mode, digest, &signed_receipt.signatures)?; [INFO] [stdout] | ^^^^^^^^^ help: change this to: `txn_mode` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/loging.rs:137:48 [INFO] [stdout] | [INFO] [stdout] 137 | let key = rkyv_adapter::serialize_said(&said).unwrap(); [INFO] [stdout] | ^^^^^ help: change this to: `said` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/loging.rs:138:42 [INFO] [stdout] | [INFO] [stdout] 138 | self.get_event_by_serialized_key(&key.as_slice()) [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: change this to: `key.as_slice()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/loging.rs:145:48 [INFO] [stdout] | [INFO] [stdout] 145 | let key = rkyv_adapter::serialize_said(&said).unwrap(); [INFO] [stdout] | ^^^^^ help: change this to: `said` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/loging.rs:146:47 [INFO] [stdout] | [INFO] [stdout] 146 | self.get_signatures_by_serialized_key(&key.as_slice()) [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: change this to: `key.as_slice()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/database/redb/loging.rs:172:59 [INFO] [stdout] | [INFO] [stdout] 172 | execute_in_transaction(self.db.clone(), txn_mode, |write_txn| { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 173 | | let mut table = write_txn.open_multimap_table(NONTRANS_RCTS)?; [INFO] [stdout] 174 | | [INFO] [stdout] 175 | | for value in nontrans { [INFO] [stdout] ... | [INFO] [stdout] 179 | | Ok(()) [INFO] [stdout] 180 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/redb/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/loging.rs:196:10 [INFO] [stdout] | [INFO] [stdout] 196 | ) -> Result, RedbError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/redb/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/loging.rs:198:47 [INFO] [stdout] | [INFO] [stdout] 198 | .get_signatures_by_serialized_key(&key) [INFO] [stdout] | ^^^^ help: change this to: `key` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/loging.rs:204:54 [INFO] [stdout] | [INFO] [stdout] 204 | let event = self.get_event_by_serialized_key(&key)?; [INFO] [stdout] | ^^^^ help: change this to: `key` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/loging.rs:224:10 [INFO] [stdout] | [INFO] [stdout] 224 | ) -> Result<(), RedbError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/redb/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/database/redb/loging.rs:228:59 [INFO] [stdout] | [INFO] [stdout] 228 | execute_in_transaction(self.db.clone(), txn_mode, |write_txn| { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 229 | | let mut table = write_txn.open_table(EVENTS)?; [INFO] [stdout] 230 | | let key = rkyv_adapter::serialize_said(&digest)?; [INFO] [stdout] 231 | | table.insert(key.as_slice(), &value.as_ref())?; [INFO] [stdout] 232 | | Ok(()) [INFO] [stdout] 233 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/redb/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/loging.rs:244:10 [INFO] [stdout] | [INFO] [stdout] 244 | ) -> Result<(), RedbError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/redb/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/database/redb/loging.rs:246:59 [INFO] [stdout] | [INFO] [stdout] 246 | execute_in_transaction(self.db.clone(), txn_mode, |write_txn| { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 247 | | let mut table = write_txn.open_multimap_table(table)?; [INFO] [stdout] 248 | | [INFO] [stdout] 249 | | for value in values { [INFO] [stdout] ... | [INFO] [stdout] 253 | | Ok(()) [INFO] [stdout] 254 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/redb/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/loging.rs:262:10 [INFO] [stdout] | [INFO] [stdout] 262 | ) -> Result<(), RedbError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/redb/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/loging.rs:271:10 [INFO] [stdout] | [INFO] [stdout] 271 | ) -> Result<(), RedbError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/redb/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/database/redb/loging.rs:273:59 [INFO] [stdout] | [INFO] [stdout] 273 | execute_in_transaction(self.db.clone(), txn_mode, |write_txn| { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 274 | | let mut table = write_txn.open_table(SEALS)?; [INFO] [stdout] 275 | | [INFO] [stdout] 276 | | let seal = rkyv::to_bytes::(seal)?; [INFO] [stdout] 277 | | table.insert(serialized_said.as_slice(), seal.as_ref())?; [INFO] [stdout] 278 | | Ok(()) [INFO] [stdout] 279 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/redb/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/loging.rs:286:10 [INFO] [stdout] | [INFO] [stdout] 286 | ) -> Result<(), RedbError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/redb/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/loging.rs:287:75 [INFO] [stdout] | [INFO] [stdout] 287 | self.insert_with_digest_key(&WriteTxnMode::CreateNew, TRANS_RCTS, &said, trans) [INFO] [stdout] | ^^^^^ help: change this to: `said` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/loging.rs:295:10 [INFO] [stdout] | [INFO] [stdout] 295 | ) -> Result<(), RedbError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/redb/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/loging.rs:302:10 [INFO] [stdout] | [INFO] [stdout] 302 | ) -> Result>, RedbError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/redb/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/database/redb/loging.rs:309:18 [INFO] [stdout] | [INFO] [stdout] 309 | .map(|sig| match sig { [INFO] [stdout] | __________________^ [INFO] [stdout] 310 | | Ok(sig) => Ok(rkyv_adapter::deserialize_nontransferable(sig.value()).unwrap()), [INFO] [stdout] 311 | | Err(e) => Err(RedbError::from(e)), [INFO] [stdout] 312 | | }) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/redb/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/loging.rs:326:10 [INFO] [stdout] | [INFO] [stdout] 326 | ) -> Result, RedbError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/redb/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/loging.rs:341:10 [INFO] [stdout] | [INFO] [stdout] 341 | ) -> Result>, RedbError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/redb/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/loging.rs:357:10 [INFO] [stdout] | [INFO] [stdout] 357 | ) -> Result>, RedbError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/redb/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/loging.rs:373:10 [INFO] [stdout] | [INFO] [stdout] 373 | ) -> Result, RedbError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/redb/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of a disallowed/placeholder name `foo` [INFO] [stdout] --> src/database/redb/rkyv_adapter/said_wrapper.rs:71:17 [INFO] [stdout] | [INFO] [stdout] 71 | fn get_code(foo: &HashFunction) -> HashFunctionCode { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_names [INFO] [stdout] = note: `#[warn(clippy::disallowed_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `JSON` contains a capitalized acronym [INFO] [stdout] --> src/database/redb/rkyv_adapter/serialization_info_wrapper.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | JSON, [INFO] [stdout] | ^^^^ help: consider making the acronym lowercase, except the initial letter: `Json` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] = note: `#[warn(clippy::upper_case_acronyms)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `MGPK` contains a capitalized acronym [INFO] [stdout] --> src/database/redb/rkyv_adapter/serialization_info_wrapper.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | MGPK, [INFO] [stdout] | ^^^^ help: consider making the acronym lowercase, except the initial letter: `Mgpk` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `CBOR` contains a capitalized acronym [INFO] [stdout] --> src/database/redb/rkyv_adapter/serialization_info_wrapper.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | CBOR, [INFO] [stdout] | ^^^^ help: consider making the acronym lowercase, except the initial letter: `Cbor` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enclosing `Ok` and `?` operator are unneeded [INFO] [stdout] --> src/database/redb/rkyv_adapter/mod.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | / Ok(rkyv::to_bytes( [INFO] [stdout] 19 | | With::::cast(said), [INFO] [stdout] 20 | | )?) [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark [INFO] [stdout] = note: `#[warn(clippy::needless_question_mark)]` on by default [INFO] [stdout] help: remove the enclosing `Ok` and `?` operator [INFO] [stdout] | [INFO] [stdout] 18 ~ rkyv::to_bytes( [INFO] [stdout] 19 | With::::cast(said), [INFO] [stdout] 20 ~ ) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/rkyv_adapter/mod.rs:24:50 [INFO] [stdout] | [INFO] [stdout] 24 | let archived: &ArchivedSAIDef = rkyv::access(&bytes)?; [INFO] [stdout] | ^^^^^^ help: change this to: `bytes` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/rkyv_adapter/mod.rs:31:83 [INFO] [stdout] | [INFO] [stdout] 31 | let archived = rkyv::access::(&bytes).unwrap(); [INFO] [stdout] | ^^^^^^ help: change this to: `bytes` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/rkyv_adapter/mod.rs:36:80 [INFO] [stdout] | [INFO] [stdout] 36 | let archived = rkyv::access::(&bytes).unwrap(); [INFO] [stdout] | ^^^^^^ help: change this to: `bytes` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/rkyv_adapter/mod.rs:43:82 [INFO] [stdout] | [INFO] [stdout] 43 | let archived = rkyv::access::(&bytes).unwrap(); [INFO] [stdout] | ^^^^^^ help: change this to: `bytes` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/rkyv_adapter/mod.rs:48:76 [INFO] [stdout] | [INFO] [stdout] 48 | let archived = rkyv::access::(&bytes).unwrap(); [INFO] [stdout] | ^^^^^^ help: change this to: `bytes` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: importing legacy numeric constants [INFO] [stdout] --> src/database/redb/mod.rs:17:34 [INFO] [stdout] | [INFO] [stdout] 17 | use std::{path::Path, sync::Arc, u64}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: remove this import [INFO] [stdout] = note: then `u64::` will resolve to the respective associated constant [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/mod.rs:94:35 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn new(db_path: &Path) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> src/database/redb/mod.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 179 | / let out = match params { [INFO] [stdout] 180 | | QueryParameters::BySn { id, sn } => self [INFO] [stdout] 181 | | .get_kel(&id, sn, 1) [INFO] [stdout] 182 | | .map(|el| Some(el.into_iter())) [INFO] [stdout] ... | [INFO] [stdout] 188 | | QueryParameters::All { id } => self.get_full_kel(id).map(|kel| kel.into_iter()), [INFO] [stdout] 189 | | }; [INFO] [stdout] | |__________- unnecessary `let` binding [INFO] [stdout] 190 | out [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return [INFO] [stdout] = note: `#[warn(clippy::let_and_return)]` on by default [INFO] [stdout] help: return the expression directly [INFO] [stdout] | [INFO] [stdout] 179 ~ [INFO] [stdout] 180 ~ match params { [INFO] [stdout] 181 + QueryParameters::BySn { id, sn } => self [INFO] [stdout] 182 + .get_kel(&id, sn, 1) [INFO] [stdout] 183 + .map(|el| Some(el.into_iter())) [INFO] [stdout] 184 + .unwrap(), [INFO] [stdout] 185 + QueryParameters::Range { id, start, limit } => self [INFO] [stdout] 186 + .get_kel(&id, start, limit) [INFO] [stdout] 187 + .map(|el| Some(el.into_iter())) [INFO] [stdout] 188 + .unwrap(), [INFO] [stdout] 189 + QueryParameters::All { id } => self.get_full_kel(id).map(|kel| kel.into_iter()), [INFO] [stdout] 190 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/mod.rs:260:10 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 260 | ) -> Result<(), RedbError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/database/redb/mod.rs:263:59 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 263 | execute_in_transaction(self.db.clone(), txn_mode, |write_txn| { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 264 | | let mut table = write_txn.open_table(KELS)?; [INFO] [stdout] 265 | | let id = event.data.prefix.to_str(); [INFO] [stdout] 266 | | let sn = event.data.sn; [INFO] [stdout] ... | [INFO] [stdout] 269 | | Ok(()) [INFO] [stdout] 270 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/mod.rs:277:10 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 277 | ) -> Result<(), RedbError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/database/redb/mod.rs:278:59 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 278 | execute_in_transaction(self.db.clone(), txn_mode, |write_txn| { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 279 | | let mut table = write_txn.open_table(KEY_STATES)?; [INFO] [stdout] 280 | | let key = event.data.prefix.to_str(); [INFO] [stdout] ... | [INFO] [stdout] 295 | | Ok(()) [INFO] [stdout] 296 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/mod.rs:303:10 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 303 | ) -> Result, RedbError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/database/redb/mod.rs:309:33 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 309 | .map(|value| -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/mod.rs:323:10 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 323 | ) -> Result, RedbError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/mod.rs:355:10 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 355 | ) -> Result>, RedbError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `map(..).flatten()` on `Iterator` [INFO] [stdout] --> src/database/redb/mod.rs:362:14 [INFO] [stdout] | [INFO] [stdout] 362 | .map(|digest| match digest { [INFO] [stdout] | ______________^ [INFO] [stdout] 363 | | Ok((_, value)) => self [INFO] [stdout] 364 | | .log_db [INFO] [stdout] 365 | | .get_nontrans_couplets_by_key(value.value()) [INFO] [stdout] ... | [INFO] [stdout] 369 | | }) [INFO] [stdout] 370 | | .flatten(); [INFO] [stdout] | |______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_flatten [INFO] [stdout] = note: `#[warn(clippy::map_flatten)]` on by default [INFO] [stdout] help: try replacing `map` with `flat_map` and remove the `.flatten()` [INFO] [stdout] | [INFO] [stdout] 362 ~ .flat_map(|digest| match digest { [INFO] [stdout] 363 + Ok((_, value)) => self [INFO] [stdout] 364 + .log_db [INFO] [stdout] 365 + .get_nontrans_couplets_by_key(value.value()) [INFO] [stdout] 366 + .unwrap() [INFO] [stdout] 367 + .unwrap(), [INFO] [stdout] 368 + Err(_) => todo!(), [INFO] [stdout] 369 ~ }); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/database/redb/mod.rs:375:16 [INFO] [stdout] | [INFO] [stdout] 375 | fn get_kel<'a>( [INFO] [stdout] | ^^ [INFO] [stdout] 376 | &'a self, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] = note: `#[warn(clippy::needless_lifetimes)]` on by default [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 375 ~ fn get_kel( [INFO] [stdout] 376 ~ &self, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/mod.rs:380:10 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 380 | ) -> Result>, RedbError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/database/redb/mod.rs:397:21 [INFO] [stdout] | [INFO] [stdout] 397 | fn get_full_kel<'a>( [INFO] [stdout] | ^^ [INFO] [stdout] 398 | &'a self, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 397 ~ fn get_full_kel( [INFO] [stdout] 398 ~ &self, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/mod.rs:436:6 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 436 | ) -> Result<(), RedbError> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/timestamped.rs:27:51 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn is_stale(&self, duration: Duration) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-canonical implementation of `partial_cmp` on an `Ord` type [INFO] [stdout] --> src/database/timestamped.rs:70:1 [INFO] [stdout] | [INFO] [stdout] 70 | / impl PartialOrd for Timestamped { [INFO] [stdout] 71 | | fn partial_cmp(&self, other: &Self) -> Option { [INFO] [stdout] 72 | | PartialOrd::partial_cmp( [INFO] [stdout] 73 | | &self.signed_event_message.event_message.data.get_sn(), [INFO] [stdout] ... | [INFO] [stdout] 77 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#non_canonical_partial_ord_impl [INFO] [stdout] = note: `#[warn(clippy::non_canonical_partial_ord_impl)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 71 - fn partial_cmp(&self, other: &Self) -> Option { [INFO] [stdout] 72 - PartialOrd::partial_cmp( [INFO] [stdout] 73 - &self.signed_event_message.event_message.data.get_sn(), [INFO] [stdout] 74 - &other.signed_event_message.event_message.data.get_sn(), [INFO] [stdout] 75 - ) [INFO] [stdout] 76 - } [INFO] [stdout] 71 + fn partial_cmp(&self, other: &Self) -> Option { Some(self.cmp(other)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/database/mod.rs:203:17 [INFO] [stdout] | [INFO] [stdout] 203 | escrow: Arc< [INFO] [stdout] | _________________^ [INFO] [stdout] 204 | | dyn SequencedEventDatabase< [INFO] [stdout] 205 | | DatabaseType = Self::EscrowDatabaseType, [INFO] [stdout] 206 | | Error = Self::Error, [INFO] [stdout] 207 | | DigestIter = Box>, [INFO] [stdout] 208 | | >, [INFO] [stdout] 209 | | >, [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] = note: `#[warn(clippy::type_complexity)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event/event_data/delegated/mod.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused "map closure" when calling `Option::map_or_else` value [INFO] [stdout] --> src/event/event_data/inception.rs:55:29 [INFO] [stdout] | [INFO] [stdout] 55 | witness_config: witness_config.map_or_else(InceptionWitnessConfig::default, |w| w), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `unwrap_or_else`: `witness_config.unwrap_or_else(InceptionWitnessConfig::default)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_option_map_or_else [INFO] [stdout] = note: `#[warn(clippy::unnecessary_option_map_or_else)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused "map closure" when calling `Option::map_or_else` value [INFO] [stdout] --> src/event/event_data/inception.rs:56:38 [INFO] [stdout] | [INFO] [stdout] 56 | inception_configuration: inception_config.map_or_else(Vec::new, |c| c), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `unwrap_or_else`: `inception_config.unwrap_or_else(Vec::new)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_option_map_or_else [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event/event_data/inception.rs:70:10 [INFO] [stdout] | [INFO] [stdout] 70 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event/receipt.rs:57:29 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn encode(&self) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused "map closure" when calling `Option::map_or_else` value [INFO] [stdout] --> src/event/sections/key_config.rs:167:24 [INFO] [stdout] | [INFO] [stdout] 167 | threshold: threshold.map_or_else( [INFO] [stdout] | ________________________^ [INFO] [stdout] 168 | | || SignatureThreshold::Simple(public_keys.len() as u64 / 2 + 1), [INFO] [stdout] 169 | | |t| t, [INFO] [stdout] 170 | | ), [INFO] [stdout] | |_____________^ help: consider using `unwrap_or_else`: `threshold.unwrap_or_else(|| SignatureThreshold::Simple(public_keys.len() as u64 / 2 + 1))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_option_map_or_else [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `event::sections::key_config::SignatureError` [INFO] [stdout] --> src/event/sections/key_config.rs:195:17 [INFO] [stdout] | [INFO] [stdout] 195 | Err(SignatureError::DuplicateSignature.into()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `SignatureError::DuplicateSignature` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] = note: `#[warn(clippy::useless_conversion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `event::sections::key_config::SignatureError` [INFO] [stdout] --> src/event/sections/key_config.rs:199:17 [INFO] [stdout] | [INFO] [stdout] 199 | Err(SignatureError::TooManySignatures.into()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `SignatureError::TooManySignatures` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `Iterator::fold` on a type that implements `Try` [INFO] [stdout] --> src/event/sections/key_config.rs:211:18 [INFO] [stdout] | [INFO] [stdout] 211 | .fold(Ok(true), |acc: Result, sig| { [INFO] [stdout] | __________________^ [INFO] [stdout] 212 | | let verification_result: bool = self [INFO] [stdout] 213 | | .public_keys [INFO] [stdout] 214 | | .get(sig.index.current() as usize) [INFO] [stdout] ... | [INFO] [stdout] 217 | | Ok(acc? && verification_result) [INFO] [stdout] 218 | | }) [INFO] [stdout] | |__________________^ help: use `try_fold` instead: `try_fold(true, |acc: Result, sig| ...)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_try_fold [INFO] [stdout] = note: `#[warn(clippy::manual_try_fold)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `event::sections::key_config::SignatureError` [INFO] [stdout] --> src/event/sections/key_config.rs:215:40 [INFO] [stdout] | [INFO] [stdout] 215 | .ok_or_else(|| SignatureError::from(SignatureError::MissingIndex)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `SignatureError::from()`: `SignatureError::MissingIndex` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enclosing `Ok` and `?` operator are unneeded [INFO] [stdout] --> src/event/sections/key_config.rs:216:55 [INFO] [stdout] | [INFO] [stdout] 216 | .and_then(|key: &BasicPrefix| Ok(key.verify(message, &sig.signature)?))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark [INFO] [stdout] help: remove the enclosing `Ok` and `?` operator [INFO] [stdout] | [INFO] [stdout] 216 - .and_then(|key: &BasicPrefix| Ok(key.verify(message, &sig.signature)?))?; [INFO] [stdout] 216 + .and_then(|key: &BasicPrefix| key.verify(message, &sig.signature))?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary closure used with `bool::then` [INFO] [stdout] --> src/event/sections/threshold.rs:183:9 [INFO] [stdout] | [INFO] [stdout] 183 | / (sigs_indexes [INFO] [stdout] 184 | | .iter() [INFO] [stdout] 185 | | .fold(Some(Zero::zero()), |acc: Option, sig_index| { [INFO] [stdout] 186 | | if let (Some(element), Some(sum)) = (self.0.get(sig_index - start_index), acc) { [INFO] [stdout] ... | [INFO] [stdout] 193 | | >= One::one()) [INFO] [stdout] 194 | | .then(|| ()) [INFO] [stdout] | |____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations [INFO] [stdout] = note: `#[warn(clippy::unnecessary_lazy_evaluations)]` on by default [INFO] [stdout] help: use `then_some` instead [INFO] [stdout] | [INFO] [stdout] 194 - .then(|| ()) [INFO] [stdout] 194 + .then_some(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary closure used to substitute value for `Option::None` [INFO] [stdout] --> src/event/sections/threshold.rs:183:10 [INFO] [stdout] | [INFO] [stdout] 183 | (sigs_indexes [INFO] [stdout] | __________^ [INFO] [stdout] 184 | | .iter() [INFO] [stdout] 185 | | .fold(Some(Zero::zero()), |acc: Option, sig_index| { [INFO] [stdout] 186 | | if let (Some(element), Some(sum)) = (self.0.get(sig_index - start_index), acc) { [INFO] [stdout] ... | [INFO] [stdout] 191 | | }) [INFO] [stdout] 192 | | .ok_or_else(|| SignatureError::MissingIndex)? [INFO] [stdout] | |________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations [INFO] [stdout] help: use `ok_or` instead [INFO] [stdout] | [INFO] [stdout] 192 - .ok_or_else(|| SignatureError::MissingIndex)? [INFO] [stdout] 192 + .ok_or(SignatureError::MissingIndex)? [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `Iterator::fold` on a type that implements `Try` [INFO] [stdout] --> src/event/sections/threshold.rs:185:14 [INFO] [stdout] | [INFO] [stdout] 185 | .fold(Some(Zero::zero()), |acc: Option, sig_index| { [INFO] [stdout] | ______________^ [INFO] [stdout] 186 | | if let (Some(element), Some(sum)) = (self.0.get(sig_index - start_index), acc) { [INFO] [stdout] 187 | | Some(sum + element.fraction) [INFO] [stdout] 188 | | } else { [INFO] [stdout] ... | [INFO] [stdout] 191 | | }) [INFO] [stdout] | |______________^ help: use `try_fold` instead: `try_fold(Zero::zero(), |acc: Option, sig_index| ...)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_try_fold [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary closure used with `bool::then` [INFO] [stdout] --> src/event/sections/threshold.rs:236:9 [INFO] [stdout] | [INFO] [stdout] 236 | / self.0 [INFO] [stdout] 237 | | .iter() [INFO] [stdout] 238 | | .fold(Ok((0, true)), |acc, clause| -> Result<_, SignatureError> { [INFO] [stdout] 239 | | let (start, enough) = acc?; [INFO] [stdout] ... | [INFO] [stdout] 252 | | .1 [INFO] [stdout] 253 | | .then(|| ()) [INFO] [stdout] | |________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations [INFO] [stdout] help: use `then_some` instead [INFO] [stdout] | [INFO] [stdout] 253 - .then(|| ()) [INFO] [stdout] 253 + .then_some(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `Iterator::fold` on a type that implements `Try` [INFO] [stdout] --> src/event/sections/threshold.rs:238:14 [INFO] [stdout] | [INFO] [stdout] 238 | .fold(Ok((0, true)), |acc, clause| -> Result<_, SignatureError> { [INFO] [stdout] | ______________^ [INFO] [stdout] 239 | | let (start, enough) = acc?; [INFO] [stdout] 240 | | let sigs: Vec = sigs_indexes [INFO] [stdout] 241 | | .iter() [INFO] [stdout] ... | [INFO] [stdout] 250 | | )) [INFO] [stdout] 251 | | })? [INFO] [stdout] | |______________^ help: use `try_fold` instead: `try_fold((0, true), |acc, clause| ...)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_try_fold [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event/mod.rs:51:10 [INFO] [stdout] | [INFO] [stdout] 51 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: large size difference between variants [INFO] [stdout] --> src/event_message/cesr_adapter.rs:69:1 [INFO] [stdout] | [INFO] [stdout] 69 | / pub enum EventType { [INFO] [stdout] 70 | | KeyEvent(KeriEvent), [INFO] [stdout] | | ----------------------------- the largest variant contains at least 448 bytes [INFO] [stdout] 71 | | Receipt(Receipt), [INFO] [stdout] | | ---------------- the second-largest variant contains at least 168 bytes [INFO] [stdout] 72 | | #[cfg(feature = "mailbox")] [INFO] [stdout] ... | [INFO] [stdout] 79 | | Rpy(ReplyEvent), [INFO] [stdout] 80 | | } [INFO] [stdout] | |_^ the entire enum is at least 448 bytes [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant [INFO] [stdout] = note: `#[warn(clippy::large_enum_variant)]` on by default [INFO] [stdout] help: consider boxing the large fields or introducing indirection in some other way to reduce the total size of the enum [INFO] [stdout] | [INFO] [stdout] 70 - KeyEvent(KeriEvent), [INFO] [stdout] 70 + KeyEvent(Box>), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event_message/cesr_adapter.rs:83:32 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn serialize(&self) -> Result, crate::error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec` [INFO] [stdout] --> src/event_message/cesr_adapter.rs:548:22 [INFO] [stdout] | [INFO] [stdout] 548 | .into_iter() [INFO] [stdout] | ^^^^^^^^^ help: call directly: `iter` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref [INFO] [stdout] = note: `#[warn(clippy::into_iter_on_ref)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `said::SelfAddressingIdentifier` [INFO] [stdout] --> src/event_message/cesr_adapter.rs:576:17 [INFO] [stdout] | [INFO] [stdout] 576 | SelfAddressingIdentifier::from(event_digest.clone()).into(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `SelfAddressingIdentifier::from(event_digest.clone())` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event_message/dummy_event.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event_message/dummy_event.rs:47:10 [INFO] [stdout] | [INFO] [stdout] 47 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event_message/dummy_event.rs:55:10 [INFO] [stdout] | [INFO] [stdout] 55 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event_message/event_msg_builder.rs:170:27 [INFO] [stdout] | [INFO] [stdout] 170 | pub fn build(self) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `said::SelfAddressingIdentifier` [INFO] [stdout] --> src/event_message/event_msg_builder.rs:227:54 [INFO] [stdout] | [INFO] [stdout] 227 | EventData::Ixn(InteractionEvent::new(self.prev_event.into(), self.data)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `self.prev_event` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event_message/event_msg_builder.rs:288:28 [INFO] [stdout] | [INFO] [stdout] 288 | pub fn build(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event_message/key_event_message.rs:37:69 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn compare_digest(&self, sai: &SelfAddressingIdentifier) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event_message/key_event_message.rs:46:41 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn to_derivation_data(&self) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/event_message/key_event_message.rs:70:64 [INFO] [stdout] | [INFO] [stdout] 70 | let check_event_digest = |ev: &KeriEvent| -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/event_message/key_event_message.rs:102:64 [INFO] [stdout] | [INFO] [stdout] 102 | self.data.apply_to(state.clone()).and_then(|next_state| { [INFO] [stdout] | ________________________________________________________________^ [INFO] [stdout] 103 | | if last_event_digest.eq(rot.previous_event_hash()) { [INFO] [stdout] 104 | | Ok(IdentifierState { [INFO] [stdout] 105 | | last_event_digest: event_digest.into(), [INFO] [stdout] ... | [INFO] [stdout] 113 | | }) [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/event_message/key_event_message.rs:118:60 [INFO] [stdout] | [INFO] [stdout] 118 | self.data.apply_to(state.clone()).and_then(|next_state| { [INFO] [stdout] | ____________________________________________________________^ [INFO] [stdout] 119 | | check_event_digest(self)?; [INFO] [stdout] 120 | | if state.delegator.is_none() { [INFO] [stdout] 121 | | Err(Error::SemanticError( [INFO] [stdout] ... | [INFO] [stdout] 134 | | }) [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/event_message/key_event_message.rs:138:60 [INFO] [stdout] | [INFO] [stdout] 138 | self.data.apply_to(state.clone()).and_then(|next_state| { [INFO] [stdout] | ____________________________________________________________^ [INFO] [stdout] 139 | | if last_event_digest.eq(inter.previous_event_hash()) { [INFO] [stdout] 140 | | Ok(IdentifierState { [INFO] [stdout] 141 | | last_event_digest: event_digest.into(), [INFO] [stdout] ... | [INFO] [stdout] 149 | | }) [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event_message/key_event_message.rs:156:70 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn verify_identifier_binding(icp_event: &KeriEvent) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event_message/msg.rs:47:29 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn digest(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event_message/msg.rs:54:35 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn check_digest(&self) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event_message/msg.rs:82:29 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn encode(&self) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/event_message/serializer.rs:21:6 [INFO] [stdout] | [INFO] [stdout] 21 | impl<'a> ser::Serializer for &'a mut KeriJsonSerializer { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 21 - impl<'a> ser::Serializer for &'a mut KeriJsonSerializer { [INFO] [stdout] 21 + impl ser::Serializer for &mut KeriJsonSerializer { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/event_message/serializer.rs:213:6 [INFO] [stdout] | [INFO] [stdout] 213 | impl<'a> ser::SerializeSeq for &'a mut KeriJsonSerializer { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 213 - impl<'a> ser::SerializeSeq for &'a mut KeriJsonSerializer { [INFO] [stdout] 213 + impl ser::SerializeSeq for &mut KeriJsonSerializer { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/event_message/serializer.rs:236:6 [INFO] [stdout] | [INFO] [stdout] 236 | impl<'a> ser::SerializeTuple for &'a mut KeriJsonSerializer { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 236 - impl<'a> ser::SerializeTuple for &'a mut KeriJsonSerializer { [INFO] [stdout] 236 + impl ser::SerializeTuple for &mut KeriJsonSerializer { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/event_message/serializer.rs:256:6 [INFO] [stdout] | [INFO] [stdout] 256 | impl<'a> ser::SerializeTupleStruct for &'a mut KeriJsonSerializer { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 256 - impl<'a> ser::SerializeTupleStruct for &'a mut KeriJsonSerializer { [INFO] [stdout] 256 + impl ser::SerializeTupleStruct for &mut KeriJsonSerializer { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/event_message/serializer.rs:276:6 [INFO] [stdout] | [INFO] [stdout] 276 | impl<'a> ser::SerializeTupleVariant for &'a mut KeriJsonSerializer { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 276 - impl<'a> ser::SerializeTupleVariant for &'a mut KeriJsonSerializer { [INFO] [stdout] 276 + impl ser::SerializeTupleVariant for &mut KeriJsonSerializer { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/event_message/serializer.rs:296:6 [INFO] [stdout] | [INFO] [stdout] 296 | impl<'a> ser::SerializeMap for &'a mut KeriJsonSerializer { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 296 - impl<'a> ser::SerializeMap for &'a mut KeriJsonSerializer { [INFO] [stdout] 296 + impl ser::SerializeMap for &mut KeriJsonSerializer { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/event_message/serializer.rs:325:6 [INFO] [stdout] | [INFO] [stdout] 325 | impl<'a> ser::SerializeStruct for &'a mut KeriJsonSerializer { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 325 - impl<'a> ser::SerializeStruct for &'a mut KeriJsonSerializer { [INFO] [stdout] 325 + impl ser::SerializeStruct for &mut KeriJsonSerializer { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/event_message/serializer.rs:362:6 [INFO] [stdout] | [INFO] [stdout] 362 | impl<'a> ser::SerializeStructVariant for &'a mut KeriJsonSerializer { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 362 - impl<'a> ser::SerializeStructVariant for &'a mut KeriJsonSerializer { [INFO] [stdout] 362 + impl ser::SerializeStructVariant for &mut KeriJsonSerializer { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event_message/signature.rs:87:10 [INFO] [stdout] | [INFO] [stdout] 87 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true [INFO] [stdout] --> src/event_message/signature.rs:211:1 [INFO] [stdout] | [INFO] [stdout] 211 | impl Into for Nontransferable { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: `impl From for Foreign` is allowed by the orphan rules, for more information see [INFO] [stdout] https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into [INFO] [stdout] = note: `#[warn(clippy::from_over_into)]` on by default [INFO] [stdout] help: replace the `Into` implementation with `From` [INFO] [stdout] | [INFO] [stdout] 211 ~ impl From for Group { [INFO] [stdout] 212 ~ fn from(val: Nontransferable) -> Self { [INFO] [stdout] 213 ~ match val { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true [INFO] [stdout] --> src/event_message/signature.rs:229:1 [INFO] [stdout] | [INFO] [stdout] 229 | impl Into for crate::event_message::signature::Signature { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: `impl From for Foreign` is allowed by the orphan rules, for more information see [INFO] [stdout] https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into [INFO] [stdout] help: replace the `Into` implementation with `From` [INFO] [stdout] | [INFO] [stdout] 229 ~ impl From for Group { [INFO] [stdout] 230 ~ fn from(val: crate::event_message::signature::Signature) -> Self { [INFO] [stdout] 231 ~ match val { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: large size difference between variants [INFO] [stdout] --> src/event_message/signed_event_message.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | / pub enum Notice { [INFO] [stdout] 30 | | Event(SignedEventMessage), [INFO] [stdout] | | ------------------------- the largest variant contains at least 560 bytes [INFO] [stdout] ... | [INFO] [stdout] 34 | | TransferableRct(SignedTransferableReceipt), [INFO] [stdout] | | ------------------------------------------ the second-largest variant contains at least 312 bytes [INFO] [stdout] 35 | | } [INFO] [stdout] | |_^ the entire enum is at least 560 bytes [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant [INFO] [stdout] help: consider boxing the large fields or introducing indirection in some other way to reduce the total size of the enum [INFO] [stdout] | [INFO] [stdout] 30 - Event(SignedEventMessage), [INFO] [stdout] 30 + Event(Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event_message/signed_event_message.rs:85:30 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn to_cesr(&self) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event_message/signed_event_message.rs:212:29 [INFO] [stdout] | [INFO] [stdout] 212 | pub fn encode(&self) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-canonical implementation of `partial_cmp` on an `Ord` type [INFO] [stdout] --> src/event_message/mod.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | / impl PartialOrd for TimestampedEventMessage { [INFO] [stdout] 65 | | fn partial_cmp(&self, other: &Self) -> Option { [INFO] [stdout] 66 | | Some( [INFO] [stdout] 67 | | match self.event_message.data.get_sn() == other.event_message.data.get_sn() { [INFO] [stdout] ... | [INFO] [stdout] 78 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#non_canonical_partial_ord_impl [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 65 - fn partial_cmp(&self, other: &Self) -> Option { [INFO] [stdout] 66 - Some( [INFO] [stdout] 67 - match self.event_message.data.get_sn() == other.event_message.data.get_sn() { [INFO] [stdout] 68 - true => Ordering::Equal, [INFO] [stdout] 69 - false => { [INFO] [stdout] 70 - match self.event_message.data.get_sn() > other.event_message.data.get_sn() { [INFO] [stdout] 71 - true => Ordering::Greater, [INFO] [stdout] 72 - false => Ordering::Less, [INFO] [stdout] 73 - } [INFO] [stdout] 74 - } [INFO] [stdout] 75 - }, [INFO] [stdout] 76 - ) [INFO] [stdout] 77 - } [INFO] [stdout] 65 + fn partial_cmp(&self, other: &Self) -> Option { Some(self.cmp(other)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `as_bytes` after slicing a string [INFO] [stdout] --> src/prefix/attached_signature.rs:88:44 [INFO] [stdout] | [INFO] [stdout] 88 | let s_vec = from_text_to_bytes(s[code.code_size()..].as_bytes())?[lead..].to_vec(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&s.as_bytes()[code.code_size()..]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#sliced_string_as_bytes [INFO] [stdout] = note: `#[warn(clippy::sliced_string_as_bytes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match expression looks like `matches!` macro [INFO] [stdout] --> src/prefix/basic.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | / match self { [INFO] [stdout] 62 | | BasicPrefix::ECDSAsecp256k1NT(_) [INFO] [stdout] 63 | | | BasicPrefix::Ed25519NT(_) [INFO] [stdout] 64 | | | BasicPrefix::Ed448NT(_) => false, [INFO] [stdout] 65 | | _ => true, [INFO] [stdout] 66 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro [INFO] [stdout] = note: `#[warn(clippy::match_like_matches_macro)]` on by default [INFO] [stdout] help: use `matches!` directly [INFO] [stdout] | [INFO] [stdout] 61 ~ !matches!(self, BasicPrefix::ECDSAsecp256k1NT(_) [INFO] [stdout] 62 + | BasicPrefix::Ed25519NT(_) [INFO] [stdout] 63 + | BasicPrefix::Ed448NT(_)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `as_bytes` after slicing a string [INFO] [stdout] --> src/prefix/basic.rs:91:36 [INFO] [stdout] | [INFO] [stdout] 91 | from_text_to_bytes(s[code.code_size()..].as_bytes())?[code.code_size()..].to_vec(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&s.as_bytes()[code.code_size()..]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#sliced_string_as_bytes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `said::SelfAddressingIdentifier` [INFO] [stdout] --> src/prefix/cesr_adapter.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | digest_said.into(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `digest_said` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `said::SelfAddressingIdentifier` [INFO] [stdout] --> src/prefix/cesr_adapter.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | digest_said.into(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `digest_said` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true [INFO] [stdout] --> src/prefix/cesr_adapter.rs:102:1 [INFO] [stdout] | [INFO] [stdout] 102 | impl Into for SelfSigningPrefix { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: `impl From for Foreign` is allowed by the orphan rules, for more information see [INFO] [stdout] https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into [INFO] [stdout] help: replace the `Into` implementation with `From` [INFO] [stdout] | [INFO] [stdout] 102 ~ impl From for Signature { [INFO] [stdout] 103 ~ fn from(val: SelfSigningPrefix) -> Self { [INFO] [stdout] 104 ~ (val.get_code(), val.derivative()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true [INFO] [stdout] --> src/prefix/cesr_adapter.rs:108:1 [INFO] [stdout] | [INFO] [stdout] 108 | impl Into for BasicPrefix { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: `impl From for Foreign` is allowed by the orphan rules, for more information see [INFO] [stdout] https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into [INFO] [stdout] help: replace the `Into` implementation with `From` [INFO] [stdout] | [INFO] [stdout] 108 ~ impl From for PublicKey { [INFO] [stdout] 109 ~ fn from(val: BasicPrefix) -> Self { [INFO] [stdout] 110 ~ (val.get_code(), val.derivative()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true [INFO] [stdout] --> src/prefix/cesr_adapter.rs:114:1 [INFO] [stdout] | [INFO] [stdout] 114 | impl Into for IndexedSignature { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: `impl From for Foreign` is allowed by the orphan rules, for more information see [INFO] [stdout] https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into [INFO] [stdout] help: replace the `Into` implementation with `From` [INFO] [stdout] | [INFO] [stdout] 114 ~ impl From for CesrIndexedSignature { [INFO] [stdout] 115 ~ fn from(val: IndexedSignature) -> Self { [INFO] [stdout] 116 | ( [INFO] [stdout] 117 ~ AttachedSignatureCode::new(val.signature.get_code(), (&val.index).into()), [INFO] [stdout] 118 ~ val.derivative(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true [INFO] [stdout] --> src/prefix/cesr_adapter.rs:123:1 [INFO] [stdout] | [INFO] [stdout] 123 | impl Into for &Index { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: `impl From for Foreign` is allowed by the orphan rules, for more information see [INFO] [stdout] https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into [INFO] [stdout] help: replace the `Into` implementation with `From<&prefix::attached_signature::Index>` [INFO] [stdout] | [INFO] [stdout] 123 ~ impl From<&Index> for CesrIndex { [INFO] [stdout] 124 ~ fn from(val: &Index) -> Self { [INFO] [stdout] 125 ~ match val { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true [INFO] [stdout] --> src/prefix/cesr_adapter.rs:145:1 [INFO] [stdout] | [INFO] [stdout] 145 | impl Into for IdentifierPrefix { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: `impl From for Foreign` is allowed by the orphan rules, for more information see [INFO] [stdout] https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into [INFO] [stdout] help: replace the `Into` implementation with `From` [INFO] [stdout] | [INFO] [stdout] 145 ~ impl From for Identifier { [INFO] [stdout] 146 ~ fn from(val: IdentifierPrefix) -> Self { [INFO] [stdout] 147 ~ match &val { [INFO] [stdout] 148 | IdentifierPrefix::Basic(bp) => { [INFO] [stdout] 149 ~ (IdentifierCode::Basic(bp.get_code()), val.derivative()) [INFO] [stdout] 150 | } [INFO] [stdout] 151 | IdentifierPrefix::SelfAddressing(sa) => ( [INFO] [stdout] 152 | IdentifierCode::SelfAddressing((&sa.said.derivation).into()), [INFO] [stdout] 153 ~ val.derivative(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `as_bytes` after slicing a string [INFO] [stdout] --> src/prefix/seed.rs:64:36 [INFO] [stdout] | [INFO] [stdout] 64 | from_text_to_bytes(s[code.code_size()..].as_bytes())?[code.code_size()..].to_vec(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&s.as_bytes()[code.code_size()..]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#sliced_string_as_bytes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `as_bytes` after slicing a string [INFO] [stdout] --> src/prefix/self_signing.rs:56:36 [INFO] [stdout] | [INFO] [stdout] 56 | from_text_to_bytes(s[code.code_size()..].as_bytes())?[code.code_size()..].to_vec(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&s.as_bytes()[code.code_size()..]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#sliced_string_as_bytes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/basic_processor.rs:51:10 [INFO] [stdout] | [INFO] [stdout] 51 | ) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/escrow/delegation_escrow.rs:60:10 [INFO] [stdout] | [INFO] [stdout] 60 | ) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/escrow/duplicitous_events.rs:21:49 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn get(&self, id: &IdentifierPrefix) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/escrow/maybe_out_of_order_escrow.rs:34:10 [INFO] [stdout] | [INFO] [stdout] 34 | ) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/escrow/partially_signed_escrow.rs:43:71 [INFO] [stdout] | [INFO] [stdout] 43 | fn remove_partially_signed(&self, event: &KeriEvent) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/escrow/partially_signed_escrow.rs:53:10 [INFO] [stdout] | [INFO] [stdout] 53 | ) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | ) -> Result + 'a, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:52:10 [INFO] [stdout] | [INFO] [stdout] 52 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:60:35 [INFO] [stdout] | [INFO] [stdout] 60 | .get_signed_event(&event_digest) [INFO] [stdout] | ^^^^^^^^^^^^^ help: change this to: `event_digest` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:75:10 [INFO] [stdout] | [INFO] [stdout] 75 | ) -> Result + 'a>, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:94:10 [INFO] [stdout] | [INFO] [stdout] 94 | ) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:113:66 [INFO] [stdout] | [INFO] [stdout] 113 | fn accept_receipts_for(&self, event: &SignedEventMessage) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:124:10 [INFO] [stdout] | [INFO] [stdout] 124 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:133:27 [INFO] [stdout] | [INFO] [stdout] 133 | .map(|inx| -> Result<_, _> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:151:10 [INFO] [stdout] | [INFO] [stdout] 151 | ) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: explicit call to `.into_iter()` in function argument accepting `IntoIterator` [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:165:17 [INFO] [stdout] | [INFO] [stdout] 165 | signatures.into_iter(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: this parameter accepts any `IntoIterator`, so you don't need to call `.into_iter()` [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:122:19 [INFO] [stdout] | [INFO] [stdout] 122 | rct: impl IntoIterator, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] help: consider removing the `.into_iter()` [INFO] [stdout] | [INFO] [stdout] 165 - signatures.into_iter(), [INFO] [stdout] 165 + signatures, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:168:42 [INFO] [stdout] | [INFO] [stdout] 168 | couplets.iter().try_for_each(|(bp, sp)| { [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 169 | | bp.verify(&receipted_event.event_message.encode()?, sp)? [INFO] [stdout] 170 | | .then_some(()) [INFO] [stdout] 171 | | .ok_or(Error::ReceiptVerificationError) [INFO] [stdout] 172 | | })?; [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:220:10 [INFO] [stdout] | [INFO] [stdout] 220 | ) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:226:33 [INFO] [stdout] | [INFO] [stdout] 226 | .verify(&serialized_receipted_event, &inx.signature) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `serialized_receipted_event` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:233:43 [INFO] [stdout] | [INFO] [stdout] 233 | .all(|(bp, sp)| bp.verify(&serialized_receipted_event, sp).unwrap_or(false)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `serialized_receipted_event` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:282:71 [INFO] [stdout] | [INFO] [stdout] 282 | ... .log_receipt_with_new_transaction(&ooo) [INFO] [stdout] | ^^^^ help: change this to: `ooo` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:328:61 [INFO] [stdout] | [INFO] [stdout] 328 | ... .log_event_with_new_transaction(&signed_event) [INFO] [stdout] | ^^^^^^^^^^^^^ help: change this to: `signed_event` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:335:50 [INFO] [stdout] | [INFO] [stdout] 335 | self.accept_receipts_for(&signed_event)?; [INFO] [stdout] | ^^^^^^^^^^^^^ help: change this to: `signed_event` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:342:37 [INFO] [stdout] | [INFO] [stdout] 342 | ... .insert(&signed_event) [INFO] [stdout] | ^^^^^^^^^^^^^ help: change this to: `signed_event` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/processor/escrow/mod.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 44 | ) -> ( [INFO] [stdout] | ______^ [INFO] [stdout] 45 | | NotificationBus, [INFO] [stdout] 46 | | ( [INFO] [stdout] 47 | | Arc>, [INFO] [stdout] ... | [INFO] [stdout] 52 | | ), [INFO] [stdout] 53 | | ) [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/event_storage.rs:72:53 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn get_kel(&self, id: &IdentifierPrefix) -> Result>, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/event_storage.rs:88:62 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn get_kel_messages(&self, id: &IdentifierPrefix) -> Result>, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/event_storage.rs:105:10 [INFO] [stdout] | [INFO] [stdout] 105 | ) -> Result>, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/event_storage.rs:122:10 [INFO] [stdout] | [INFO] [stdout] 122 | ) -> Result>, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this lifetime isn't used in the function definition [INFO] [stdout] --> src/processor/event_storage.rs:134:30 [INFO] [stdout] | [INFO] [stdout] 134 | fn collect_with_receipts<'a, I>(&self, events: I) -> Option> [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes [INFO] [stdout] = note: `#[warn(clippy::extra_unused_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `said::SelfAddressingIdentifier` [INFO] [stdout] --> src/processor/event_storage.rs:287:17 [INFO] [stdout] | [INFO] [stdout] 287 | event_digest.into(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `event_digest` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/event_storage.rs:302:10 [INFO] [stdout] | [INFO] [stdout] 302 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/event_storage.rs:337:10 [INFO] [stdout] | [INFO] [stdout] 337 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/event_storage.rs:373:10 [INFO] [stdout] | [INFO] [stdout] 373 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/event_storage.rs:393:10 [INFO] [stdout] | [INFO] [stdout] 393 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/event_storage.rs:425:10 [INFO] [stdout] | [INFO] [stdout] 425 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/event_storage.rs:451:10 [INFO] [stdout] | [INFO] [stdout] 451 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/event_storage.rs:465:10 [INFO] [stdout] | [INFO] [stdout] 465 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/notification.rs:36:58 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn notify(&self, notification: &Notification) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/notification.rs:53:77 [INFO] [stdout] | [INFO] [stdout] 53 | fn notify(&self, notification: &Notification, bus: &NotificationBus) -> Result<(), Error>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/validator.rs:79:10 [INFO] [stdout] | [INFO] [stdout] 79 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/validator.rs:143:10 [INFO] [stdout] | [INFO] [stdout] 143 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/validator.rs:173:10 [INFO] [stdout] | [INFO] [stdout] 173 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/processor/validator.rs:195:27 [INFO] [stdout] | [INFO] [stdout] 195 | .map(|sig| -> Result<_, _> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/validator.rs:217:10 [INFO] [stdout] | [INFO] [stdout] 217 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/processor/validator.rs:228:31 [INFO] [stdout] | [INFO] [stdout] 228 | .try_for_each(|(witness, signature)| { [INFO] [stdout] | _______________________________^ [INFO] [stdout] 229 | | (witness.verify(&serialized_event, &signature)?) [INFO] [stdout] 230 | | .then_some(()) [INFO] [stdout] 231 | | .ok_or(Error::SignatureVerificationError) [INFO] [stdout] 232 | | }) [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/validator.rs:284:10 [INFO] [stdout] | [INFO] [stdout] 284 | ) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/validator.rs:320:10 [INFO] [stdout] | [INFO] [stdout] 320 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/mod.rs:35:50 [INFO] [stdout] | [INFO] [stdout] 35 | fn process_notice(&self, notice: &Notice) -> Result<(), Error>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/mod.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | ) -> Result<(), Error>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/mod.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | ) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/mod.rs:98:10 [INFO] [stdout] | [INFO] [stdout] 98 | ) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/mod.rs:133:81 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn process_notice(&self, notice: &Notice, processing_strategy: F) -> Result<(), Error> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/signer/mod.rs:10:35 [INFO] [stdout] | [INFO] [stdout] 10 | fn sign(&self, msg: &[u8]) -> Result, Error>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/signer/mod.rs:13:29 [INFO] [stdout] | [INFO] [stdout] 13 | fn rotate(&mut self) -> Result<(), Error>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/signer/mod.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn new() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/signer/mod.rs:87:48 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn new_with_seed(seed: &SeedPrefix) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/signer/mod.rs:111:27 [INFO] [stdout] | [INFO] [stdout] 111 | fn generate_key_pair() -> Result<(PublicKey, PrivateKey), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/state/mod.rs:63:10 [INFO] [stdout] | [INFO] [stdout] 63 | ) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/state/mod.rs:202:57 [INFO] [stdout] | [INFO] [stdout] 202 | pub fn apply(self, event: &T) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/state/mod.rs:211:51 [INFO] [stdout] | [INFO] [stdout] 211 | fn apply_to(&self, state: IdentifierState) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking sodiumoxide v0.2.7 [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> tests/test_incept.rs:18:21 [INFO] [stdout] | [INFO] [stdout] 18 | fn test_incept() -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `keri_core::error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `#[warn(clippy::result_large_err)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant pattern matching, consider using `is_some()` [INFO] [stdout] --> tests/test_incept.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | assert!(matches!(state, Some(_))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `state.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stdout] = note: `#[warn(clippy::redundant_pattern_matching)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> benches/bench.rs:43:48 [INFO] [stdout] | [INFO] [stdout] 43 | let (_rest, parsed) = parse_many(black_box(&stream)).unwrap(); [INFO] [stdout] | ^^^^^^^ help: change this to: `stream` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> tests/test_processing.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 31 | Message::Notice(not) => not, [INFO] [stdout] | -------------------- matches all the relevant values [INFO] [stdout] 32 | _ => unreachable!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> tests/test_processing.rs:14:22 [INFO] [stdout] | [INFO] [stdout] 14 | fn test_process() -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `keri_core::error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `#[warn(clippy::result_large_err)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/event/sections/key_config.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | / #[rkyv(derive(Debug))] [INFO] [stdout] 23 | | [INFO] [stdout] | |_^ [INFO] [stdout] 24 | pub struct NextKeysData { [INFO] [stdout] | ----------------------- the attribute applies to this struct [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/event/sections/seal.rs:164:1 [INFO] [stdout] | [INFO] [stdout] 164 | / #[rkyv(derive(Debug))] [INFO] [stdout] 165 | | [INFO] [stdout] | |_^ [INFO] [stdout] 166 | pub struct SourceSeal { [INFO] [stdout] | --------------------- the attribute applies to this struct [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/event/sections/threshold.rs:209:1 [INFO] [stdout] | [INFO] [stdout] 209 | / #[rkyv(derive(Debug))] [INFO] [stdout] 210 | | [INFO] [stdout] | |_^ [INFO] [stdout] 211 | pub struct MultiClauses(Vec); [INFO] [stdout] | ----------------------- the attribute applies to this struct [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/event_message/tests/test_utils.rs:142:9 [INFO] [stdout] | [INFO] [stdout] 142 | prefix: prefix, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `prefix` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: `#[warn(clippy::redundant_field_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/processor/event_storage.rs:377:17 [INFO] [stdout] | [INFO] [stdout] 377 | sn: sn, [INFO] [stdout] | ^^^^^^ help: replace it with: `sn` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_all_nontrans_receipts_couplets` is never used [INFO] [stdout] --> src/database/redb/mod.rs:352:8 [INFO] [stdout] | [INFO] [stdout] 254 | impl RedbDatabase { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 352 | fn get_all_nontrans_receipts_couplets( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/actor/event_generator.rs:30:6 [INFO] [stdout] | [INFO] [stdout] 30 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `#[warn(clippy::result_large_err)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/actor/event_generator.rs:58:6 [INFO] [stdout] | [INFO] [stdout] 58 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/actor/event_generator.rs:110:6 [INFO] [stdout] | [INFO] [stdout] 110 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/actor/event_generator.rs:133:6 [INFO] [stdout] | [INFO] [stdout] 133 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/actor/event_generator.rs:151:6 [INFO] [stdout] | [INFO] [stdout] 151 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/actor/event_generator.rs:171:6 [INFO] [stdout] | [INFO] [stdout] 171 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/actor/mod.rs:89:68 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn process_notice(msg: Notice, processor: &P) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/escrow_database.rs:75:73 [INFO] [stdout] | [INFO] [stdout] 75 | .log_event(&crate::database::redb::WriteTxnMode::CreateNew, &event)?; [INFO] [stdout] | ^^^^^^ help: change this to: `event` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/escrow_database.rs:91:73 [INFO] [stdout] | [INFO] [stdout] 91 | .log_event(&crate::database::redb::WriteTxnMode::CreateNew, &event)?; [INFO] [stdout] | ^^^^^^ help: change this to: `event` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/escrow_database.rs:94:28 [INFO] [stdout] | [INFO] [stdout] 94 | self.escrow.insert(&id, sn, &said)?; [INFO] [stdout] | ^^^ help: change this to: `id` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression borrows a value the compiler would automatically borrow [INFO] [stdout] --> src/database/redb/escrow_database.rs:201:29 [INFO] [stdout] | [INFO] [stdout] 201 | let mut table = (&write_txn).open_multimap_table(self.sn_key_table)?; [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `write_txn` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/escrow_database.rs:202:54 [INFO] [stdout] | [INFO] [stdout] 202 | let value = rkyv_adapter::serialize_said(&digest)?; [INFO] [stdout] | ^^^^^^^ help: change this to: `digest` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression borrows a value the compiler would automatically borrow [INFO] [stdout] --> src/database/redb/escrow_database.rs:205:29 [INFO] [stdout] | [INFO] [stdout] 205 | let mut table = (&write_txn).open_table(self.dts_table)?; [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `write_txn` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/escrow_database.rs:207:52 [INFO] [stdout] | [INFO] [stdout] 207 | let key = rkyv_adapter::serialize_said(&digest)?; [INFO] [stdout] | ^^^^^^^ help: change this to: `digest` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/loging.rs:83:31 [INFO] [stdout] | [INFO] [stdout] 83 | self.insert_key_event(&txn_mode, &signed_event.event_message)?; [INFO] [stdout] | ^^^^^^^^^ help: change this to: `txn_mode` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/loging.rs:89:40 [INFO] [stdout] | [INFO] [stdout] 89 | self.insert_indexed_signatures(&txn_mode, &digest, &signed_event.signatures)?; [INFO] [stdout] | ^^^^^^^^^ help: change this to: `txn_mode` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/loging.rs:91:42 [INFO] [stdout] | [INFO] [stdout] 91 | self.insert_nontrans_receipt(&txn_mode, &digest, &wits)?; [INFO] [stdout] | ^^^^^^^^^ help: change this to: `txn_mode` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/loging.rs:91:62 [INFO] [stdout] | [INFO] [stdout] 91 | self.insert_nontrans_receipt(&txn_mode, &digest, &wits)?; [INFO] [stdout] | ^^^^^ help: change this to: `wits` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/loging.rs:95:37 [INFO] [stdout] | [INFO] [stdout] 95 | self.insert_source_seal(&txn_mode, &digest, delegator_seal)?; [INFO] [stdout] | ^^^^^^^^^ help: change this to: `txn_mode` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/loging.rs:114:38 [INFO] [stdout] | [INFO] [stdout] 114 | self.insert_nontrans_receipt(&txn_mode, digest, &signed_receipt.signatures)?; [INFO] [stdout] | ^^^^^^^^^ help: change this to: `txn_mode` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/loging.rs:137:48 [INFO] [stdout] | [INFO] [stdout] 137 | let key = rkyv_adapter::serialize_said(&said).unwrap(); [INFO] [stdout] | ^^^^^ help: change this to: `said` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/loging.rs:138:42 [INFO] [stdout] | [INFO] [stdout] 138 | self.get_event_by_serialized_key(&key.as_slice()) [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: change this to: `key.as_slice()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/loging.rs:145:48 [INFO] [stdout] | [INFO] [stdout] 145 | let key = rkyv_adapter::serialize_said(&said).unwrap(); [INFO] [stdout] | ^^^^^ help: change this to: `said` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/loging.rs:146:47 [INFO] [stdout] | [INFO] [stdout] 146 | self.get_signatures_by_serialized_key(&key.as_slice()) [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: change this to: `key.as_slice()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/database/redb/loging.rs:172:59 [INFO] [stdout] | [INFO] [stdout] 172 | execute_in_transaction(self.db.clone(), txn_mode, |write_txn| { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 173 | | let mut table = write_txn.open_multimap_table(NONTRANS_RCTS)?; [INFO] [stdout] 174 | | [INFO] [stdout] 175 | | for value in nontrans { [INFO] [stdout] ... | [INFO] [stdout] 179 | | Ok(()) [INFO] [stdout] 180 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/redb/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/loging.rs:196:10 [INFO] [stdout] | [INFO] [stdout] 196 | ) -> Result, RedbError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/redb/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/loging.rs:198:47 [INFO] [stdout] | [INFO] [stdout] 198 | .get_signatures_by_serialized_key(&key) [INFO] [stdout] | ^^^^ help: change this to: `key` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/loging.rs:204:54 [INFO] [stdout] | [INFO] [stdout] 204 | let event = self.get_event_by_serialized_key(&key)?; [INFO] [stdout] | ^^^^ help: change this to: `key` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/loging.rs:224:10 [INFO] [stdout] | [INFO] [stdout] 224 | ) -> Result<(), RedbError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/redb/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/database/redb/loging.rs:228:59 [INFO] [stdout] | [INFO] [stdout] 228 | execute_in_transaction(self.db.clone(), txn_mode, |write_txn| { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 229 | | let mut table = write_txn.open_table(EVENTS)?; [INFO] [stdout] 230 | | let key = rkyv_adapter::serialize_said(&digest)?; [INFO] [stdout] 231 | | table.insert(key.as_slice(), &value.as_ref())?; [INFO] [stdout] 232 | | Ok(()) [INFO] [stdout] 233 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/redb/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/loging.rs:244:10 [INFO] [stdout] | [INFO] [stdout] 244 | ) -> Result<(), RedbError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/redb/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/database/redb/loging.rs:246:59 [INFO] [stdout] | [INFO] [stdout] 246 | execute_in_transaction(self.db.clone(), txn_mode, |write_txn| { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 247 | | let mut table = write_txn.open_multimap_table(table)?; [INFO] [stdout] 248 | | [INFO] [stdout] 249 | | for value in values { [INFO] [stdout] ... | [INFO] [stdout] 253 | | Ok(()) [INFO] [stdout] 254 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/redb/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/loging.rs:262:10 [INFO] [stdout] | [INFO] [stdout] 262 | ) -> Result<(), RedbError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/redb/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/loging.rs:271:10 [INFO] [stdout] | [INFO] [stdout] 271 | ) -> Result<(), RedbError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/redb/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/database/redb/loging.rs:273:59 [INFO] [stdout] | [INFO] [stdout] 273 | execute_in_transaction(self.db.clone(), txn_mode, |write_txn| { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 274 | | let mut table = write_txn.open_table(SEALS)?; [INFO] [stdout] 275 | | [INFO] [stdout] 276 | | let seal = rkyv::to_bytes::(seal)?; [INFO] [stdout] 277 | | table.insert(serialized_said.as_slice(), seal.as_ref())?; [INFO] [stdout] 278 | | Ok(()) [INFO] [stdout] 279 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/redb/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/loging.rs:286:10 [INFO] [stdout] | [INFO] [stdout] 286 | ) -> Result<(), RedbError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/redb/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/loging.rs:287:75 [INFO] [stdout] | [INFO] [stdout] 287 | self.insert_with_digest_key(&WriteTxnMode::CreateNew, TRANS_RCTS, &said, trans) [INFO] [stdout] | ^^^^^ help: change this to: `said` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/loging.rs:295:10 [INFO] [stdout] | [INFO] [stdout] 295 | ) -> Result<(), RedbError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/redb/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/loging.rs:302:10 [INFO] [stdout] | [INFO] [stdout] 302 | ) -> Result>, RedbError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/redb/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/database/redb/loging.rs:309:18 [INFO] [stdout] | [INFO] [stdout] 309 | .map(|sig| match sig { [INFO] [stdout] | __________________^ [INFO] [stdout] 310 | | Ok(sig) => Ok(rkyv_adapter::deserialize_nontransferable(sig.value()).unwrap()), [INFO] [stdout] 311 | | Err(e) => Err(RedbError::from(e)), [INFO] [stdout] 312 | | }) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/redb/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/loging.rs:326:10 [INFO] [stdout] | [INFO] [stdout] 326 | ) -> Result, RedbError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/redb/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/loging.rs:341:10 [INFO] [stdout] | [INFO] [stdout] 341 | ) -> Result>, RedbError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/redb/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/loging.rs:357:10 [INFO] [stdout] | [INFO] [stdout] 357 | ) -> Result>, RedbError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/redb/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/loging.rs:373:10 [INFO] [stdout] | [INFO] [stdout] 373 | ) -> Result, RedbError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/database/redb/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of a disallowed/placeholder name `foo` [INFO] [stdout] --> src/database/redb/rkyv_adapter/said_wrapper.rs:71:17 [INFO] [stdout] | [INFO] [stdout] 71 | fn get_code(foo: &HashFunction) -> HashFunctionCode { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_names [INFO] [stdout] = note: `#[warn(clippy::disallowed_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `JSON` contains a capitalized acronym [INFO] [stdout] --> src/database/redb/rkyv_adapter/serialization_info_wrapper.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | JSON, [INFO] [stdout] | ^^^^ help: consider making the acronym lowercase, except the initial letter: `Json` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] = note: `#[warn(clippy::upper_case_acronyms)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `MGPK` contains a capitalized acronym [INFO] [stdout] --> src/database/redb/rkyv_adapter/serialization_info_wrapper.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | MGPK, [INFO] [stdout] | ^^^^ help: consider making the acronym lowercase, except the initial letter: `Mgpk` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `CBOR` contains a capitalized acronym [INFO] [stdout] --> src/database/redb/rkyv_adapter/serialization_info_wrapper.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | CBOR, [INFO] [stdout] | ^^^^ help: consider making the acronym lowercase, except the initial letter: `Cbor` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enclosing `Ok` and `?` operator are unneeded [INFO] [stdout] --> src/database/redb/rkyv_adapter/mod.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | / Ok(rkyv::to_bytes( [INFO] [stdout] 19 | | With::::cast(said), [INFO] [stdout] 20 | | )?) [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark [INFO] [stdout] = note: `#[warn(clippy::needless_question_mark)]` on by default [INFO] [stdout] help: remove the enclosing `Ok` and `?` operator [INFO] [stdout] | [INFO] [stdout] 18 ~ rkyv::to_bytes( [INFO] [stdout] 19 | With::::cast(said), [INFO] [stdout] 20 ~ ) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/rkyv_adapter/mod.rs:24:50 [INFO] [stdout] | [INFO] [stdout] 24 | let archived: &ArchivedSAIDef = rkyv::access(&bytes)?; [INFO] [stdout] | ^^^^^^ help: change this to: `bytes` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/rkyv_adapter/mod.rs:31:83 [INFO] [stdout] | [INFO] [stdout] 31 | let archived = rkyv::access::(&bytes).unwrap(); [INFO] [stdout] | ^^^^^^ help: change this to: `bytes` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/rkyv_adapter/mod.rs:36:80 [INFO] [stdout] | [INFO] [stdout] 36 | let archived = rkyv::access::(&bytes).unwrap(); [INFO] [stdout] | ^^^^^^ help: change this to: `bytes` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/rkyv_adapter/mod.rs:43:82 [INFO] [stdout] | [INFO] [stdout] 43 | let archived = rkyv::access::(&bytes).unwrap(); [INFO] [stdout] | ^^^^^^ help: change this to: `bytes` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/database/redb/rkyv_adapter/mod.rs:48:76 [INFO] [stdout] | [INFO] [stdout] 48 | let archived = rkyv::access::(&bytes).unwrap(); [INFO] [stdout] | ^^^^^^ help: change this to: `bytes` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: importing legacy numeric constants [INFO] [stdout] --> src/database/redb/mod.rs:17:34 [INFO] [stdout] | [INFO] [stdout] 17 | use std::{path::Path, sync::Arc, u64}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: remove this import [INFO] [stdout] = note: then `u64::` will resolve to the respective associated constant [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/mod.rs:94:35 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn new(db_path: &Path) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> src/database/redb/mod.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 179 | / let out = match params { [INFO] [stdout] 180 | | QueryParameters::BySn { id, sn } => self [INFO] [stdout] 181 | | .get_kel(&id, sn, 1) [INFO] [stdout] 182 | | .map(|el| Some(el.into_iter())) [INFO] [stdout] ... | [INFO] [stdout] 188 | | QueryParameters::All { id } => self.get_full_kel(id).map(|kel| kel.into_iter()), [INFO] [stdout] 189 | | }; [INFO] [stdout] | |__________- unnecessary `let` binding [INFO] [stdout] 190 | out [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return [INFO] [stdout] = note: `#[warn(clippy::let_and_return)]` on by default [INFO] [stdout] help: return the expression directly [INFO] [stdout] | [INFO] [stdout] 179 ~ [INFO] [stdout] 180 ~ match params { [INFO] [stdout] 181 + QueryParameters::BySn { id, sn } => self [INFO] [stdout] 182 + .get_kel(&id, sn, 1) [INFO] [stdout] 183 + .map(|el| Some(el.into_iter())) [INFO] [stdout] 184 + .unwrap(), [INFO] [stdout] 185 + QueryParameters::Range { id, start, limit } => self [INFO] [stdout] 186 + .get_kel(&id, start, limit) [INFO] [stdout] 187 + .map(|el| Some(el.into_iter())) [INFO] [stdout] 188 + .unwrap(), [INFO] [stdout] 189 + QueryParameters::All { id } => self.get_full_kel(id).map(|kel| kel.into_iter()), [INFO] [stdout] 190 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/mod.rs:260:10 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 260 | ) -> Result<(), RedbError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/database/redb/mod.rs:263:59 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 263 | execute_in_transaction(self.db.clone(), txn_mode, |write_txn| { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 264 | | let mut table = write_txn.open_table(KELS)?; [INFO] [stdout] 265 | | let id = event.data.prefix.to_str(); [INFO] [stdout] 266 | | let sn = event.data.sn; [INFO] [stdout] ... | [INFO] [stdout] 269 | | Ok(()) [INFO] [stdout] 270 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/mod.rs:277:10 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 277 | ) -> Result<(), RedbError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/database/redb/mod.rs:278:59 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 278 | execute_in_transaction(self.db.clone(), txn_mode, |write_txn| { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 279 | | let mut table = write_txn.open_table(KEY_STATES)?; [INFO] [stdout] 280 | | let key = event.data.prefix.to_str(); [INFO] [stdout] ... | [INFO] [stdout] 295 | | Ok(()) [INFO] [stdout] 296 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/mod.rs:303:10 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 303 | ) -> Result, RedbError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/database/redb/mod.rs:309:33 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 309 | .map(|value| -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/mod.rs:323:10 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 323 | ) -> Result, RedbError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/mod.rs:355:10 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 355 | ) -> Result>, RedbError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `map(..).flatten()` on `Iterator` [INFO] [stdout] --> src/database/redb/mod.rs:362:14 [INFO] [stdout] | [INFO] [stdout] 362 | .map(|digest| match digest { [INFO] [stdout] | ______________^ [INFO] [stdout] 363 | | Ok((_, value)) => self [INFO] [stdout] 364 | | .log_db [INFO] [stdout] 365 | | .get_nontrans_couplets_by_key(value.value()) [INFO] [stdout] ... | [INFO] [stdout] 369 | | }) [INFO] [stdout] 370 | | .flatten(); [INFO] [stdout] | |______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_flatten [INFO] [stdout] = note: `#[warn(clippy::map_flatten)]` on by default [INFO] [stdout] help: try replacing `map` with `flat_map` and remove the `.flatten()` [INFO] [stdout] | [INFO] [stdout] 362 ~ .flat_map(|digest| match digest { [INFO] [stdout] 363 + Ok((_, value)) => self [INFO] [stdout] 364 + .log_db [INFO] [stdout] 365 + .get_nontrans_couplets_by_key(value.value()) [INFO] [stdout] 366 + .unwrap() [INFO] [stdout] 367 + .unwrap(), [INFO] [stdout] 368 + Err(_) => todo!(), [INFO] [stdout] 369 ~ }); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/database/redb/mod.rs:375:16 [INFO] [stdout] | [INFO] [stdout] 375 | fn get_kel<'a>( [INFO] [stdout] | ^^ [INFO] [stdout] 376 | &'a self, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] = note: `#[warn(clippy::needless_lifetimes)]` on by default [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 375 ~ fn get_kel( [INFO] [stdout] 376 ~ &self, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/mod.rs:380:10 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 380 | ) -> Result>, RedbError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/database/redb/mod.rs:397:21 [INFO] [stdout] | [INFO] [stdout] 397 | fn get_full_kel<'a>( [INFO] [stdout] | ^^ [INFO] [stdout] 398 | &'a self, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 397 ~ fn get_full_kel( [INFO] [stdout] 398 ~ &self, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/mod.rs:436:6 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 436 | ) -> Result<(), RedbError> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/redb/mod.rs:455:27 [INFO] [stdout] | [INFO] [stdout] 48 | TransactionFiled(#[from] redb::TransactionError), [INFO] [stdout] | ------------------------------------------------ the largest variant contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 56 | RetrievingError(redb::Error), [INFO] [stdout] | ---------------------------- the variant `RetrievingError` contains at least 160 bytes [INFO] [stdout] ... [INFO] [stdout] 455 | fn test_retrieve_kel() -> Result<(), RedbError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `database::redb::RedbError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/database/timestamped.rs:27:51 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn is_stale(&self, duration: Duration) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-canonical implementation of `partial_cmp` on an `Ord` type [INFO] [stdout] --> src/database/timestamped.rs:70:1 [INFO] [stdout] | [INFO] [stdout] 70 | / impl PartialOrd for Timestamped { [INFO] [stdout] 71 | | fn partial_cmp(&self, other: &Self) -> Option { [INFO] [stdout] 72 | | PartialOrd::partial_cmp( [INFO] [stdout] 73 | | &self.signed_event_message.event_message.data.get_sn(), [INFO] [stdout] ... | [INFO] [stdout] 77 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#non_canonical_partial_ord_impl [INFO] [stdout] = note: `#[warn(clippy::non_canonical_partial_ord_impl)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 71 - fn partial_cmp(&self, other: &Self) -> Option { [INFO] [stdout] 72 - PartialOrd::partial_cmp( [INFO] [stdout] 73 - &self.signed_event_message.event_message.data.get_sn(), [INFO] [stdout] 74 - &other.signed_event_message.event_message.data.get_sn(), [INFO] [stdout] 75 - ) [INFO] [stdout] 76 - } [INFO] [stdout] 71 + fn partial_cmp(&self, other: &Self) -> Option { Some(self.cmp(other)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/database/mod.rs:203:17 [INFO] [stdout] | [INFO] [stdout] 203 | escrow: Arc< [INFO] [stdout] | _________________^ [INFO] [stdout] 204 | | dyn SequencedEventDatabase< [INFO] [stdout] 205 | | DatabaseType = Self::EscrowDatabaseType, [INFO] [stdout] 206 | | Error = Self::Error, [INFO] [stdout] 207 | | DigestIter = Box>, [INFO] [stdout] 208 | | >, [INFO] [stdout] 209 | | >, [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] = note: `#[warn(clippy::type_complexity)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event/event_data/delegated/mod.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event/event_data/delegated/mod.rs:76:50 [INFO] [stdout] | [INFO] [stdout] 76 | fn test_delegated_inception_data_derivation() -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused "map closure" when calling `Option::map_or_else` value [INFO] [stdout] --> src/event/event_data/inception.rs:55:29 [INFO] [stdout] | [INFO] [stdout] 55 | witness_config: witness_config.map_or_else(InceptionWitnessConfig::default, |w| w), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `unwrap_or_else`: `witness_config.unwrap_or_else(InceptionWitnessConfig::default)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_option_map_or_else [INFO] [stdout] = note: `#[warn(clippy::unnecessary_option_map_or_else)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused "map closure" when calling `Option::map_or_else` value [INFO] [stdout] --> src/event/event_data/inception.rs:56:38 [INFO] [stdout] | [INFO] [stdout] 56 | inception_configuration: inception_config.map_or_else(Vec::new, |c| c), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `unwrap_or_else`: `inception_config.unwrap_or_else(Vec::new)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_option_map_or_else [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event/event_data/inception.rs:70:10 [INFO] [stdout] | [INFO] [stdout] 70 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event/event_data/inception.rs:109:40 [INFO] [stdout] | [INFO] [stdout] 109 | fn test_inception_data_derivation() -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event/receipt.rs:57:29 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn encode(&self) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused "map closure" when calling `Option::map_or_else` value [INFO] [stdout] --> src/event/sections/key_config.rs:167:24 [INFO] [stdout] | [INFO] [stdout] 167 | threshold: threshold.map_or_else( [INFO] [stdout] | ________________________^ [INFO] [stdout] 168 | | || SignatureThreshold::Simple(public_keys.len() as u64 / 2 + 1), [INFO] [stdout] 169 | | |t| t, [INFO] [stdout] 170 | | ), [INFO] [stdout] | |_____________^ help: consider using `unwrap_or_else`: `threshold.unwrap_or_else(|| SignatureThreshold::Simple(public_keys.len() as u64 / 2 + 1))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_option_map_or_else [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `event::sections::key_config::SignatureError` [INFO] [stdout] --> src/event/sections/key_config.rs:195:17 [INFO] [stdout] | [INFO] [stdout] 195 | Err(SignatureError::DuplicateSignature.into()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `SignatureError::DuplicateSignature` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] = note: `#[warn(clippy::useless_conversion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `event::sections::key_config::SignatureError` [INFO] [stdout] --> src/event/sections/key_config.rs:199:17 [INFO] [stdout] | [INFO] [stdout] 199 | Err(SignatureError::TooManySignatures.into()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `SignatureError::TooManySignatures` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `Iterator::fold` on a type that implements `Try` [INFO] [stdout] --> src/event/sections/key_config.rs:211:18 [INFO] [stdout] | [INFO] [stdout] 211 | .fold(Ok(true), |acc: Result, sig| { [INFO] [stdout] | __________________^ [INFO] [stdout] 212 | | let verification_result: bool = self [INFO] [stdout] 213 | | .public_keys [INFO] [stdout] 214 | | .get(sig.index.current() as usize) [INFO] [stdout] ... | [INFO] [stdout] 217 | | Ok(acc? && verification_result) [INFO] [stdout] 218 | | }) [INFO] [stdout] | |__________________^ help: use `try_fold` instead: `try_fold(true, |acc: Result, sig| ...)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_try_fold [INFO] [stdout] = note: `#[warn(clippy::manual_try_fold)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `event::sections::key_config::SignatureError` [INFO] [stdout] --> src/event/sections/key_config.rs:215:40 [INFO] [stdout] | [INFO] [stdout] 215 | .ok_or_else(|| SignatureError::from(SignatureError::MissingIndex)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `SignatureError::from()`: `SignatureError::MissingIndex` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enclosing `Ok` and `?` operator are unneeded [INFO] [stdout] --> src/event/sections/key_config.rs:216:55 [INFO] [stdout] | [INFO] [stdout] 216 | .and_then(|key: &BasicPrefix| Ok(key.verify(message, &sig.signature)?))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark [INFO] [stdout] help: remove the enclosing `Ok` and `?` operator [INFO] [stdout] | [INFO] [stdout] 216 - .and_then(|key: &BasicPrefix| Ok(key.verify(message, &sig.signature)?))?; [INFO] [stdout] 216 + .and_then(|key: &BasicPrefix| key.verify(message, &sig.signature))?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event/sections/key_config.rs:310:28 [INFO] [stdout] | [INFO] [stdout] 310 | fn test_threshold() -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is used to index `priv_keys` [INFO] [stdout] --> src/event/sections/key_config.rs:351:18 [INFO] [stdout] | [INFO] [stdout] 351 | for i in 0..priv_keys.len() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] = note: `#[warn(clippy::needless_range_loop)]` on by default [INFO] [stdout] help: consider using an iterator and enumerate() [INFO] [stdout] | [INFO] [stdout] 351 - for i in 0..priv_keys.len() { [INFO] [stdout] 351 + for (i, ) in priv_keys.iter().enumerate() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event/sections/key_config.rs:400:25 [INFO] [stdout] | [INFO] [stdout] 400 | fn test_verify() -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/event/sections/key_config.rs:413:9 [INFO] [stdout] | [INFO] [stdout] 413 | / match signed_msg { [INFO] [stdout] 414 | | Message::Notice(Notice::Event(ref e)) => { [INFO] [stdout] 415 | | if let EventData::Icp(icp) = e.to_owned().event_message.data.get_event_data() { [INFO] [stdout] 416 | | let kc = icp.key_config; [INFO] [stdout] ... | [INFO] [stdout] 421 | | _ => (), [INFO] [stdout] 422 | | }; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] = note: `#[warn(clippy::single_match)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 413 ~ if let Message::Notice(Notice::Event(ref e)) = signed_msg { [INFO] [stdout] 414 + if let EventData::Icp(icp) = e.to_owned().event_message.data.get_event_data() { [INFO] [stdout] 415 + let kc = icp.key_config; [INFO] [stdout] 416 + let msg = e.event_message.encode()?; [INFO] [stdout] 417 + assert!(kc.verify(&msg, &e.signatures).is_ok()); [INFO] [stdout] 418 + } [INFO] [stdout] 419 ~ }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/event/sections/key_config.rs:427:9 [INFO] [stdout] | [INFO] [stdout] 427 | / match signed_msg { [INFO] [stdout] 428 | | Message::Notice(Notice::Event(ref e)) => { [INFO] [stdout] 429 | | if let EventData::Icp(icp) = e.to_owned().event_message.data.get_event_data() { [INFO] [stdout] 430 | | let kc = icp.key_config; [INFO] [stdout] ... | [INFO] [stdout] 435 | | _ => (), [INFO] [stdout] 436 | | }; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 427 ~ if let Message::Notice(Notice::Event(ref e)) = signed_msg { [INFO] [stdout] 428 + if let EventData::Icp(icp) = e.to_owned().event_message.data.get_event_data() { [INFO] [stdout] 429 + let kc = icp.key_config; [INFO] [stdout] 430 + let msg = e.event_message.encode()?; [INFO] [stdout] 431 + assert!(kc.verify(&msg, &e.signatures).is_ok()); [INFO] [stdout] 432 + } [INFO] [stdout] 433 ~ }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event/sections/key_config.rs:442:56 [INFO] [stdout] | [INFO] [stdout] 442 | pub fn test_finding_matching_previous_indexes() -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary closure used with `bool::then` [INFO] [stdout] --> src/event/sections/threshold.rs:183:9 [INFO] [stdout] | [INFO] [stdout] 183 | / (sigs_indexes [INFO] [stdout] 184 | | .iter() [INFO] [stdout] 185 | | .fold(Some(Zero::zero()), |acc: Option, sig_index| { [INFO] [stdout] 186 | | if let (Some(element), Some(sum)) = (self.0.get(sig_index - start_index), acc) { [INFO] [stdout] ... | [INFO] [stdout] 193 | | >= One::one()) [INFO] [stdout] 194 | | .then(|| ()) [INFO] [stdout] | |____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations [INFO] [stdout] = note: `#[warn(clippy::unnecessary_lazy_evaluations)]` on by default [INFO] [stdout] help: use `then_some` instead [INFO] [stdout] | [INFO] [stdout] 194 - .then(|| ()) [INFO] [stdout] 194 + .then_some(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary closure used to substitute value for `Option::None` [INFO] [stdout] --> src/event/sections/threshold.rs:183:10 [INFO] [stdout] | [INFO] [stdout] 183 | (sigs_indexes [INFO] [stdout] | __________^ [INFO] [stdout] 184 | | .iter() [INFO] [stdout] 185 | | .fold(Some(Zero::zero()), |acc: Option, sig_index| { [INFO] [stdout] 186 | | if let (Some(element), Some(sum)) = (self.0.get(sig_index - start_index), acc) { [INFO] [stdout] ... | [INFO] [stdout] 191 | | }) [INFO] [stdout] 192 | | .ok_or_else(|| SignatureError::MissingIndex)? [INFO] [stdout] | |________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations [INFO] [stdout] help: use `ok_or` instead [INFO] [stdout] | [INFO] [stdout] 192 - .ok_or_else(|| SignatureError::MissingIndex)? [INFO] [stdout] 192 + .ok_or(SignatureError::MissingIndex)? [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `Iterator::fold` on a type that implements `Try` [INFO] [stdout] --> src/event/sections/threshold.rs:185:14 [INFO] [stdout] | [INFO] [stdout] 185 | .fold(Some(Zero::zero()), |acc: Option, sig_index| { [INFO] [stdout] | ______________^ [INFO] [stdout] 186 | | if let (Some(element), Some(sum)) = (self.0.get(sig_index - start_index), acc) { [INFO] [stdout] 187 | | Some(sum + element.fraction) [INFO] [stdout] 188 | | } else { [INFO] [stdout] ... | [INFO] [stdout] 191 | | }) [INFO] [stdout] | |______________^ help: use `try_fold` instead: `try_fold(Zero::zero(), |acc: Option, sig_index| ...)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_try_fold [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary closure used with `bool::then` [INFO] [stdout] --> src/event/sections/threshold.rs:236:9 [INFO] [stdout] | [INFO] [stdout] 236 | / self.0 [INFO] [stdout] 237 | | .iter() [INFO] [stdout] 238 | | .fold(Ok((0, true)), |acc, clause| -> Result<_, SignatureError> { [INFO] [stdout] 239 | | let (start, enough) = acc?; [INFO] [stdout] ... | [INFO] [stdout] 252 | | .1 [INFO] [stdout] 253 | | .then(|| ()) [INFO] [stdout] | |________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations [INFO] [stdout] help: use `then_some` instead [INFO] [stdout] | [INFO] [stdout] 253 - .then(|| ()) [INFO] [stdout] 253 + .then_some(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of `Iterator::fold` on a type that implements `Try` [INFO] [stdout] --> src/event/sections/threshold.rs:238:14 [INFO] [stdout] | [INFO] [stdout] 238 | .fold(Ok((0, true)), |acc, clause| -> Result<_, SignatureError> { [INFO] [stdout] | ______________^ [INFO] [stdout] 239 | | let (start, enough) = acc?; [INFO] [stdout] 240 | | let sigs: Vec = sigs_indexes [INFO] [stdout] 241 | | .iter() [INFO] [stdout] ... | [INFO] [stdout] 250 | | )) [INFO] [stdout] 251 | | })? [INFO] [stdout] | |______________^ help: use `try_fold` instead: `try_fold((0, true), |acc, clause| ...)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_try_fold [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/event/sections/threshold.rs:337:13 [INFO] [stdout] | [INFO] [stdout] 337 | assert!(!wt.enough_signatures(¬_enough.clone()).is_ok()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `wt.enough_signatures(¬_enough.clone()).is_err()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `usize` which implements the `Copy` trait [INFO] [stdout] --> src/event/sections/threshold.rs:330:9 [INFO] [stdout] | [INFO] [stdout] 330 | sigs_indexes[0].clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `sigs_indexes[0]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] = note: `#[warn(clippy::clone_on_copy)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `usize` which implements the `Copy` trait [INFO] [stdout] --> src/event/sections/threshold.rs:331:9 [INFO] [stdout] | [INFO] [stdout] 331 | sigs_indexes[1].clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `sigs_indexes[1]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `usize` which implements the `Copy` trait [INFO] [stdout] --> src/event/sections/threshold.rs:332:9 [INFO] [stdout] | [INFO] [stdout] 332 | sigs_indexes[3].clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `sigs_indexes[3]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `usize` which implements the `Copy` trait [INFO] [stdout] --> src/event/sections/threshold.rs:336:27 [INFO] [stdout] | [INFO] [stdout] 336 | let not_enough = vec![sigs_indexes[0].clone()]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `sigs_indexes[0]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event/mod.rs:51:10 [INFO] [stdout] | [INFO] [stdout] 51 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: large size difference between variants [INFO] [stdout] --> src/event_message/cesr_adapter.rs:69:1 [INFO] [stdout] | [INFO] [stdout] 69 | / pub enum EventType { [INFO] [stdout] 70 | | KeyEvent(KeriEvent), [INFO] [stdout] | | ----------------------------- the largest variant contains at least 448 bytes [INFO] [stdout] 71 | | Receipt(Receipt), [INFO] [stdout] | | ---------------- the second-largest variant contains at least 168 bytes [INFO] [stdout] 72 | | #[cfg(feature = "mailbox")] [INFO] [stdout] ... | [INFO] [stdout] 79 | | Rpy(ReplyEvent), [INFO] [stdout] 80 | | } [INFO] [stdout] | |_^ the entire enum is at least 448 bytes [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant [INFO] [stdout] = note: `#[warn(clippy::large_enum_variant)]` on by default [INFO] [stdout] help: consider boxing the large fields or introducing indirection in some other way to reduce the total size of the enum [INFO] [stdout] | [INFO] [stdout] 70 - KeyEvent(KeriEvent), [INFO] [stdout] 70 + KeyEvent(Box>), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event_message/cesr_adapter.rs:83:32 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn serialize(&self) -> Result, crate::error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec` [INFO] [stdout] --> src/event_message/cesr_adapter.rs:548:22 [INFO] [stdout] | [INFO] [stdout] 548 | .into_iter() [INFO] [stdout] | ^^^^^^^^^ help: call directly: `iter` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref [INFO] [stdout] = note: `#[warn(clippy::into_iter_on_ref)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `said::SelfAddressingIdentifier` [INFO] [stdout] --> src/event_message/cesr_adapter.rs:576:17 [INFO] [stdout] | [INFO] [stdout] 576 | SelfAddressingIdentifier::from(event_digest.clone()).into(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `SelfAddressingIdentifier::from(event_digest.clone())` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event_message/dummy_event.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event_message/dummy_event.rs:47:10 [INFO] [stdout] | [INFO] [stdout] 47 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event_message/dummy_event.rs:55:10 [INFO] [stdout] | [INFO] [stdout] 55 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event_message/event_msg_builder.rs:170:27 [INFO] [stdout] | [INFO] [stdout] 170 | pub fn build(self) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `said::SelfAddressingIdentifier` [INFO] [stdout] --> src/event_message/event_msg_builder.rs:227:54 [INFO] [stdout] | [INFO] [stdout] 227 | EventData::Ixn(InteractionEvent::new(self.prev_event.into(), self.data)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `self.prev_event` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event_message/event_msg_builder.rs:288:28 [INFO] [stdout] | [INFO] [stdout] 288 | pub fn build(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event_message/key_event_message.rs:37:69 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn compare_digest(&self, sai: &SelfAddressingIdentifier) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event_message/key_event_message.rs:46:41 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn to_derivation_data(&self) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/event_message/key_event_message.rs:70:64 [INFO] [stdout] | [INFO] [stdout] 70 | let check_event_digest = |ev: &KeriEvent| -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/event_message/key_event_message.rs:102:64 [INFO] [stdout] | [INFO] [stdout] 102 | self.data.apply_to(state.clone()).and_then(|next_state| { [INFO] [stdout] | ________________________________________________________________^ [INFO] [stdout] 103 | | if last_event_digest.eq(rot.previous_event_hash()) { [INFO] [stdout] 104 | | Ok(IdentifierState { [INFO] [stdout] 105 | | last_event_digest: event_digest.into(), [INFO] [stdout] ... | [INFO] [stdout] 113 | | }) [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/event_message/key_event_message.rs:118:60 [INFO] [stdout] | [INFO] [stdout] 118 | self.data.apply_to(state.clone()).and_then(|next_state| { [INFO] [stdout] | ____________________________________________________________^ [INFO] [stdout] 119 | | check_event_digest(self)?; [INFO] [stdout] 120 | | if state.delegator.is_none() { [INFO] [stdout] 121 | | Err(Error::SemanticError( [INFO] [stdout] ... | [INFO] [stdout] 134 | | }) [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/event_message/key_event_message.rs:138:60 [INFO] [stdout] | [INFO] [stdout] 138 | self.data.apply_to(state.clone()).and_then(|next_state| { [INFO] [stdout] | ____________________________________________________________^ [INFO] [stdout] 139 | | if last_event_digest.eq(inter.previous_event_hash()) { [INFO] [stdout] 140 | | Ok(IdentifierState { [INFO] [stdout] 141 | | last_event_digest: event_digest.into(), [INFO] [stdout] ... | [INFO] [stdout] 149 | | }) [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event_message/key_event_message.rs:156:70 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn verify_identifier_binding(icp_event: &KeriEvent) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event_message/msg.rs:47:29 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn digest(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event_message/msg.rs:54:35 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn check_digest(&self) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event_message/msg.rs:82:29 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn encode(&self) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/event_message/serializer.rs:21:6 [INFO] [stdout] | [INFO] [stdout] 21 | impl<'a> ser::Serializer for &'a mut KeriJsonSerializer { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 21 - impl<'a> ser::Serializer for &'a mut KeriJsonSerializer { [INFO] [stdout] 21 + impl ser::Serializer for &mut KeriJsonSerializer { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/event_message/serializer.rs:213:6 [INFO] [stdout] | [INFO] [stdout] 213 | impl<'a> ser::SerializeSeq for &'a mut KeriJsonSerializer { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 213 - impl<'a> ser::SerializeSeq for &'a mut KeriJsonSerializer { [INFO] [stdout] 213 + impl ser::SerializeSeq for &mut KeriJsonSerializer { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/event_message/serializer.rs:236:6 [INFO] [stdout] | [INFO] [stdout] 236 | impl<'a> ser::SerializeTuple for &'a mut KeriJsonSerializer { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 236 - impl<'a> ser::SerializeTuple for &'a mut KeriJsonSerializer { [INFO] [stdout] 236 + impl ser::SerializeTuple for &mut KeriJsonSerializer { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/event_message/serializer.rs:256:6 [INFO] [stdout] | [INFO] [stdout] 256 | impl<'a> ser::SerializeTupleStruct for &'a mut KeriJsonSerializer { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 256 - impl<'a> ser::SerializeTupleStruct for &'a mut KeriJsonSerializer { [INFO] [stdout] 256 + impl ser::SerializeTupleStruct for &mut KeriJsonSerializer { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/event_message/serializer.rs:276:6 [INFO] [stdout] | [INFO] [stdout] 276 | impl<'a> ser::SerializeTupleVariant for &'a mut KeriJsonSerializer { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 276 - impl<'a> ser::SerializeTupleVariant for &'a mut KeriJsonSerializer { [INFO] [stdout] 276 + impl ser::SerializeTupleVariant for &mut KeriJsonSerializer { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/event_message/serializer.rs:296:6 [INFO] [stdout] | [INFO] [stdout] 296 | impl<'a> ser::SerializeMap for &'a mut KeriJsonSerializer { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 296 - impl<'a> ser::SerializeMap for &'a mut KeriJsonSerializer { [INFO] [stdout] 296 + impl ser::SerializeMap for &mut KeriJsonSerializer { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/event_message/serializer.rs:325:6 [INFO] [stdout] | [INFO] [stdout] 325 | impl<'a> ser::SerializeStruct for &'a mut KeriJsonSerializer { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 325 - impl<'a> ser::SerializeStruct for &'a mut KeriJsonSerializer { [INFO] [stdout] 325 + impl ser::SerializeStruct for &mut KeriJsonSerializer { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/event_message/serializer.rs:362:6 [INFO] [stdout] | [INFO] [stdout] 362 | impl<'a> ser::SerializeStructVariant for &'a mut KeriJsonSerializer { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 362 - impl<'a> ser::SerializeStructVariant for &'a mut KeriJsonSerializer { [INFO] [stdout] 362 + impl ser::SerializeStructVariant for &mut KeriJsonSerializer { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event_message/signature.rs:87:10 [INFO] [stdout] | [INFO] [stdout] 87 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true [INFO] [stdout] --> src/event_message/signature.rs:211:1 [INFO] [stdout] | [INFO] [stdout] 211 | impl Into for Nontransferable { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: `impl From for Foreign` is allowed by the orphan rules, for more information see [INFO] [stdout] https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into [INFO] [stdout] = note: `#[warn(clippy::from_over_into)]` on by default [INFO] [stdout] help: replace the `Into` implementation with `From` [INFO] [stdout] | [INFO] [stdout] 211 ~ impl From for Group { [INFO] [stdout] 212 ~ fn from(val: Nontransferable) -> Self { [INFO] [stdout] 213 ~ match val { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true [INFO] [stdout] --> src/event_message/signature.rs:229:1 [INFO] [stdout] | [INFO] [stdout] 229 | impl Into for crate::event_message::signature::Signature { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: `impl From for Foreign` is allowed by the orphan rules, for more information see [INFO] [stdout] https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into [INFO] [stdout] help: replace the `Into` implementation with `From` [INFO] [stdout] | [INFO] [stdout] 229 ~ impl From for Group { [INFO] [stdout] 230 ~ fn from(val: crate::event_message::signature::Signature) -> Self { [INFO] [stdout] 231 ~ match val { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: large size difference between variants [INFO] [stdout] --> src/event_message/signed_event_message.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | / pub enum Notice { [INFO] [stdout] 30 | | Event(SignedEventMessage), [INFO] [stdout] | | ------------------------- the largest variant contains at least 560 bytes [INFO] [stdout] ... | [INFO] [stdout] 34 | | TransferableRct(SignedTransferableReceipt), [INFO] [stdout] | | ------------------------------------------ the second-largest variant contains at least 312 bytes [INFO] [stdout] 35 | | } [INFO] [stdout] | |_^ the entire enum is at least 560 bytes [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant [INFO] [stdout] help: consider boxing the large fields or introducing indirection in some other way to reduce the total size of the enum [INFO] [stdout] | [INFO] [stdout] 30 - Event(SignedEventMessage), [INFO] [stdout] 30 + Event(Box), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event_message/signed_event_message.rs:85:30 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn to_cesr(&self) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event_message/signed_event_message.rs:212:29 [INFO] [stdout] | [INFO] [stdout] 212 | pub fn encode(&self) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/event_message/signed_event_message.rs:301:18 [INFO] [stdout] | [INFO] [stdout] 301 | _ => assert!(false), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] = note: `#[warn(clippy::assertions_on_constants)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/event_message/signed_event_message.rs:325:18 [INFO] [stdout] | [INFO] [stdout] 325 | _ => assert!(false), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/event_message/signed_event_message.rs:367:13 [INFO] [stdout] | [INFO] [stdout] 367 | assert!(false) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-canonical implementation of `partial_cmp` on an `Ord` type [INFO] [stdout] --> src/event_message/mod.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | / impl PartialOrd for TimestampedEventMessage { [INFO] [stdout] 65 | | fn partial_cmp(&self, other: &Self) -> Option { [INFO] [stdout] 66 | | Some( [INFO] [stdout] 67 | | match self.event_message.data.get_sn() == other.event_message.data.get_sn() { [INFO] [stdout] ... | [INFO] [stdout] 78 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#non_canonical_partial_ord_impl [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 65 - fn partial_cmp(&self, other: &Self) -> Option { [INFO] [stdout] 66 - Some( [INFO] [stdout] 67 - match self.event_message.data.get_sn() == other.event_message.data.get_sn() { [INFO] [stdout] 68 - true => Ordering::Equal, [INFO] [stdout] 69 - false => { [INFO] [stdout] 70 - match self.event_message.data.get_sn() > other.event_message.data.get_sn() { [INFO] [stdout] 71 - true => Ordering::Greater, [INFO] [stdout] 72 - false => Ordering::Less, [INFO] [stdout] 73 - } [INFO] [stdout] 74 - } [INFO] [stdout] 75 - }, [INFO] [stdout] 76 - ) [INFO] [stdout] 77 - } [INFO] [stdout] 65 + fn partial_cmp(&self, other: &Self) -> Option { Some(self.cmp(other)) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event_message/tests/test_utils.rs:30:31 [INFO] [stdout] | [INFO] [stdout] 30 | fn get_initial_test_data() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event_message/tests/test_utils.rs:51:6 [INFO] [stdout] | [INFO] [stdout] 51 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this call to `clone` can be replaced with `std::slice::from_ref` [INFO] [stdout] --> src/event_message/tests/test_utils.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | &[next_key_prefix.clone()], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::slice::from_ref(&next_key_prefix)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cloned_ref_to_slice_refs [INFO] [stdout] = note: `#[warn(clippy::cloned_ref_to_slice_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event_message/tests/test_utils.rs:153:65 [INFO] [stdout] | [INFO] [stdout] 153 | pub fn test_mock_event_sequence(sequence: Vec) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/event_message/tests/test_utils.rs:156:16 [INFO] [stdout] | [INFO] [stdout] 156 | let step = |event_type, state_data: Result| { [INFO] [stdout] | ________________^ [INFO] [stdout] 157 | | test_update_identifier_state(event_type, state_data?) [INFO] [stdout] 158 | | }; [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event_message/mod.rs:135:26 [INFO] [stdout] | [INFO] [stdout] 135 | fn basic_create() -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event_message/mod.rs:212:36 [INFO] [stdout] | [INFO] [stdout] 212 | fn self_addressing_create() -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event_message/mod.rs:302:47 [INFO] [stdout] | [INFO] [stdout] 302 | fn test_basic_establishment_sequence() -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event_message/mod.rs:336:33 [INFO] [stdout] | [INFO] [stdout] 336 | fn test_basic_sequence() -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event_message/mod.rs:359:39 [INFO] [stdout] | [INFO] [stdout] 359 | pub fn test_partial_rotation() -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_owned` [INFO] [stdout] --> src/keys/mod.rs:149:36 [INFO] [stdout] | [INFO] [stdout] 149 | &Signature::from_bytes(&arrayref::array_ref!(sodium_sig, 0, 64).to_owned()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `arrayref::array_ref!(sodium_sig, 0, 64)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] = note: `#[warn(clippy::unnecessary_to_owned)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `as_bytes` after slicing a string [INFO] [stdout] --> src/prefix/attached_signature.rs:88:44 [INFO] [stdout] | [INFO] [stdout] 88 | let s_vec = from_text_to_bytes(s[code.code_size()..].as_bytes())?[lead..].to_vec(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&s.as_bytes()[code.code_size()..]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#sliced_string_as_bytes [INFO] [stdout] = note: `#[warn(clippy::sliced_string_as_bytes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match expression looks like `matches!` macro [INFO] [stdout] --> src/prefix/basic.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | / match self { [INFO] [stdout] 62 | | BasicPrefix::ECDSAsecp256k1NT(_) [INFO] [stdout] 63 | | | BasicPrefix::Ed25519NT(_) [INFO] [stdout] 64 | | | BasicPrefix::Ed448NT(_) => false, [INFO] [stdout] 65 | | _ => true, [INFO] [stdout] 66 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro [INFO] [stdout] = note: `#[warn(clippy::match_like_matches_macro)]` on by default [INFO] [stdout] help: use `matches!` directly [INFO] [stdout] | [INFO] [stdout] 61 ~ !matches!(self, BasicPrefix::ECDSAsecp256k1NT(_) [INFO] [stdout] 62 + | BasicPrefix::Ed25519NT(_) [INFO] [stdout] 63 + | BasicPrefix::Ed448NT(_)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `as_bytes` after slicing a string [INFO] [stdout] --> src/prefix/basic.rs:91:36 [INFO] [stdout] | [INFO] [stdout] 91 | from_text_to_bytes(s[code.code_size()..].as_bytes())?[code.code_size()..].to_vec(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&s.as_bytes()[code.code_size()..]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#sliced_string_as_bytes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `said::SelfAddressingIdentifier` [INFO] [stdout] --> src/prefix/cesr_adapter.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | digest_said.into(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `digest_said` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `said::SelfAddressingIdentifier` [INFO] [stdout] --> src/prefix/cesr_adapter.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | digest_said.into(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `digest_said` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true [INFO] [stdout] --> src/prefix/cesr_adapter.rs:102:1 [INFO] [stdout] | [INFO] [stdout] 102 | impl Into for SelfSigningPrefix { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: `impl From for Foreign` is allowed by the orphan rules, for more information see [INFO] [stdout] https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into [INFO] [stdout] help: replace the `Into` implementation with `From` [INFO] [stdout] | [INFO] [stdout] 102 ~ impl From for Signature { [INFO] [stdout] 103 ~ fn from(val: SelfSigningPrefix) -> Self { [INFO] [stdout] 104 ~ (val.get_code(), val.derivative()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true [INFO] [stdout] --> src/prefix/cesr_adapter.rs:108:1 [INFO] [stdout] | [INFO] [stdout] 108 | impl Into for BasicPrefix { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: `impl From for Foreign` is allowed by the orphan rules, for more information see [INFO] [stdout] https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into [INFO] [stdout] help: replace the `Into` implementation with `From` [INFO] [stdout] | [INFO] [stdout] 108 ~ impl From for PublicKey { [INFO] [stdout] 109 ~ fn from(val: BasicPrefix) -> Self { [INFO] [stdout] 110 ~ (val.get_code(), val.derivative()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true [INFO] [stdout] --> src/prefix/cesr_adapter.rs:114:1 [INFO] [stdout] | [INFO] [stdout] 114 | impl Into for IndexedSignature { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: `impl From for Foreign` is allowed by the orphan rules, for more information see [INFO] [stdout] https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into [INFO] [stdout] help: replace the `Into` implementation with `From` [INFO] [stdout] | [INFO] [stdout] 114 ~ impl From for CesrIndexedSignature { [INFO] [stdout] 115 ~ fn from(val: IndexedSignature) -> Self { [INFO] [stdout] 116 | ( [INFO] [stdout] 117 ~ AttachedSignatureCode::new(val.signature.get_code(), (&val.index).into()), [INFO] [stdout] 118 ~ val.derivative(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true [INFO] [stdout] --> src/prefix/cesr_adapter.rs:123:1 [INFO] [stdout] | [INFO] [stdout] 123 | impl Into for &Index { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: `impl From for Foreign` is allowed by the orphan rules, for more information see [INFO] [stdout] https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into [INFO] [stdout] help: replace the `Into` implementation with `From<&prefix::attached_signature::Index>` [INFO] [stdout] | [INFO] [stdout] 123 ~ impl From<&Index> for CesrIndex { [INFO] [stdout] 124 ~ fn from(val: &Index) -> Self { [INFO] [stdout] 125 ~ match val { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true [INFO] [stdout] --> src/prefix/cesr_adapter.rs:145:1 [INFO] [stdout] | [INFO] [stdout] 145 | impl Into for IdentifierPrefix { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: `impl From for Foreign` is allowed by the orphan rules, for more information see [INFO] [stdout] https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into [INFO] [stdout] help: replace the `Into` implementation with `From` [INFO] [stdout] | [INFO] [stdout] 145 ~ impl From for Identifier { [INFO] [stdout] 146 ~ fn from(val: IdentifierPrefix) -> Self { [INFO] [stdout] 147 ~ match &val { [INFO] [stdout] 148 | IdentifierPrefix::Basic(bp) => { [INFO] [stdout] 149 ~ (IdentifierCode::Basic(bp.get_code()), val.derivative()) [INFO] [stdout] 150 | } [INFO] [stdout] 151 | IdentifierPrefix::SelfAddressing(sa) => ( [INFO] [stdout] 152 | IdentifierCode::SelfAddressing((&sa.said.derivation).into()), [INFO] [stdout] 153 ~ val.derivative(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `as_bytes` after slicing a string [INFO] [stdout] --> src/prefix/seed.rs:64:36 [INFO] [stdout] | [INFO] [stdout] 64 | from_text_to_bytes(s[code.code_size()..].as_bytes())?[code.code_size()..].to_vec(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&s.as_bytes()[code.code_size()..]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#sliced_string_as_bytes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calling `as_bytes` after slicing a string [INFO] [stdout] --> src/prefix/self_signing.rs:56:36 [INFO] [stdout] | [INFO] [stdout] 56 | from_text_to_bytes(s[code.code_size()..].as_bytes())?[code.code_size()..].to_vec(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&s.as_bytes()[code.code_size()..]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#sliced_string_as_bytes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/prefix/mod.rs:184:17 [INFO] [stdout] | [INFO] [stdout] 184 | assert!(!IdentifierPrefix::from_str("BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA").is_ok()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `IdentifierPrefix::from_str("BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA").is_err()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/prefix/mod.rs:188:13 [INFO] [stdout] | [INFO] [stdout] 188 | !IdentifierPrefix::from_str("BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA").is_ok() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `IdentifierPrefix::from_str("BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA").is_err()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/prefix/mod.rs:193:13 [INFO] [stdout] | [INFO] [stdout] 193 | !IdentifierPrefix::from_str("ZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA").is_ok() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `IdentifierPrefix::from_str("ZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA").is_err()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/prefix/mod.rs:198:13 [INFO] [stdout] | [INFO] [stdout] 198 | !IdentifierPrefix::from_str("BAAAAAAAAAAAAAAAAAAA/AAAAAAAAAAAAAAAAAAAAAAAA").is_ok() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `IdentifierPrefix::from_str("BAAAAAAAAAAAAAAAAAAA/AAAAAAAAAAAAAAAAAAAAAAAA").is_err()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/prefix/mod.rs:231:36 [INFO] [stdout] | [INFO] [stdout] 231 | let sig = priv_key.sign_ed(&data_string.as_bytes()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `data_string.as_bytes()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/prefix/mod.rs:234:39 [INFO] [stdout] | [INFO] [stdout] 234 | let check = key_prefix.verify(&data_string.as_bytes(), &sig_prefix); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `data_string.as_bytes()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/basic_processor.rs:51:10 [INFO] [stdout] | [INFO] [stdout] 51 | ) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/escrow/delegation_escrow.rs:60:10 [INFO] [stdout] | [INFO] [stdout] 60 | ) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/escrow/duplicitous_events.rs:21:49 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn get(&self, id: &IdentifierPrefix) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/escrow/maybe_out_of_order_escrow.rs:34:10 [INFO] [stdout] | [INFO] [stdout] 34 | ) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/escrow/maybe_out_of_order_escrow.rs:89:27 [INFO] [stdout] | [INFO] [stdout] 89 | fn test_out_of_order() -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/escrow/partially_signed_escrow.rs:43:71 [INFO] [stdout] | [INFO] [stdout] 43 | fn remove_partially_signed(&self, event: &KeriEvent) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/escrow/partially_signed_escrow.rs:53:10 [INFO] [stdout] | [INFO] [stdout] 53 | ) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/escrow/partially_signed_escrow.rs:168:44 [INFO] [stdout] | [INFO] [stdout] 168 | fn test_escrow_missing_signatures() -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/escrow/partially_signed_escrow.rs:264:40 [INFO] [stdout] | [INFO] [stdout] 264 | fn test_partially_sign_escrow() -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | ) -> Result + 'a, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:52:10 [INFO] [stdout] | [INFO] [stdout] 52 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:60:35 [INFO] [stdout] | [INFO] [stdout] 60 | .get_signed_event(&event_digest) [INFO] [stdout] | ^^^^^^^^^^^^^ help: change this to: `event_digest` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:75:10 [INFO] [stdout] | [INFO] [stdout] 75 | ) -> Result + 'a>, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:94:10 [INFO] [stdout] | [INFO] [stdout] 94 | ) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:113:66 [INFO] [stdout] | [INFO] [stdout] 113 | fn accept_receipts_for(&self, event: &SignedEventMessage) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:124:10 [INFO] [stdout] | [INFO] [stdout] 124 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:133:27 [INFO] [stdout] | [INFO] [stdout] 133 | .map(|inx| -> Result<_, _> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:151:10 [INFO] [stdout] | [INFO] [stdout] 151 | ) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: explicit call to `.into_iter()` in function argument accepting `IntoIterator` [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:165:17 [INFO] [stdout] | [INFO] [stdout] 165 | signatures.into_iter(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: this parameter accepts any `IntoIterator`, so you don't need to call `.into_iter()` [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:122:19 [INFO] [stdout] | [INFO] [stdout] 122 | rct: impl IntoIterator, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] help: consider removing the `.into_iter()` [INFO] [stdout] | [INFO] [stdout] 165 - signatures.into_iter(), [INFO] [stdout] 165 + signatures, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:168:42 [INFO] [stdout] | [INFO] [stdout] 168 | couplets.iter().try_for_each(|(bp, sp)| { [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 169 | | bp.verify(&receipted_event.event_message.encode()?, sp)? [INFO] [stdout] 170 | | .then_some(()) [INFO] [stdout] 171 | | .ok_or(Error::ReceiptVerificationError) [INFO] [stdout] 172 | | })?; [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:220:10 [INFO] [stdout] | [INFO] [stdout] 220 | ) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:226:33 [INFO] [stdout] | [INFO] [stdout] 226 | .verify(&serialized_receipted_event, &inx.signature) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `serialized_receipted_event` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:233:43 [INFO] [stdout] | [INFO] [stdout] 233 | .all(|(bp, sp)| bp.verify(&serialized_receipted_event, sp).unwrap_or(false)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `serialized_receipted_event` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:282:71 [INFO] [stdout] | [INFO] [stdout] 282 | ... .log_receipt_with_new_transaction(&ooo) [INFO] [stdout] | ^^^^ help: change this to: `ooo` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:328:61 [INFO] [stdout] | [INFO] [stdout] 328 | ... .log_event_with_new_transaction(&signed_event) [INFO] [stdout] | ^^^^^^^^^^^^^ help: change this to: `signed_event` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:335:50 [INFO] [stdout] | [INFO] [stdout] 335 | self.accept_receipts_for(&signed_event)?; [INFO] [stdout] | ^^^^^^^^^^^^^ help: change this to: `signed_event` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:342:37 [INFO] [stdout] | [INFO] [stdout] 342 | ... .insert(&signed_event) [INFO] [stdout] | ^^^^^^^^^^^^^ help: change this to: `signed_event` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:374:42 [INFO] [stdout] | [INFO] [stdout] 374 | pub fn test_not_fully_witnessed() -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:519:58 [INFO] [stdout] | [INFO] [stdout] 519 | pub fn test_escrow_receipt_with_wrong_signature() -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:662:43 [INFO] [stdout] | [INFO] [stdout] 662 | pub fn test_out_of_order_receipt() -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/escrow/partially_witnessed_escrow.rs:766:58 [INFO] [stdout] | [INFO] [stdout] 766 | pub fn test_out_of_order_receipt_with_wrong_sig() -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/processor/escrow/mod.rs:44:6 [INFO] [stdout] | [INFO] [stdout] 44 | ) -> ( [INFO] [stdout] | ______^ [INFO] [stdout] 45 | | NotificationBus, [INFO] [stdout] 46 | | ( [INFO] [stdout] 47 | | Arc>, [INFO] [stdout] ... | [INFO] [stdout] 52 | | ), [INFO] [stdout] 53 | | ) [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/escrow_tests.rs:32:35 [INFO] [stdout] | [INFO] [stdout] 32 | fn test_out_of_order_cleanup() -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/escrow_tests.rs:138:44 [INFO] [stdout] | [INFO] [stdout] 138 | fn test_partially_sign_escrow_cleanup() -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/escrow_tests.rs:221:53 [INFO] [stdout] | [INFO] [stdout] 221 | pub fn test_partially_witnessed_escrow_cleanup() -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/event_storage.rs:72:53 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn get_kel(&self, id: &IdentifierPrefix) -> Result>, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/event_storage.rs:88:62 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn get_kel_messages(&self, id: &IdentifierPrefix) -> Result>, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/event_storage.rs:105:10 [INFO] [stdout] | [INFO] [stdout] 105 | ) -> Result>, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/event_storage.rs:122:10 [INFO] [stdout] | [INFO] [stdout] 122 | ) -> Result>, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this lifetime isn't used in the function definition [INFO] [stdout] --> src/processor/event_storage.rs:134:30 [INFO] [stdout] | [INFO] [stdout] 134 | fn collect_with_receipts<'a, I>(&self, events: I) -> Option> [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes [INFO] [stdout] = note: `#[warn(clippy::extra_unused_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `said::SelfAddressingIdentifier` [INFO] [stdout] --> src/processor/event_storage.rs:287:17 [INFO] [stdout] | [INFO] [stdout] 287 | event_digest.into(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `event_digest` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/event_storage.rs:302:10 [INFO] [stdout] | [INFO] [stdout] 302 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/event_storage.rs:337:10 [INFO] [stdout] | [INFO] [stdout] 337 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/event_storage.rs:373:10 [INFO] [stdout] | [INFO] [stdout] 373 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/event_storage.rs:393:10 [INFO] [stdout] | [INFO] [stdout] 393 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/event_storage.rs:425:10 [INFO] [stdout] | [INFO] [stdout] 425 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/event_storage.rs:451:10 [INFO] [stdout] | [INFO] [stdout] 451 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/event_storage.rs:465:10 [INFO] [stdout] | [INFO] [stdout] 465 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/notification.rs:36:58 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn notify(&self, notification: &Notification) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/notification.rs:53:77 [INFO] [stdout] | [INFO] [stdout] 53 | fn notify(&self, notification: &Notification, bus: &NotificationBus) -> Result<(), Error>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/processor_tests.rs:27:22 [INFO] [stdout] | [INFO] [stdout] 27 | fn test_process() -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/processor/processor_tests.rs:94:14 [INFO] [stdout] | [INFO] [stdout] 94 | _ => assert!(false), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant pattern matching, consider using `is_none()` [INFO] [stdout] --> src/processor/processor_tests.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 125 | assert!(matches!(ixn_from_db, None)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `ixn_from_db.is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stdout] = note: `#[warn(clippy::redundant_pattern_matching)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant pattern matching, consider using `is_none()` [INFO] [stdout] --> src/processor/processor_tests.rs:145:13 [INFO] [stdout] | [INFO] [stdout] 145 | assert!(matches!(raw_from_db, None)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `raw_from_db.is_none()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/processor_tests.rs:157:32 [INFO] [stdout] | [INFO] [stdout] 157 | fn test_process_delegated() -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/processor/processor_tests.rs:193:39 [INFO] [stdout] | [INFO] [stdout] 193 | let raw_parsed = |ev: Message| -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/processor_tests.rs:252:34 [INFO] [stdout] | [INFO] [stdout] 252 | fn test_compute_state_at_sn() -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/processor_tests.rs:300:52 [INFO] [stdout] | [INFO] [stdout] 300 | pub fn test_partial_rotation_simple_threshold() -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/processor/processor_tests.rs:447:46 [INFO] [stdout] | [INFO] [stdout] 447 | let _ = expected_signatures.contains(&sig); [INFO] [stdout] | ^^^^ help: change this to: `sig` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/processor_tests.rs:476:54 [INFO] [stdout] | [INFO] [stdout] 476 | pub fn test_partial_rotation_weighted_threshold() -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/processor_tests.rs:642:35 [INFO] [stdout] | [INFO] [stdout] 642 | pub fn test_reserve_rotation() -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/processor_tests.rs:823:37 [INFO] [stdout] | [INFO] [stdout] 823 | pub fn test_custorial_rotation() -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/validator.rs:79:10 [INFO] [stdout] | [INFO] [stdout] 79 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/validator.rs:143:10 [INFO] [stdout] | [INFO] [stdout] 143 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/validator.rs:173:10 [INFO] [stdout] | [INFO] [stdout] 173 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/processor/validator.rs:195:27 [INFO] [stdout] | [INFO] [stdout] 195 | .map(|sig| -> Result<_, _> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/validator.rs:217:10 [INFO] [stdout] | [INFO] [stdout] 217 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/processor/validator.rs:228:31 [INFO] [stdout] | [INFO] [stdout] 228 | .try_for_each(|(witness, signature)| { [INFO] [stdout] | _______________________________^ [INFO] [stdout] 229 | | (witness.verify(&serialized_event, &signature)?) [INFO] [stdout] 230 | | .then_some(()) [INFO] [stdout] 231 | | .ok_or(Error::SignatureVerificationError) [INFO] [stdout] 232 | | }) [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/validator.rs:284:10 [INFO] [stdout] | [INFO] [stdout] 284 | ) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/validator.rs:320:10 [INFO] [stdout] | [INFO] [stdout] 320 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/validator.rs:452:28 [INFO] [stdout] | [INFO] [stdout] 452 | fn test_validate_seal() -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless conversion to the same type: `said::SelfAddressingIdentifier` [INFO] [stdout] --> src/processor/validator.rs:489:52 [INFO] [stdout] | [INFO] [stdout] 489 | let seal = EventSeal::new(delegator_id, 1, delegated_event_digest.into()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `delegated_event_digest` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/mod.rs:35:50 [INFO] [stdout] | [INFO] [stdout] 35 | fn process_notice(&self, notice: &Notice) -> Result<(), Error>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/mod.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | ) -> Result<(), Error>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/mod.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | ) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/mod.rs:98:10 [INFO] [stdout] | [INFO] [stdout] 98 | ) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/processor/mod.rs:133:81 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn process_notice(&self, notice: &Notice, processing_strategy: F) -> Result<(), Error> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/signer/mod.rs:10:35 [INFO] [stdout] | [INFO] [stdout] 10 | fn sign(&self, msg: &[u8]) -> Result, Error>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/signer/mod.rs:13:29 [INFO] [stdout] | [INFO] [stdout] 13 | fn rotate(&mut self) -> Result<(), Error>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/signer/mod.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn new() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/signer/mod.rs:87:48 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn new_with_seed(seed: &SeedPrefix) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/signer/mod.rs:111:27 [INFO] [stdout] | [INFO] [stdout] 111 | fn generate_key_pair() -> Result<(PublicKey, PrivateKey), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/state/mod.rs:63:10 [INFO] [stdout] | [INFO] [stdout] 63 | ) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/state/mod.rs:202:57 [INFO] [stdout] | [INFO] [stdout] 202 | pub fn apply(self, event: &T) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/state/mod.rs:211:51 [INFO] [stdout] | [INFO] [stdout] 211 | fn apply_to(&self, state: IdentifierState) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error/mod.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | VerificationError(#[from] VerificationError), [INFO] [stdout] | -------------------------------------------- the largest variant contains at least 128 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/event/sections/key_config.rs:362:13 [INFO] [stdout] | [INFO] [stdout] 362 | / &vec![ [INFO] [stdout] 363 | | signatures[0].clone(), [INFO] [stdout] 364 | | signatures[1].clone(), [INFO] [stdout] 365 | | signatures[2].clone(), [INFO] [stdout] 366 | | ], [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] = note: `#[warn(clippy::useless_vec)]` on by default [INFO] [stdout] help: you can use a slice directly [INFO] [stdout] | [INFO] [stdout] 362 ~ &[signatures[0].clone(), [INFO] [stdout] 363 + signatures[1].clone(), [INFO] [stdout] 364 ~ signatures[2].clone()], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/event/sections/key_config.rs:374:13 [INFO] [stdout] | [INFO] [stdout] 374 | &vec![signatures[0].clone(), signatures[2].clone()], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[signatures[0].clone(), signatures[2].clone()]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/event/sections/key_config.rs:381:13 [INFO] [stdout] | [INFO] [stdout] 381 | &vec![signatures[1].clone(), signatures[2].clone()], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[signatures[1].clone(), signatures[2].clone()]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/event/sections/key_config.rs:388:13 [INFO] [stdout] | [INFO] [stdout] 388 | / &vec![ [INFO] [stdout] 389 | | signatures[0].clone(), [INFO] [stdout] 390 | | signatures[0].clone(), [INFO] [stdout] 391 | | signatures[0].clone(), [INFO] [stdout] 392 | | ], [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use a slice directly [INFO] [stdout] | [INFO] [stdout] 388 ~ &[signatures[0].clone(), [INFO] [stdout] 389 + signatures[0].clone(), [INFO] [stdout] 390 ~ signatures[0].clone()], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/event/sections/key_config.rs:481:23 [INFO] [stdout] | [INFO] [stdout] 481 | let digests = vec![ [INFO] [stdout] | _______________________^ [INFO] [stdout] 482 | | initial_digests[1].clone(), [INFO] [stdout] 483 | | initial_digests[2].clone(), [INFO] [stdout] 484 | | initial_digests[0].clone(), [INFO] [stdout] 485 | | ]; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 481 ~ let digests = [initial_digests[1].clone(), [INFO] [stdout] 482 + initial_digests[2].clone(), [INFO] [stdout] 483 ~ initial_digests[0].clone()]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/event/sections/key_config.rs:503:23 [INFO] [stdout] | [INFO] [stdout] 503 | let digests = vec![ [INFO] [stdout] | _______________________^ [INFO] [stdout] 504 | | initial_digests[0].clone(), [INFO] [stdout] 505 | | initial_digests[2].clone(), [INFO] [stdout] 506 | | initial_digests[1].clone(), [INFO] [stdout] 507 | | ]; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 503 ~ let digests = [initial_digests[0].clone(), [INFO] [stdout] 504 + initial_digests[2].clone(), [INFO] [stdout] 505 ~ initial_digests[1].clone()]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/event/sections/key_config.rs:525:23 [INFO] [stdout] | [INFO] [stdout] 525 | let digests = vec![ [INFO] [stdout] | _______________________^ [INFO] [stdout] 526 | | initial_digests[0].clone(), [INFO] [stdout] 527 | | initial_digests[2].clone(), [INFO] [stdout] 528 | | hash_function.derive("Bad digest".as_bytes()), [INFO] [stdout] 529 | | ]; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 525 ~ let digests = [initial_digests[0].clone(), [INFO] [stdout] 526 + initial_digests[2].clone(), [INFO] [stdout] 527 ~ hash_function.derive("Bad digest".as_bytes())]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/event_message/mod.rs:155:13 [INFO] [stdout] | [INFO] [stdout] 155 | &vec![pref1], [INFO] [stdout] | ^^^^^^^^^^^^ help: you can use a slice directly: `&[pref1]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/prefix/seed.rs:121:17 [INFO] [stdout] | [INFO] [stdout] 121 | let seeds = vec![ [INFO] [stdout] | _________________^ [INFO] [stdout] 122 | | "AK8F6AAiYDpXlWdj2O5F5-6wNCCNJh2A4XOlqwR_HwwH", [INFO] [stdout] 123 | | "AOs8-zNPPh0EhavdrCfCiTk9nGeO8e6VxUCzwdKXJAd0", [INFO] [stdout] 124 | | "AHMBU5PsIJN2U9m7j0SGyvs8YD8fkym2noELzxIrzfdG", [INFO] [stdout] ... | [INFO] [stdout] 129 | | "AC6vsNVCpHa6acGcxk7c-D1mBHlptPrAx8zr-bKvesSW", [INFO] [stdout] 130 | | ]; [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 121 ~ let seeds = ["AK8F6AAiYDpXlWdj2O5F5-6wNCCNJh2A4XOlqwR_HwwH", [INFO] [stdout] 122 + "AOs8-zNPPh0EhavdrCfCiTk9nGeO8e6VxUCzwdKXJAd0", [INFO] [stdout] 123 + "AHMBU5PsIJN2U9m7j0SGyvs8YD8fkym2noELzxIrzfdG", [INFO] [stdout] 124 + "AJZ7ZLd7unQ4IkMUwE69NXcvDO9rrmmRH_Xk3TPu9BpP", [INFO] [stdout] 125 + "ANfkMQ5LKPfjEdQPK2c_zWsOn4GgLWsnWvIa25EVVbtR", [INFO] [stdout] 126 + "ACrmDHtPQjnM8H9pyKA-QBNdfZ-xixTlRZTS8WXCrrMH", [INFO] [stdout] 127 + "AMRXyU3ErhBNdRSDX1zKlrbZGRp1GfCmkRIa58gF07I8", [INFO] [stdout] 128 ~ "AC6vsNVCpHa6acGcxk7c-D1mBHlptPrAx8zr-bKvesSW"]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/prefix/seed.rs:132:28 [INFO] [stdout] | [INFO] [stdout] 132 | let expected_pubkeys = vec![ [INFO] [stdout] | ____________________________^ [INFO] [stdout] 133 | | "SuhyBcPZEZLK-fcw5tzHn2N46wRCG_ZOoeKtWTOunRA=", [INFO] [stdout] 134 | | "VcuJOOJF1IE8svqEtrSuyQjGTd2HhfAkt9y2QkUtFJI=", [INFO] [stdout] 135 | | "T1iAhBWCkvChxNWsby2J0pJyxBIxbAtbLA0Ljx-Grh8=", [INFO] [stdout] ... | [INFO] [stdout] 140 | | "T1nEDepd6CSAMCE7NY_jlLdG6_mKUlKS_mW-2HJY1hg=", [INFO] [stdout] 141 | | ]; [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 132 ~ let expected_pubkeys = ["SuhyBcPZEZLK-fcw5tzHn2N46wRCG_ZOoeKtWTOunRA=", [INFO] [stdout] 133 + "VcuJOOJF1IE8svqEtrSuyQjGTd2HhfAkt9y2QkUtFJI=", [INFO] [stdout] 134 + "T1iAhBWCkvChxNWsby2J0pJyxBIxbAtbLA0Ljx-Grh8=", [INFO] [stdout] 135 + "KPE5eeJRzkRTMOoRGVd2m18o8fLqM2j9kaxLhV3x8AQ=", [INFO] [stdout] 136 + "1kcBE7h0ImWW6_Sp7MQxGYSshZZz6XM7OiUE5DXm0dU=", [INFO] [stdout] 137 + "4JDgo3WNSUpt-NG14Ni31_GCmrU0r38yo7kgDuyGkQM=", [INFO] [stdout] 138 + "VjWcaNX2gCkHOjk6rkmqPBCxkRCqwIJ-3OjdYmMwxf4=", [INFO] [stdout] 139 ~ "T1nEDepd6CSAMCE7NY_jlLdG6_mKUlKS_mW-2HJY1hg="]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/prefix/seed.rs:142:33 [INFO] [stdout] | [INFO] [stdout] 142 | let expected_basic_prefix = vec![ [INFO] [stdout] | _________________________________^ [INFO] [stdout] 143 | | "DErocgXD2RGSyvn3MObcx59jeOsEQhv2TqHirVkzrp0Q", [INFO] [stdout] 144 | | "DFXLiTjiRdSBPLL6hLa0rskIxk3dh4XwJLfctkJFLRSS", [INFO] [stdout] 145 | | "DE9YgIQVgpLwocTVrG8tidKScsQSMWwLWywNC48fhq4f", [INFO] [stdout] ... | [INFO] [stdout] 150 | | "DE9ZxA3qXegkgDAhOzWP45S3Ruv5ilJSkv5lvthyWNYY", [INFO] [stdout] 151 | | ]; [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] help: you can use an array directly [INFO] [stdout] | [INFO] [stdout] 142 ~ let expected_basic_prefix = ["DErocgXD2RGSyvn3MObcx59jeOsEQhv2TqHirVkzrp0Q", [INFO] [stdout] 143 + "DFXLiTjiRdSBPLL6hLa0rskIxk3dh4XwJLfctkJFLRSS", [INFO] [stdout] 144 + "DE9YgIQVgpLwocTVrG8tidKScsQSMWwLWywNC48fhq4f", [INFO] [stdout] 145 + "DCjxOXniUc5EUzDqERlXdptfKPHy6jNo_ZGsS4Vd8fAE", [INFO] [stdout] 146 + "DNZHARO4dCJlluv0qezEMRmErIWWc-lzOzolBOQ15tHV", [INFO] [stdout] 147 + "DOCQ4KN1jUlKbfjRteDYt9fxgpq1NK9_MqO5IA7shpED", [INFO] [stdout] 148 + "DFY1nGjV9oApBzo5Oq5JqjwQsZEQqsCCftzo3WJjMMX-", [INFO] [stdout] 149 ~ "DE9ZxA3qXegkgDAhOzWP45S3Ruv5ilJSkv5lvthyWNYY"]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 04s [INFO] running `Command { std: "docker" "inspect" "21f0390381153490125a5f2bd4397295f2481f156a15aabe28a96f169f125329", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "21f0390381153490125a5f2bd4397295f2481f156a15aabe28a96f169f125329", kill_on_drop: false }` [INFO] [stdout] 21f0390381153490125a5f2bd4397295f2481f156a15aabe28a96f169f125329