[INFO] cloning repository https://github.com/code-monad/lambda-next [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/code-monad/lambda-next" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcode-monad%2Flambda-next", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcode-monad%2Flambda-next'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6bc7aa452ced142a63c501b203fd2e0389f1592a [INFO] linting code-monad/lambda-next against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcode-monad%2Flambda-next" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/code-monad/lambda-next [INFO] finished tweaking git repo https://github.com/code-monad/lambda-next [INFO] tweaked toml for git repo https://github.com/code-monad/lambda-next written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/code-monad/lambda-next 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 git repo https://github.com/code-monad/lambda-next 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] Downloading crates ... [INFO] [stderr] Downloaded numext-fixed-uint v0.1.6 [INFO] [stderr] Downloaded spore-types v0.3.0 [INFO] [stderr] Downloaded molecule v0.8.0 [INFO] [stderr] Downloaded ckb-types v0.118.0 [INFO] [stderr] Downloaded ckb-pow v0.118.0 [INFO] [stderr] Downloaded windows-result v0.3.1 [INFO] [stderr] Downloaded uuid v1.15.1 [INFO] [stderr] Downloaded ckb-mock-tx-types v0.118.0 [INFO] [stderr] Downloaded bech32 v0.8.1 [INFO] [stderr] Downloaded windows-interface v0.59.0 [INFO] [stderr] Downloaded ckb-jsonrpc-types v0.118.0 [INFO] [stderr] Downloaded clap_derive v4.5.28 [INFO] [stderr] Downloaded clap v4.5.31 [INFO] [stderr] Downloaded ckb-vm v0.24.12 [INFO] [stderr] Downloaded sparse-merkle-tree v0.6.1 [INFO] [stderr] Downloaded ckb-gen-types v0.118.0 [INFO] [stderr] Downloaded yaml-rust2 v0.10.0 [INFO] [stderr] Downloaded goblin v0.2.3 [INFO] [stderr] Downloaded zerocopy v0.8.21 [INFO] [stderr] Downloaded clap_builder v4.5.31 [INFO] [stderr] Downloaded goblin v0.4.0 [INFO] [stderr] Downloaded windows-core v0.60.1 [INFO] [stderr] Downloaded cacache v12.0.0 [INFO] [stderr] Downloaded ckb_schemars v0.8.22 [INFO] [stderr] Downloaded blake2b-ref v0.3.1 [INFO] [stderr] Downloaded numext-constructor v0.1.6 [INFO] [stderr] Downloaded windows-future v0.1.1 [INFO] [stderr] Downloaded reflink-copy v0.1.24 [INFO] [stderr] Downloaded ssri v9.2.0 [INFO] [stderr] Downloaded ckb-traits v0.118.0 [INFO] [stderr] Downloaded ckb-rational v0.118.0 [INFO] [stderr] Downloaded ckb-resource v0.118.0 [INFO] [stderr] Downloaded ckb_schemars_derive v0.8.22 [INFO] [stderr] Downloaded ckb-occupied-capacity-core v0.118.0 [INFO] [stderr] Downloaded ckb-occupied-capacity-macros v0.118.0 [INFO] [stderr] Downloaded ckb-occupied-capacity v0.118.0 [INFO] [stderr] Downloaded merkle-cbt v0.3.2 [INFO] [stderr] Downloaded numext-fixed-uint-core v0.1.6 [INFO] [stderr] Downloaded zerocopy-derive v0.8.21 [INFO] [stderr] Downloaded windows-collections v0.1.1 [INFO] [stderr] Downloaded windows-implement v0.59.0 [INFO] [stderr] Downloaded windows-numerics v0.1.1 [INFO] [stderr] Downloaded ckb-chain-spec v0.118.0 [INFO] [stderr] Downloaded ckb-channel v0.118.0 [INFO] [stderr] Downloaded ckb-hash v0.118.0 [INFO] [stderr] Downloaded ckb-merkle-mountain-range v0.5.2 [INFO] [stderr] Downloaded heapsize v0.4.2 [INFO] [stderr] Downloaded ckb-crypto v0.118.0 [INFO] [stderr] Downloaded ckb-dao-utils v0.118.0 [INFO] [stderr] Downloaded eaglesong v0.1.0 [INFO] [stderr] Downloaded ckb-system-scripts v0.5.4 [INFO] [stderr] Downloaded includedir v0.6.0 [INFO] [stderr] Downloaded enum-repr-derive v0.2.0 [INFO] [stderr] Downloaded ckb-error v0.118.0 [INFO] [stderr] Downloaded blake2b-rs v0.2.0 [INFO] [stderr] Downloaded numext-fixed-uint-hack v0.1.6 [INFO] [stderr] Downloaded config v0.15.9 [INFO] [stderr] Downloaded ckb-logger v0.118.0 [INFO] [stderr] Downloaded ckb-vm-definitions v0.24.12 [INFO] [stderr] Downloaded derive-getters v0.2.1 [INFO] [stderr] Downloaded ckb-script v0.118.0 [INFO] [stderr] Downloaded ckb-constant v0.118.0 [INFO] [stderr] Downloaded ckb-fixed-hash-core v0.118.0 [INFO] [stderr] Downloaded ckb-fixed-hash-macros v0.118.0 [INFO] [stderr] Downloaded ckb-fixed-hash v0.118.0 [INFO] [stderr] Downloaded faster-hex v0.6.1 [INFO] [stderr] Downloaded ckb-sdk v3.4.1 [INFO] [stderr] Downloaded golomb-coded-set v0.2.1 [INFO] [stderr] Downloaded includedir_codegen v0.6.0 [INFO] [stderr] Downloaded windows v0.60.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 9ad222e76bf4b5faae39857365fa6f8cc2407e50a2cdca1c9c4a2c5e3b283188 [INFO] running `Command { std: "docker" "start" "-a" "9ad222e76bf4b5faae39857365fa6f8cc2407e50a2cdca1c9c4a2c5e3b283188", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9ad222e76bf4b5faae39857365fa6f8cc2407e50a2cdca1c9c4a2c5e3b283188", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9ad222e76bf4b5faae39857365fa6f8cc2407e50a2cdca1c9c4a2c5e3b283188", kill_on_drop: false }` [INFO] [stdout] 9ad222e76bf4b5faae39857365fa6f8cc2407e50a2cdca1c9c4a2c5e3b283188 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 4e4128e827ad489d6054600ec37fb515d24a004f6351c820092be7e261575b37 [INFO] running `Command { std: "docker" "start" "-a" "4e4128e827ad489d6054600ec37fb515d24a004f6351c820092be7e261575b37", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.170 [INFO] [stderr] Compiling serde v1.0.218 [INFO] [stderr] Checking once_cell v1.20.3 [INFO] [stderr] Compiling cc v1.2.16 [INFO] [stderr] Compiling quote v1.0.39 [INFO] [stderr] Checking smallvec v1.14.0 [INFO] [stderr] Checking log v0.4.26 [INFO] [stderr] Compiling faster-hex v0.6.1 [INFO] [stderr] Compiling heapsize v0.4.2 [INFO] [stderr] Compiling ckb_schemars v0.8.22 [INFO] [stderr] Compiling dyn-clone v1.0.19 [INFO] [stderr] Compiling anyhow v1.0.97 [INFO] [stderr] Checking hashbrown v0.15.2 [INFO] [stderr] Compiling openssl v0.10.71 [INFO] [stderr] Compiling syn v2.0.99 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Compiling phf_shared v0.8.0 [INFO] [stderr] Checking siphasher v0.3.11 [INFO] [stderr] Compiling cty v0.2.2 [INFO] [stderr] Compiling adler2 v2.0.0 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling miniz_oxide v0.8.5 [INFO] [stderr] Compiling writeable v0.5.5 [INFO] [stderr] Compiling litemap v0.7.5 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling getrandom v0.3.1 [INFO] [stderr] Checking blake2b-ref v0.3.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking crossbeam-channel v0.5.14 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.0 [INFO] [stderr] Checking indexmap v2.7.1 [INFO] [stderr] Compiling flate2 v1.1.0 [INFO] [stderr] Checking golomb-coded-set v0.2.1 [INFO] [stderr] Checking ckb-merkle-mountain-range v0.5.2 [INFO] [stderr] Checking merkle-cbt v0.3.2 [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Compiling icu_properties_data v1.5.0 [INFO] [stderr] Checking ckb-constant v0.118.0 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking socket2 v0.5.8 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling icu_normalizer_data v1.5.0 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling utf16_iter v1.0.5 [INFO] [stderr] Compiling write16 v1.0.0 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling crunchy v0.2.3 [INFO] [stderr] Checking ckb-channel v0.118.0 [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling rand_pcg v0.2.1 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Compiling phf v0.8.0 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling includedir v0.6.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling zerocopy v0.8.21 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling blake2b-rs v0.2.0 [INFO] [stderr] Compiling openssl-sys v0.9.106 [INFO] [stderr] Compiling secp256k1-sys v0.10.1 [INFO] [stderr] Compiling crc v3.2.1 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking sha-1 v0.10.1 [INFO] [stderr] Compiling linux-raw-sys v0.4.15 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Checking xxhash-rust v0.8.15 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Checking const-random v0.1.18 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling ckb-hash v0.118.0 [INFO] [stderr] Compiling ckb-vm v0.24.12 [INFO] [stderr] Checking memmap2 v0.5.10 [INFO] [stderr] Checking eaglesong v0.1.0 [INFO] [stderr] Compiling whoami v1.5.2 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking dlv-list v0.5.2 [INFO] [stderr] Checking ahash v0.7.8 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling sparse-merkle-tree v0.6.1 [INFO] [stderr] Checking ckb-logger v0.118.0 [INFO] [stderr] Checking ckb-vm-definitions v0.24.12 [INFO] [stderr] Checking winnow v0.7.3 [INFO] [stderr] Compiling ckb-script v0.118.0 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Compiling serde_derive_internals v0.26.0 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking hashlink v0.10.0 [INFO] [stderr] Checking trim-in-place v0.1.7 [INFO] [stderr] Checking data-encoding v2.8.0 [INFO] [stderr] Checking sqlformat v0.2.6 [INFO] [stderr] Checking yaml-rust2 v0.10.0 [INFO] [stderr] Checking lru v0.7.8 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Checking bech32 v0.8.1 [INFO] [stderr] Compiling rustversion v1.0.20 [INFO] [stderr] Checking clap_builder v4.5.31 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling ckb_schemars_derive v0.8.22 [INFO] [stderr] Compiling numext-constructor v0.1.6 [INFO] [stderr] Compiling scroll_derive v0.10.5 [INFO] [stderr] Compiling enum-repr-derive v0.2.0 [INFO] [stderr] Compiling derive-getters v0.2.1 [INFO] [stderr] Compiling serde_derive v1.0.218 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling derive_more v0.99.19 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Checking yoke v0.7.5 [INFO] [stderr] Compiling miette-derive v5.10.0 [INFO] [stderr] Checking scroll v0.10.2 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Checking secp256k1 v0.29.1 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking ahash v0.8.11 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Checking miette v5.10.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling pest v2.7.15 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Compiling phf_generator v0.8.0 [INFO] [stderr] Compiling phf_codegen v0.8.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling includedir_codegen v0.6.0 [INFO] [stderr] Checking rand v0.9.0 [INFO] [stderr] Checking goblin v0.2.3 [INFO] [stderr] Checking goblin v0.4.0 [INFO] [stderr] Compiling tempfile v3.17.1 [INFO] [stderr] Compiling ckb-system-scripts v0.5.4 [INFO] [stderr] Compiling async-trait v0.1.87 [INFO] [stderr] Checking ordered-multimap v0.7.3 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling pest_meta v2.7.15 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking rust-ini v0.21.1 [INFO] [stderr] Checking dashmap v5.5.3 [INFO] [stderr] Checking uuid v1.15.1 [INFO] [stderr] Compiling clap_derive v4.5.28 [INFO] [stderr] Compiling pest_generator v2.7.15 [INFO] [stderr] Compiling pest_derive v2.7.15 [INFO] [stderr] Checking icu_normalizer v1.5.0 [INFO] [stderr] Checking clap v4.5.31 [INFO] [stderr] Checking idna_adapter v1.2.0 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking tracing-subscriber v0.3.19 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling numext-fixed-uint-core v0.1.6 [INFO] [stderr] Compiling ckb-occupied-capacity-core v0.118.0 [INFO] [stderr] Compiling bytes v1.10.0 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Checking ssri v9.2.0 [INFO] [stderr] Checking toml_datetime v0.6.8 [INFO] [stderr] Checking toml v0.5.11 [INFO] [stderr] Compiling ckb-occupied-capacity-macros v0.118.0 [INFO] [stderr] Checking serde_spanned v0.6.8 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking json5 v0.4.1 [INFO] [stderr] Checking tokio v1.43.0 [INFO] [stderr] Checking molecule v0.8.0 [INFO] [stderr] Checking ckb-occupied-capacity v0.118.0 [INFO] [stderr] Checking ckb-error v0.118.0 [INFO] [stderr] Checking http v1.2.0 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking toml_edit v0.22.24 [INFO] [stderr] Checking molecule v0.7.5 [INFO] [stderr] Checking ron v0.8.1 [INFO] [stderr] Checking spore-types v0.3.0 [INFO] [stderr] Checking serde_yaml v0.9.34+deprecated [INFO] [stderr] Checking jsonrpc-core v18.0.0 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking serde_path_to_error v0.1.17 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Compiling ckb-fixed-hash-core v0.118.0 [INFO] [stderr] Checking http-body-util v0.1.2 [INFO] [stderr] Checking toml v0.8.20 [INFO] [stderr] Checking axum-core v0.4.5 [INFO] [stderr] Checking tower-http v0.5.2 [INFO] [stderr] Compiling ckb-fixed-hash-macros v0.118.0 [INFO] [stderr] Compiling ckb-fixed-hash v0.118.0 [INFO] [stderr] Checking config v0.15.9 [INFO] [stderr] Checking reflink-copy v0.1.24 [INFO] [stderr] Checking ckb-crypto v0.118.0 [INFO] [stderr] Checking tungstenite v0.26.2 [INFO] [stderr] Checking tokio-util v0.7.13 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking tokio-tungstenite v0.26.2 [INFO] [stderr] Checking cacache v12.0.0 [INFO] [stderr] Checking sqlx-core v0.7.4 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking h2 v0.4.8 [INFO] [stderr] Compiling numext-fixed-uint-hack v0.1.6 [INFO] [stderr] Checking numext-fixed-uint v0.1.6 [INFO] [stderr] Compiling ckb-rational v0.118.0 [INFO] [stderr] Compiling ckb-gen-types v0.118.0 [INFO] [stderr] Checking sqlx-postgres v0.7.4 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking hyper v1.6.0 [INFO] [stderr] Checking hyper-util v0.1.10 [INFO] [stderr] Checking axum v0.7.9 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking ckb-types v0.118.0 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Checking ckb-traits v0.118.0 [INFO] [stderr] Checking ckb-jsonrpc-types v0.118.0 [INFO] [stderr] Checking ckb-dao-utils v0.118.0 [INFO] [stderr] Checking ckb-pow v0.118.0 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Checking sqlx v0.7.4 [INFO] [stderr] Compiling ckb-resource v0.118.0 [INFO] [stderr] Checking ckb-chain-spec v0.118.0 [INFO] [stderr] Checking ckb-mock-tx-types v0.118.0 [INFO] [stderr] Checking ckb-sdk v3.4.1 [INFO] [stderr] Checking lambda-next v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ckb_jsonrpc_types::Script` [INFO] [stdout] --> src/spore.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use ckb_jsonrpc_types::Script; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `packed` [INFO] [stdout] --> src/spore.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | packed, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ServerDecodeResult` [INFO] [stdout] --> src/spore.rs:29:30 [INFO] [stdout] | [INFO] [stdout] 29 | use crate::db::{DbSporeData, ServerDecodeResult}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ckb_jsonrpc_types::Script` [INFO] [stdout] --> src/spore.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use ckb_jsonrpc_types::Script; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `packed` [INFO] [stdout] --> src/spore.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | packed, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ServerDecodeResult` [INFO] [stdout] --> src/spore.rs:29:30 [INFO] [stdout] | [INFO] [stdout] 29 | use crate::db::{DbSporeData, ServerDecodeResult}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/query.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/query.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error`, `trace`, and `warn` [INFO] [stdout] --> src/query.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use tracing::{debug, error, info, instrument, trace, warn}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/query.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/query.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error`, `trace`, and `warn` [INFO] [stdout] --> src/query.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use tracing::{debug, error, info, instrument, trace, warn}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `content_filter` [INFO] [stdout] --> src/db.rs:427:37 [INFO] [stdout] | [INFO] [stdout] 427 | let query_str = if let Some(content_filter) = content_type_filter { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_content_filter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `network` [INFO] [stdout] --> src/db.rs:428:25 [INFO] [stdout] | [INFO] [stdout] 428 | if let Some(network) = network_type { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_network` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `network` [INFO] [stdout] --> src/db.rs:454:25 [INFO] [stdout] | [INFO] [stdout] 454 | if let Some(network) = network_type { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_network` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/spore.rs:613:14 [INFO] [stdout] | [INFO] [stdout] 613 | for (index, cell) in cells.iter().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `content_filter` [INFO] [stdout] --> src/db.rs:427:37 [INFO] [stdout] | [INFO] [stdout] 427 | let query_str = if let Some(content_filter) = content_type_filter { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_content_filter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `network` [INFO] [stdout] --> src/db.rs:428:25 [INFO] [stdout] | [INFO] [stdout] 428 | if let Some(network) = network_type { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_network` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `network` [INFO] [stdout] --> src/db.rs:454:25 [INFO] [stdout] | [INFO] [stdout] 454 | if let Some(network) = network_type { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_network` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/spore.rs:613:14 [INFO] [stdout] | [INFO] [stdout] 613 | for (index, cell) in cells.iter().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `JsonRpcBatchRequest` is never constructed [INFO] [stdout] --> src/dob_decoder.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | struct JsonRpcBatchRequest(Vec); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `jsonrpc` is never read [INFO] [stdout] --> src/dob_decoder.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 42 | struct JsonRpcResponse { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 43 | jsonrpc: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JsonRpcResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `code` and `data` are never read [INFO] [stdout] --> src/dob_decoder.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 51 | struct JsonRpcError { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 52 | code: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 53 | message: String, [INFO] [stdout] 54 | data: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JsonRpcError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/db.rs:179:18 [INFO] [stdout] | [INFO] [stdout] 179 | ...w: Option<(String, String, String, String, String, i32, String, String, Option, Option, Option)> = [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: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/db.rs:219:19 [INFO] [stdout] | [INFO] [stdout] 219 | ...s: Vec<(String, String, String, String, String, i32, String, String, Option, Option, Option)> = [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: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/db.rs:263:19 [INFO] [stdout] | [INFO] [stdout] 263 | ...s: Vec<(String, String, String, String, String, i32, String, String, Option, Option, Option)> = [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: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/db.rs:387:19 [INFO] [stdout] | [INFO] [stdout] 387 | ...s: Vec<(String, String, String, String, String, i32, String, String, Option, Option, Option)> = [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: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/db.rs:500:19 [INFO] [stdout] | [INFO] [stdout] 500 | ...s: Vec<(String, String, String, String, String, i32, String, String, Option, Option, Option)> = [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: this function has too many arguments (8/7) [INFO] [stdout] --> src/db.rs:671:5 [INFO] [stdout] | [INFO] [stdout] 671 | / pub async fn get_spores_by_owner_with_clusters( [INFO] [stdout] 672 | | &self, [INFO] [stdout] 673 | | owner: &str, [INFO] [stdout] 674 | | limit: i64, [INFO] [stdout] ... | [INFO] [stdout] 679 | | cluster_ids: &[String] [INFO] [stdout] 680 | | ) -> Result, sqlx::Error> { [INFO] [stdout] | |______________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] = note: `#[warn(clippy::too_many_arguments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant pattern matching, consider using `is_some()` [INFO] [stdout] --> src/db.rs:709:16 [INFO] [stdout] | [INFO] [stdout] 709 | if let Some(_) = content_type_filter { [INFO] [stdout] | -------^^^^^^^---------------------- help: try: `if content_type_filter.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: redundant pattern matching, consider using `is_some()` [INFO] [stdout] --> src/db.rs:714:16 [INFO] [stdout] | [INFO] [stdout] 714 | if let Some(_) = network_type { [INFO] [stdout] | -------^^^^^^^--------------- help: try: `if network_type.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] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/db.rs:751:19 [INFO] [stdout] | [INFO] [stdout] 751 | ...s: Vec<(String, String, String, String, String, i32, String, String, Option, Option, Option)> = [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: redundant pattern matching, consider using `is_some()` [INFO] [stdout] --> src/db.rs:792:32 [INFO] [stdout] | [INFO] [stdout] 792 | let query_str = if let Some(_) = network_type { [INFO] [stdout] | -------^^^^^^^--------------- help: try: `if network_type.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] [INFO] [stdout] [INFO] [stdout] warning: you should consider adding a `Default` implementation for `SporeCache` [INFO] [stdout] --> src/spore.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | / pub fn new() -> Self { [INFO] [stdout] 55 | | Self { [INFO] [stdout] 56 | | cache: HashMap::new(), [INFO] [stdout] 57 | | } [INFO] [stdout] 58 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default [INFO] [stdout] = note: `#[warn(clippy::new_without_default)]` on by default [INFO] [stdout] help: try adding this [INFO] [stdout] | [INFO] [stdout] 52 + impl Default for SporeCache { [INFO] [stdout] 53 + fn default() -> Self { [INFO] [stdout] 54 + Self::new() [INFO] [stdout] 55 + } [INFO] [stdout] 56 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SporeCache` has a public `len` method, but no `is_empty` method [INFO] [stdout] --> src/spore.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty [INFO] [stdout] = note: `#[warn(clippy::len_without_is_empty)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `JsonRpcBatchRequest` is never constructed [INFO] [stdout] --> src/dob_decoder.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | struct JsonRpcBatchRequest(Vec); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `jsonrpc` is never read [INFO] [stdout] --> src/dob_decoder.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 42 | struct JsonRpcResponse { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 43 | jsonrpc: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JsonRpcResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `code` and `data` are never read [INFO] [stdout] --> src/dob_decoder.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 51 | struct JsonRpcError { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 52 | code: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 53 | message: String, [INFO] [stdout] 54 | data: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JsonRpcError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `filter.type_ids_file` after checking its variant with `is_some` [INFO] [stdout] --> src/spore.rs:295:25 [INFO] [stdout] | [INFO] [stdout] 294 | if filter.filter_by_type_ids && filter.type_ids_file.is_some() { [INFO] [stdout] | ------------------------------ the check is happening here [INFO] [stdout] 295 | let file_path = filter.type_ids_file.as_ref().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] = note: `#[warn(clippy::unnecessary_unwrap)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/db.rs:179:18 [INFO] [stdout] | [INFO] [stdout] 179 | ...w: Option<(String, String, String, String, String, i32, String, String, Option, Option, Option)> = [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: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/db.rs:219:19 [INFO] [stdout] | [INFO] [stdout] 219 | ...s: Vec<(String, String, String, String, String, i32, String, String, Option, Option, Option)> = [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: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/db.rs:263:19 [INFO] [stdout] | [INFO] [stdout] 263 | ...s: Vec<(String, String, String, String, String, i32, String, String, Option, Option, Option)> = [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: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/db.rs:387:19 [INFO] [stdout] | [INFO] [stdout] 387 | ...s: Vec<(String, String, String, String, String, i32, String, String, Option, Option, Option)> = [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: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/db.rs:500:19 [INFO] [stdout] | [INFO] [stdout] 500 | ...s: Vec<(String, String, String, String, String, i32, String, String, Option, Option, Option)> = [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: this function has too many arguments (8/7) [INFO] [stdout] --> src/db.rs:671:5 [INFO] [stdout] | [INFO] [stdout] 671 | / pub async fn get_spores_by_owner_with_clusters( [INFO] [stdout] 672 | | &self, [INFO] [stdout] 673 | | owner: &str, [INFO] [stdout] 674 | | limit: i64, [INFO] [stdout] ... | [INFO] [stdout] 679 | | cluster_ids: &[String] [INFO] [stdout] 680 | | ) -> Result, sqlx::Error> { [INFO] [stdout] | |______________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] = note: `#[warn(clippy::too_many_arguments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant pattern matching, consider using `is_some()` [INFO] [stdout] --> src/db.rs:709:16 [INFO] [stdout] | [INFO] [stdout] 709 | if let Some(_) = content_type_filter { [INFO] [stdout] | -------^^^^^^^---------------------- help: try: `if content_type_filter.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: redundant pattern matching, consider using `is_some()` [INFO] [stdout] --> src/db.rs:714:16 [INFO] [stdout] | [INFO] [stdout] 714 | if let Some(_) = network_type { [INFO] [stdout] | -------^^^^^^^--------------- help: try: `if network_type.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] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/db.rs:751:19 [INFO] [stdout] | [INFO] [stdout] 751 | ...s: Vec<(String, String, String, String, String, i32, String, String, Option, Option, Option)> = [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: redundant pattern matching, consider using `is_some()` [INFO] [stdout] --> src/db.rs:792:32 [INFO] [stdout] | [INFO] [stdout] 792 | let query_str = if let Some(_) = network_type { [INFO] [stdout] | -------^^^^^^^--------------- help: try: `if network_type.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] [INFO] [stdout] [INFO] [stdout] warning: you should consider adding a `Default` implementation for `SporeCache` [INFO] [stdout] --> src/spore.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | / pub fn new() -> Self { [INFO] [stdout] 55 | | Self { [INFO] [stdout] 56 | | cache: HashMap::new(), [INFO] [stdout] 57 | | } [INFO] [stdout] 58 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default [INFO] [stdout] = note: `#[warn(clippy::new_without_default)]` on by default [INFO] [stdout] help: try adding this [INFO] [stdout] | [INFO] [stdout] 52 + impl Default for SporeCache { [INFO] [stdout] 53 + fn default() -> Self { [INFO] [stdout] 54 + Self::new() [INFO] [stdout] 55 + } [INFO] [stdout] 56 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SporeCache` has a public `len` method, but no `is_empty` method [INFO] [stdout] --> src/spore.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty [INFO] [stdout] = note: `#[warn(clippy::len_without_is_empty)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `filter.type_ids_file` after checking its variant with `is_some` [INFO] [stdout] --> src/spore.rs:295:25 [INFO] [stdout] | [INFO] [stdout] 294 | if filter.filter_by_type_ids && filter.type_ids_file.is_some() { [INFO] [stdout] | ------------------------------ the check is happening here [INFO] [stdout] 295 | let file_path = filter.type_ids_file.as_ref().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] = note: `#[warn(clippy::unnecessary_unwrap)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: stripping a prefix manually [INFO] [stdout] --> src/spore.rs:516:45 [INFO] [stdout] | [INFO] [stdout] 516 | u32::from_str_radix(&index_str[2..], 16).ok() [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the prefix was tested here [INFO] [stdout] --> src/spore.rs:515:21 [INFO] [stdout] | [INFO] [stdout] 515 | if index_str.starts_with("0x") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_strip [INFO] [stdout] = note: `#[warn(clippy::manual_strip)]` on by default [INFO] [stdout] help: try using the `strip_prefix` method [INFO] [stdout] | [INFO] [stdout] 515 ~ if let Some() = index_str.strip_prefix("0x") { [INFO] [stdout] 516 ~ u32::from_str_radix(, 16).ok() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: stripping a prefix manually [INFO] [stdout] --> src/spore.rs:516:45 [INFO] [stdout] | [INFO] [stdout] 516 | u32::from_str_radix(&index_str[2..], 16).ok() [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the prefix was tested here [INFO] [stdout] --> src/spore.rs:515:21 [INFO] [stdout] | [INFO] [stdout] 515 | if index_str.starts_with("0x") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_strip [INFO] [stdout] = note: `#[warn(clippy::manual_strip)]` on by default [INFO] [stdout] help: try using the `strip_prefix` method [INFO] [stdout] | [INFO] [stdout] 515 ~ if let Some() = index_str.strip_prefix("0x") { [INFO] [stdout] 516 ~ u32::from_str_radix(, 16).ok() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `config.dob_decoder` after checking its variant with `is_some` [INFO] [stdout] --> src/spore.rs:643:30 [INFO] [stdout] | [INFO] [stdout] 642 | if !dob_spores.is_empty() && config.dob_decoder.is_some() { [INFO] [stdout] | ---------------------------- the check is happening here [INFO] [stdout] 643 | let decoder_config = config.dob_decoder.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `config.dob_decoder` after checking its variant with `is_some` [INFO] [stdout] --> src/spore.rs:643:30 [INFO] [stdout] | [INFO] [stdout] 642 | if !dob_spores.is_empty() && config.dob_decoder.is_some() { [INFO] [stdout] | ---------------------------- the check is happening here [INFO] [stdout] 643 | let decoder_config = config.dob_decoder.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `map_or` can be simplified [INFO] [stdout] --> src/spore.rs:603:25 [INFO] [stdout] | [INFO] [stdout] 603 | let skip_decoding = config.spore_filters.iter().find(|f| f.enabled).map_or(false, |f| f.skip_decoding); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or [INFO] [stdout] = note: `#[warn(clippy::unnecessary_map_or)]` on by default [INFO] [stdout] help: use `is_some_and` instead [INFO] [stdout] | [INFO] [stdout] 603 - let skip_decoding = config.spore_filters.iter().find(|f| f.enabled).map_or(false, |f| f.skip_decoding); [INFO] [stdout] 603 + let skip_decoding = config.spore_filters.iter().find(|f| f.enabled).is_some_and(|f| f.skip_decoding); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `map_or` can be simplified [INFO] [stdout] --> src/spore.rs:603:25 [INFO] [stdout] | [INFO] [stdout] 603 | let skip_decoding = config.spore_filters.iter().find(|f| f.enabled).map_or(false, |f| f.skip_decoding); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or [INFO] [stdout] = note: `#[warn(clippy::unnecessary_map_or)]` on by default [INFO] [stdout] help: use `is_some_and` instead [INFO] [stdout] | [INFO] [stdout] 603 - let skip_decoding = config.spore_filters.iter().find(|f| f.enabled).map_or(false, |f| f.skip_decoding); [INFO] [stdout] 603 + let skip_decoding = config.spore_filters.iter().find(|f| f.enabled).is_some_and(|f| f.skip_decoding); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if let` can be collapsed into the outer `if let` [INFO] [stdout] --> src/spore.rs:716:13 [INFO] [stdout] | [INFO] [stdout] 716 | / if let Ok(server_result) = dob_result { [INFO] [stdout] 717 | | if let Some(mut spore_data) = cell.to_spore_data() { [INFO] [stdout] ... | [INFO] [stdout] 728 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] help: the outer pattern can be modified to include the inner pattern [INFO] [stdout] --> src/spore.rs:715:21 [INFO] [stdout] | [INFO] [stdout] 715 | if let Some(dob_result) = dob_results.get(type_id) { [INFO] [stdout] | ^^^^^^^^^^ replace this binding [INFO] [stdout] 716 | if let Ok(server_result) = dob_result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ with this pattern [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if let` can be collapsed into the outer `if let` [INFO] [stdout] --> src/spore.rs:716:13 [INFO] [stdout] | [INFO] [stdout] 716 | / if let Ok(server_result) = dob_result { [INFO] [stdout] 717 | | if let Some(mut spore_data) = cell.to_spore_data() { [INFO] [stdout] ... | [INFO] [stdout] 728 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] help: the outer pattern can be modified to include the inner pattern [INFO] [stdout] --> src/spore.rs:715:21 [INFO] [stdout] | [INFO] [stdout] 715 | if let Some(dob_result) = dob_results.get(type_id) { [INFO] [stdout] | ^^^^^^^^^^ replace this binding [INFO] [stdout] 716 | if let Ok(server_result) = dob_result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ with this pattern [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: stripping a prefix manually [INFO] [stdout] --> src/spore.rs:774:41 [INFO] [stdout] | [INFO] [stdout] 774 | u32::from_str_radix(&index_str[2..], 16).ok() [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the prefix was tested here [INFO] [stdout] --> src/spore.rs:773:17 [INFO] [stdout] | [INFO] [stdout] 773 | if index_str.starts_with("0x") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_strip [INFO] [stdout] help: try using the `strip_prefix` method [INFO] [stdout] | [INFO] [stdout] 773 ~ if let Some() = index_str.strip_prefix("0x") { [INFO] [stdout] 774 ~ u32::from_str_radix(, 16).ok() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: stripping a prefix manually [INFO] [stdout] --> src/spore.rs:774:41 [INFO] [stdout] | [INFO] [stdout] 774 | u32::from_str_radix(&index_str[2..], 16).ok() [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the prefix was tested here [INFO] [stdout] --> src/spore.rs:773:17 [INFO] [stdout] | [INFO] [stdout] 773 | if index_str.starts_with("0x") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_strip [INFO] [stdout] help: try using the `strip_prefix` method [INFO] [stdout] | [INFO] [stdout] 773 ~ if let Some() = index_str.strip_prefix("0x") { [INFO] [stdout] 774 ~ u32::from_str_radix(, 16).ok() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you should consider adding a `Default` implementation for `SharedState` [INFO] [stdout] --> src/utils.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | / pub fn new() -> Self { [INFO] [stdout] 54 | | Self { [INFO] [stdout] 55 | | responses: HashMap::new(), [INFO] [stdout] 56 | | } [INFO] [stdout] 57 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default [INFO] [stdout] help: try adding this [INFO] [stdout] | [INFO] [stdout] 52 + impl Default for SharedState { [INFO] [stdout] 53 + fn default() -> Self { [INFO] [stdout] 54 + Self::new() [INFO] [stdout] 55 + } [INFO] [stdout] 56 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you should consider adding a `Default` implementation for `SharedState` [INFO] [stdout] --> src/utils.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | / pub fn new() -> Self { [INFO] [stdout] 54 | | Self { [INFO] [stdout] 55 | | responses: HashMap::new(), [INFO] [stdout] 56 | | } [INFO] [stdout] 57 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default [INFO] [stdout] help: try adding this [INFO] [stdout] | [INFO] [stdout] 52 + impl Default for SharedState { [INFO] [stdout] 53 + fn default() -> Self { [INFO] [stdout] 54 + Self::new() [INFO] [stdout] 55 + } [INFO] [stdout] 56 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: direct implementation of `ToString` [INFO] [stdout] --> src/ckb.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 39 | / impl ToString for ScriptType { [INFO] [stdout] 40 | | fn to_string(&self) -> String { [INFO] [stdout] 41 | | match self { [INFO] [stdout] 42 | | ScriptType::Lock => "lock".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 46 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: prefer implementing `Display` instead [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_trait_impl [INFO] [stdout] = note: `#[warn(clippy::to_string_trait_impl)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: direct implementation of `ToString` [INFO] [stdout] --> src/ckb.rs:54:1 [INFO] [stdout] | [INFO] [stdout] 54 | / impl ToString for OutputsValidator { [INFO] [stdout] 55 | | fn to_string(&self) -> String { [INFO] [stdout] 56 | | match self { [INFO] [stdout] 57 | | OutputsValidator::Default => "default".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 61 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: prefer implementing `Display` instead [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_trait_impl [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is only used to index `uuid_bytes` [INFO] [stdout] --> src/ckb.rs:108:18 [INFO] [stdout] | [INFO] [stdout] 108 | for i in 0..8 { [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 [INFO] [stdout] | [INFO] [stdout] 108 - for i in 0..8 { [INFO] [stdout] 108 + for in uuid_bytes.iter().take(8) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: direct implementation of `ToString` [INFO] [stdout] --> src/ckb.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 39 | / impl ToString for ScriptType { [INFO] [stdout] 40 | | fn to_string(&self) -> String { [INFO] [stdout] 41 | | match self { [INFO] [stdout] 42 | | ScriptType::Lock => "lock".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 46 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: prefer implementing `Display` instead [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_trait_impl [INFO] [stdout] = note: `#[warn(clippy::to_string_trait_impl)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: direct implementation of `ToString` [INFO] [stdout] --> src/ckb.rs:54:1 [INFO] [stdout] | [INFO] [stdout] 54 | / impl ToString for OutputsValidator { [INFO] [stdout] 55 | | fn to_string(&self) -> String { [INFO] [stdout] 56 | | match self { [INFO] [stdout] 57 | | OutputsValidator::Default => "default".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 61 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: prefer implementing `Display` instead [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_trait_impl [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is only used to index `uuid_bytes` [INFO] [stdout] --> src/ckb.rs:108:18 [INFO] [stdout] | [INFO] [stdout] 108 | for i in 0..8 { [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 [INFO] [stdout] | [INFO] [stdout] 108 - for i in 0..8 { [INFO] [stdout] 108 + for in uuid_bytes.iter().take(8) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/ckb.rs:164:47 [INFO] [stdout] | [INFO] [stdout] 164 | tracing::Span::current().record("id", &id); [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_borrows_for_generic_args [INFO] [stdout] = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/ckb.rs:164:47 [INFO] [stdout] | [INFO] [stdout] 164 | tracing::Span::current().record("id", &id); [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_borrows_for_generic_args [INFO] [stdout] = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:105:43 [INFO] [stdout] | [INFO] [stdout] 105 | (id, Err(Box::new(std::io::Error::new( [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 106 | | std::io::ErrorKind::Other, [INFO] [stdout] 107 | | format!("Failed to send batch request: {}", e), [INFO] [stdout] 108 | | )) as Box)) [INFO] [stdout] | |_________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] = note: `#[warn(clippy::io_other_error)]` on by default [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 105 ~ (id, Err(Box::new(std::io::Error::other( [INFO] [stdout] 106 ~ format!("Failed to send batch request: {}", e), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:105:43 [INFO] [stdout] | [INFO] [stdout] 105 | (id, Err(Box::new(std::io::Error::new( [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 106 | | std::io::ErrorKind::Other, [INFO] [stdout] 107 | | format!("Failed to send batch request: {}", e), [INFO] [stdout] 108 | | )) as Box)) [INFO] [stdout] | |_________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] = note: `#[warn(clippy::io_other_error)]` on by default [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 105 ~ (id, Err(Box::new(std::io::Error::other( [INFO] [stdout] 106 ~ format!("Failed to send batch request: {}", e), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:138:33 [INFO] [stdout] | [INFO] [stdout] 138 | return Err(Box::new(std::io::Error::new( [INFO] [stdout] | _________________________________^ [INFO] [stdout] 139 | | std::io::ErrorKind::Other, [INFO] [stdout] 140 | | format!("HTTP error: {} - {}", status, error_text), [INFO] [stdout] 141 | | ))); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 138 ~ return Err(Box::new(std::io::Error::other( [INFO] [stdout] 139 ~ format!("HTTP error: {} - {}", status, error_text), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:138:33 [INFO] [stdout] | [INFO] [stdout] 138 | return Err(Box::new(std::io::Error::new( [INFO] [stdout] | _________________________________^ [INFO] [stdout] 139 | | std::io::ErrorKind::Other, [INFO] [stdout] 140 | | format!("HTTP error: {} - {}", status, error_text), [INFO] [stdout] 141 | | ))); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 138 ~ return Err(Box::new(std::io::Error::other( [INFO] [stdout] 139 ~ format!("HTTP error: {} - {}", status, error_text), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:153:37 [INFO] [stdout] | [INFO] [stdout] 153 | return Err(Box::new(std::io::Error::new( [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 154 | | std::io::ErrorKind::Other, [INFO] [stdout] 155 | | format!("Failed to parse JSON-RPC response: {}", e), [INFO] [stdout] 156 | | ))); [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 153 ~ return Err(Box::new(std::io::Error::other( [INFO] [stdout] 154 ~ format!("Failed to parse JSON-RPC response: {}", e), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:175:42 [INFO] [stdout] | [INFO] [stdout] 175 | ... Err(Box::new(std::io::Error::new( [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 176 | | ... std::io::ErrorKind::Other, [INFO] [stdout] 177 | | ... format!("JSON-RPC error: {}", error.message), [INFO] [stdout] 178 | | ... )) as Box), [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 175 ~ Err(Box::new(std::io::Error::other( [INFO] [stdout] 176 ~ format!("JSON-RPC error: {}", error.message), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:153:37 [INFO] [stdout] | [INFO] [stdout] 153 | return Err(Box::new(std::io::Error::new( [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 154 | | std::io::ErrorKind::Other, [INFO] [stdout] 155 | | format!("Failed to parse JSON-RPC response: {}", e), [INFO] [stdout] 156 | | ))); [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 153 ~ return Err(Box::new(std::io::Error::other( [INFO] [stdout] 154 ~ format!("Failed to parse JSON-RPC response: {}", e), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:175:42 [INFO] [stdout] | [INFO] [stdout] 175 | ... Err(Box::new(std::io::Error::new( [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 176 | | ... std::io::ErrorKind::Other, [INFO] [stdout] 177 | | ... format!("JSON-RPC error: {}", error.message), [INFO] [stdout] 178 | | ... )) as Box), [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 175 ~ Err(Box::new(std::io::Error::other( [INFO] [stdout] 176 ~ format!("JSON-RPC error: {}", error.message), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:192:50 [INFO] [stdout] | [INFO] [stdout] 192 | ... Err(Box::new(std::io::Error::new( [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 193 | | ... std::io::ErrorKind::Other, [INFO] [stdout] 194 | | ... format!("Failed to parse result: {}", e), [INFO] [stdout] 195 | | ... )) as Box), [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 192 ~ Err(Box::new(std::io::Error::other( [INFO] [stdout] 193 ~ format!("Failed to parse result: {}", e), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:203:42 [INFO] [stdout] | [INFO] [stdout] 203 | ... Err(Box::new(std::io::Error::new( [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 204 | | ... std::io::ErrorKind::Other, [INFO] [stdout] 205 | | ... "Missing result and error in response", [INFO] [stdout] 206 | | ... )) as Box), [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 203 ~ Err(Box::new(std::io::Error::other( [INFO] [stdout] 204 ~ "Missing result and error in response", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:214:38 [INFO] [stdout] | [INFO] [stdout] 214 | Err(Box::new(std::io::Error::new( [INFO] [stdout] | ______________________________________^ [INFO] [stdout] 215 | | std::io::ErrorKind::Other, [INFO] [stdout] 216 | | "No response found for request", [INFO] [stdout] 217 | | )) as Box), [INFO] [stdout] | |_________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 214 ~ Err(Box::new(std::io::Error::other( [INFO] [stdout] 215 ~ "No response found for request", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:192:50 [INFO] [stdout] | [INFO] [stdout] 192 | ... Err(Box::new(std::io::Error::new( [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 193 | | ... std::io::ErrorKind::Other, [INFO] [stdout] 194 | | ... format!("Failed to parse result: {}", e), [INFO] [stdout] 195 | | ... )) as Box), [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 192 ~ Err(Box::new(std::io::Error::other( [INFO] [stdout] 193 ~ format!("Failed to parse result: {}", e), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:203:42 [INFO] [stdout] | [INFO] [stdout] 203 | ... Err(Box::new(std::io::Error::new( [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 204 | | ... std::io::ErrorKind::Other, [INFO] [stdout] 205 | | ... "Missing result and error in response", [INFO] [stdout] 206 | | ... )) as Box), [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 203 ~ Err(Box::new(std::io::Error::other( [INFO] [stdout] 204 ~ "Missing result and error in response", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:214:38 [INFO] [stdout] | [INFO] [stdout] 214 | Err(Box::new(std::io::Error::new( [INFO] [stdout] | ______________________________________^ [INFO] [stdout] 215 | | std::io::ErrorKind::Other, [INFO] [stdout] 216 | | "No response found for request", [INFO] [stdout] 217 | | )) as Box), [INFO] [stdout] | |_________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 214 ~ Err(Box::new(std::io::Error::other( [INFO] [stdout] 215 ~ "No response found for request", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:268:34 [INFO] [stdout] | [INFO] [stdout] 268 | Err(Box::new(std::io::Error::new( [INFO] [stdout] | __________________________________^ [INFO] [stdout] 269 | | std::io::ErrorKind::Other, [INFO] [stdout] 270 | | "Missing required fields in parsed response", [INFO] [stdout] 271 | | ))) [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 268 ~ Err(Box::new(std::io::Error::other( [INFO] [stdout] 269 ~ "Missing required fields in parsed response", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:276:30 [INFO] [stdout] | [INFO] [stdout] 276 | Err(Box::new(std::io::Error::new( [INFO] [stdout] | ______________________________^ [INFO] [stdout] 277 | | std::io::ErrorKind::Other, [INFO] [stdout] 278 | | format!("Failed to parse string as JSON: {}", e), [INFO] [stdout] 279 | | ))) [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 276 ~ Err(Box::new(std::io::Error::other( [INFO] [stdout] 277 ~ format!("Failed to parse string as JSON: {}", e), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:268:34 [INFO] [stdout] | [INFO] [stdout] 268 | Err(Box::new(std::io::Error::new( [INFO] [stdout] | __________________________________^ [INFO] [stdout] 269 | | std::io::ErrorKind::Other, [INFO] [stdout] 270 | | "Missing required fields in parsed response", [INFO] [stdout] 271 | | ))) [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 268 ~ Err(Box::new(std::io::Error::other( [INFO] [stdout] 269 ~ "Missing required fields in parsed response", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:276:30 [INFO] [stdout] | [INFO] [stdout] 276 | Err(Box::new(std::io::Error::new( [INFO] [stdout] | ______________________________^ [INFO] [stdout] 277 | | std::io::ErrorKind::Other, [INFO] [stdout] 278 | | format!("Failed to parse string as JSON: {}", e), [INFO] [stdout] 279 | | ))) [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 276 ~ Err(Box::new(std::io::Error::other( [INFO] [stdout] 277 ~ format!("Failed to parse string as JSON: {}", e), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:312:26 [INFO] [stdout] | [INFO] [stdout] 312 | Err(Box::new(std::io::Error::new( [INFO] [stdout] | __________________________^ [INFO] [stdout] 313 | | std::io::ErrorKind::Other, [INFO] [stdout] 314 | | "Missing required fields in object response", [INFO] [stdout] 315 | | ))) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 312 ~ Err(Box::new(std::io::Error::other( [INFO] [stdout] 313 ~ "Missing required fields in object response", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:319:22 [INFO] [stdout] | [INFO] [stdout] 319 | Err(Box::new(std::io::Error::new( [INFO] [stdout] | ______________________^ [INFO] [stdout] 320 | | std::io::ErrorKind::Other, [INFO] [stdout] 321 | | "Unexpected value type in response", [INFO] [stdout] 322 | | ))) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 319 ~ Err(Box::new(std::io::Error::other( [INFO] [stdout] 320 ~ "Unexpected value type in response", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:312:26 [INFO] [stdout] | [INFO] [stdout] 312 | Err(Box::new(std::io::Error::new( [INFO] [stdout] | __________________________^ [INFO] [stdout] 313 | | std::io::ErrorKind::Other, [INFO] [stdout] 314 | | "Missing required fields in object response", [INFO] [stdout] 315 | | ))) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 312 ~ Err(Box::new(std::io::Error::other( [INFO] [stdout] 313 ~ "Missing required fields in object response", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:319:22 [INFO] [stdout] | [INFO] [stdout] 319 | Err(Box::new(std::io::Error::new( [INFO] [stdout] | ______________________^ [INFO] [stdout] 320 | | std::io::ErrorKind::Other, [INFO] [stdout] 321 | | "Unexpected value type in response", [INFO] [stdout] 322 | | ))) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 319 ~ Err(Box::new(std::io::Error::other( [INFO] [stdout] 320 ~ "Unexpected value type in response", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking spore-api-server v0.1.0 (/opt/rustwide/workdir/spore-api-server) [INFO] [stdout] warning: unused imports: `IntoResponse`, `Json`, `Path`, `Query`, `Response`, `State`, and `http::StatusCode` [INFO] [stdout] --> spore-api-server/src/main.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | extract::{Path, Query, State}, [INFO] [stdout] | ^^^^ ^^^^^ ^^^^^ [INFO] [stdout] 4 | http::StatusCode, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | response::{IntoResponse, Response}, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] 6 | routing::{get, post}, [INFO] [stdout] 7 | Json, Router, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DbSporeData` [INFO] [stdout] --> spore-api-server/src/main.rs:10:33 [INFO] [stdout] | [INFO] [stdout] 10 | use lambda_next::db::{DbConfig, DbSporeData, SporeDb}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> spore-api-server/src/main.rs:11:26 [INFO] [stdout] | [INFO] [stdout] 11 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> spore-api-server/src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug`, `error`, and `warn` [INFO] [stdout] --> spore-api-server/src/main.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | use tracing::{debug, error, info, warn}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> spore-api-server/src/routes/mod.rs:6:26 [INFO] [stdout] | [INFO] [stdout] 6 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ServerDecodeResult` [INFO] [stdout] --> spore-api-server/src/routes/cluster.rs:5:36 [INFO] [stdout] | [INFO] [stdout] 5 | use lambda_next::db::{DbSporeData, ServerDecodeResult}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lambda_next::db::DbSporeData` [INFO] [stdout] --> spore-api-server/src/routes/spore.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use lambda_next::db::DbSporeData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lambda_next::db::DbSporeData` [INFO] [stdout] --> spore-api-server/src/routes/address.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use lambda_next::db::DbSporeData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `network::NetworkType` [INFO] [stdout] --> spore-api-server/src/main.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use network::NetworkType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IntoResponse`, `Json`, `Path`, `Query`, `Response`, `State`, and `http::StatusCode` [INFO] [stdout] --> spore-api-server/src/main.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | extract::{Path, Query, State}, [INFO] [stdout] | ^^^^ ^^^^^ ^^^^^ [INFO] [stdout] 4 | http::StatusCode, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 5 | response::{IntoResponse, Response}, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] 6 | routing::{get, post}, [INFO] [stdout] 7 | Json, Router, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DbSporeData` [INFO] [stdout] --> spore-api-server/src/main.rs:10:33 [INFO] [stdout] | [INFO] [stdout] 10 | use lambda_next::db::{DbConfig, DbSporeData, SporeDb}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> spore-api-server/src/main.rs:11:26 [INFO] [stdout] | [INFO] [stdout] 11 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> spore-api-server/src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug`, `error`, and `warn` [INFO] [stdout] --> spore-api-server/src/main.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | use tracing::{debug, error, info, warn}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> spore-api-server/src/routes/mod.rs:6:26 [INFO] [stdout] | [INFO] [stdout] 6 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ServerDecodeResult` [INFO] [stdout] --> spore-api-server/src/routes/cluster.rs:5:36 [INFO] [stdout] | [INFO] [stdout] 5 | use lambda_next::db::{DbSporeData, ServerDecodeResult}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lambda_next::db::DbSporeData` [INFO] [stdout] --> spore-api-server/src/routes/spore.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use lambda_next::db::DbSporeData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lambda_next::db::DbSporeData` [INFO] [stdout] --> spore-api-server/src/routes/address.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use lambda_next::db::DbSporeData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `network::NetworkType` [INFO] [stdout] --> spore-api-server/src/main.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use network::NetworkType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `JsonParsingError` is never constructed [INFO] [stdout] --> spore-api-server/src/routes/mod.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub enum ApiError { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 37 | JsonParsingError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApiError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/query.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/query.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error`, `trace`, and `warn` [INFO] [stdout] --> src/query.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use tracing::{debug, error, info, instrument, trace, warn}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ckb_jsonrpc_types::Script` [INFO] [stdout] --> src/spore.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use ckb_jsonrpc_types::Script; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `packed` [INFO] [stdout] --> src/spore.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | packed, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ServerDecodeResult` [INFO] [stdout] --> src/spore.rs:29:30 [INFO] [stdout] | [INFO] [stdout] 29 | use crate::db::{DbSporeData, ServerDecodeResult}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `JsonParsingError` is never constructed [INFO] [stdout] --> spore-api-server/src/routes/mod.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub enum ApiError { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 37 | JsonParsingError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApiError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/query.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/query.rs:4:19 [INFO] [stdout] | [INFO] [stdout] 4 | use tokio::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error`, `trace`, and `warn` [INFO] [stdout] --> src/query.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use tracing::{debug, error, info, instrument, trace, warn}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ckb_jsonrpc_types::Script` [INFO] [stdout] --> src/spore.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use ckb_jsonrpc_types::Script; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `packed` [INFO] [stdout] --> src/spore.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | packed, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ServerDecodeResult` [INFO] [stdout] --> src/spore.rs:29:30 [INFO] [stdout] | [INFO] [stdout] 29 | use crate::db::{DbSporeData, ServerDecodeResult}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/spore.rs:613:14 [INFO] [stdout] | [INFO] [stdout] 613 | for (index, cell) in cells.iter().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `content_filter` [INFO] [stdout] --> src/db.rs:427:37 [INFO] [stdout] | [INFO] [stdout] 427 | let query_str = if let Some(content_filter) = content_type_filter { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_content_filter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `network` [INFO] [stdout] --> src/db.rs:428:25 [INFO] [stdout] | [INFO] [stdout] 428 | if let Some(network) = network_type { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_network` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `network` [INFO] [stdout] --> src/db.rs:454:25 [INFO] [stdout] | [INFO] [stdout] 454 | if let Some(network) = network_type { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_network` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/spore.rs:613:14 [INFO] [stdout] | [INFO] [stdout] 613 | for (index, cell) in cells.iter().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `JsonRpcError` is never constructed [INFO] [stdout] --> src/ckb.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum CkbError { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 14 | JsonRpcError(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CkbError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Lock` is never constructed [INFO] [stdout] --> src/ckb.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub enum ScriptType { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 35 | Lock, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PassAll` is never constructed [INFO] [stdout] --> src/ckb.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 49 | pub enum OutputsValidator { [INFO] [stdout] | ---------------- variant in this enum [INFO] [stdout] 50 | Default, [INFO] [stdout] 51 | PassAll, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ckb.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 76 | impl CkbClient { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 77 | /// Create a new CKB client with a direct writer [INFO] [stdout] 78 | pub fn new(writer: WsWriter) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `remove` is never used [INFO] [stdout] --> src/spore.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 52 | impl SporeCache { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn remove(&mut self, type_id: &str) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/db.rs:216:18 [INFO] [stdout] | [INFO] [stdout] 45 | impl SporeDb { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 216 | pub async fn get_spores_by_cluster(&self, cluster_id: &str, limit: i64, offset: i64) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 260 | pub async fn get_spores_by_owner(&self, owner: &str, limit: i64, offset: i64) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 348 | pub async fn get_spores_by_cluster_with_network( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 415 | pub async fn get_spores_by_owner_filtered( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 528 | async fn update_schema_for_network(&self) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 568 | pub async fn initialize(&self) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 579 | pub async fn get_spore_by_id_with_network(&self, id: &str, network_type: Option<&str>) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 671 | pub async fn get_spores_by_owner_with_clusters( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 779 | pub async fn get_spore_by_id_with_clusters( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `JsonRpcBatchRequest` is never constructed [INFO] [stdout] --> src/dob_decoder.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | struct JsonRpcBatchRequest(Vec); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `jsonrpc` is never read [INFO] [stdout] --> src/dob_decoder.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 42 | struct JsonRpcResponse { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 43 | jsonrpc: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JsonRpcResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `code` and `data` are never read [INFO] [stdout] --> src/dob_decoder.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 51 | struct JsonRpcError { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 52 | code: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 53 | message: String, [INFO] [stdout] 54 | data: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JsonRpcError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: all variants have the same postfix: `Error` [INFO] [stdout] --> src/ckb.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / pub enum CkbError { [INFO] [stdout] 14 | | JsonRpcError(String), [INFO] [stdout] 15 | | ParseError(String), [INFO] [stdout] 16 | | WebSocketError(String), [INFO] [stdout] 17 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: remove the postfixes and use full paths to the variants instead of glob imports [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names [INFO] [stdout] = note: `#[warn(clippy::enum_variant_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: direct implementation of `ToString` [INFO] [stdout] --> src/ckb.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 39 | / impl ToString for ScriptType { [INFO] [stdout] 40 | | fn to_string(&self) -> String { [INFO] [stdout] 41 | | match self { [INFO] [stdout] 42 | | ScriptType::Lock => "lock".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 46 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: prefer implementing `Display` instead [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_trait_impl [INFO] [stdout] = note: `#[warn(clippy::to_string_trait_impl)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: direct implementation of `ToString` [INFO] [stdout] --> src/ckb.rs:54:1 [INFO] [stdout] | [INFO] [stdout] 54 | / impl ToString for OutputsValidator { [INFO] [stdout] 55 | | fn to_string(&self) -> String { [INFO] [stdout] 56 | | match self { [INFO] [stdout] 57 | | OutputsValidator::Default => "default".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 61 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: prefer implementing `Display` instead [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_trait_impl [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is only used to index `uuid_bytes` [INFO] [stdout] --> src/ckb.rs:108:18 [INFO] [stdout] | [INFO] [stdout] 108 | for i in 0..8 { [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 [INFO] [stdout] | [INFO] [stdout] 108 - for i in 0..8 { [INFO] [stdout] 108 + for in uuid_bytes.iter().take(8) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/ckb.rs:164:47 [INFO] [stdout] | [INFO] [stdout] 164 | tracing::Span::current().record("id", &id); [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_borrows_for_generic_args [INFO] [stdout] = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `content_filter` [INFO] [stdout] --> src/db.rs:427:37 [INFO] [stdout] | [INFO] [stdout] 427 | let query_str = if let Some(content_filter) = content_type_filter { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_content_filter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `network` [INFO] [stdout] --> src/db.rs:428:25 [INFO] [stdout] | [INFO] [stdout] 428 | if let Some(network) = network_type { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_network` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `network` [INFO] [stdout] --> src/db.rs:454:25 [INFO] [stdout] | [INFO] [stdout] 454 | if let Some(network) = network_type { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_network` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `filter.type_ids_file` after checking its variant with `is_some` [INFO] [stdout] --> src/spore.rs:295:25 [INFO] [stdout] | [INFO] [stdout] 294 | if filter.filter_by_type_ids && filter.type_ids_file.is_some() { [INFO] [stdout] | ------------------------------ the check is happening here [INFO] [stdout] 295 | let file_path = filter.type_ids_file.as_ref().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] = note: `#[warn(clippy::unnecessary_unwrap)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: stripping a prefix manually [INFO] [stdout] --> src/spore.rs:516:45 [INFO] [stdout] | [INFO] [stdout] 516 | u32::from_str_radix(&index_str[2..], 16).ok() [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the prefix was tested here [INFO] [stdout] --> src/spore.rs:515:21 [INFO] [stdout] | [INFO] [stdout] 515 | if index_str.starts_with("0x") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_strip [INFO] [stdout] = note: `#[warn(clippy::manual_strip)]` on by default [INFO] [stdout] help: try using the `strip_prefix` method [INFO] [stdout] | [INFO] [stdout] 515 ~ if let Some() = index_str.strip_prefix("0x") { [INFO] [stdout] 516 ~ u32::from_str_radix(, 16).ok() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `config.dob_decoder` after checking its variant with `is_some` [INFO] [stdout] --> src/spore.rs:643:30 [INFO] [stdout] | [INFO] [stdout] 642 | if !dob_spores.is_empty() && config.dob_decoder.is_some() { [INFO] [stdout] | ---------------------------- the check is happening here [INFO] [stdout] 643 | let decoder_config = config.dob_decoder.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `map_or` can be simplified [INFO] [stdout] --> src/spore.rs:603:25 [INFO] [stdout] | [INFO] [stdout] 603 | let skip_decoding = config.spore_filters.iter().find(|f| f.enabled).map_or(false, |f| f.skip_decoding); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or [INFO] [stdout] = note: `#[warn(clippy::unnecessary_map_or)]` on by default [INFO] [stdout] help: use `is_some_and` instead [INFO] [stdout] | [INFO] [stdout] 603 - let skip_decoding = config.spore_filters.iter().find(|f| f.enabled).map_or(false, |f| f.skip_decoding); [INFO] [stdout] 603 + let skip_decoding = config.spore_filters.iter().find(|f| f.enabled).is_some_and(|f| f.skip_decoding); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if let` can be collapsed into the outer `if let` [INFO] [stdout] --> src/spore.rs:716:13 [INFO] [stdout] | [INFO] [stdout] 716 | / if let Ok(server_result) = dob_result { [INFO] [stdout] 717 | | if let Some(mut spore_data) = cell.to_spore_data() { [INFO] [stdout] ... | [INFO] [stdout] 728 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] help: the outer pattern can be modified to include the inner pattern [INFO] [stdout] --> src/spore.rs:715:21 [INFO] [stdout] | [INFO] [stdout] 715 | if let Some(dob_result) = dob_results.get(type_id) { [INFO] [stdout] | ^^^^^^^^^^ replace this binding [INFO] [stdout] 716 | if let Ok(server_result) = dob_result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ with this pattern [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: stripping a prefix manually [INFO] [stdout] --> src/spore.rs:774:41 [INFO] [stdout] | [INFO] [stdout] 774 | u32::from_str_radix(&index_str[2..], 16).ok() [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the prefix was tested here [INFO] [stdout] --> src/spore.rs:773:17 [INFO] [stdout] | [INFO] [stdout] 773 | if index_str.starts_with("0x") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_strip [INFO] [stdout] help: try using the `strip_prefix` method [INFO] [stdout] | [INFO] [stdout] 773 ~ if let Some() = index_str.strip_prefix("0x") { [INFO] [stdout] 774 ~ u32::from_str_radix(, 16).ok() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `JsonRpcError` is never constructed [INFO] [stdout] --> src/ckb.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum CkbError { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 14 | JsonRpcError(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CkbError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Lock` is never constructed [INFO] [stdout] --> src/ckb.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub enum ScriptType { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 35 | Lock, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `PassAll` is never constructed [INFO] [stdout] --> src/ckb.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 49 | pub enum OutputsValidator { [INFO] [stdout] | ---------------- variant in this enum [INFO] [stdout] 50 | Default, [INFO] [stdout] 51 | PassAll, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ckb.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 76 | impl CkbClient { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 77 | /// Create a new CKB client with a direct writer [INFO] [stdout] 78 | pub fn new(writer: WsWriter) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `remove` is never used [INFO] [stdout] --> src/spore.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 52 | impl SporeCache { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn remove(&mut self, type_id: &str) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/db.rs:216:18 [INFO] [stdout] | [INFO] [stdout] 45 | impl SporeDb { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 216 | pub async fn get_spores_by_cluster(&self, cluster_id: &str, limit: i64, offset: i64) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 260 | pub async fn get_spores_by_owner(&self, owner: &str, limit: i64, offset: i64) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 348 | pub async fn get_spores_by_cluster_with_network( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 415 | pub async fn get_spores_by_owner_filtered( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 528 | async fn update_schema_for_network(&self) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 568 | pub async fn initialize(&self) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 579 | pub async fn get_spore_by_id_with_network(&self, id: &str, network_type: Option<&str>) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 671 | pub async fn get_spores_by_owner_with_clusters( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 779 | pub async fn get_spore_by_id_with_clusters( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `JsonRpcBatchRequest` is never constructed [INFO] [stdout] --> src/dob_decoder.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | struct JsonRpcBatchRequest(Vec); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `jsonrpc` is never read [INFO] [stdout] --> src/dob_decoder.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 42 | struct JsonRpcResponse { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 43 | jsonrpc: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JsonRpcResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `code` and `data` are never read [INFO] [stdout] --> src/dob_decoder.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 51 | struct JsonRpcError { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 52 | code: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 53 | message: String, [INFO] [stdout] 54 | data: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JsonRpcError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: all variants have the same postfix: `Error` [INFO] [stdout] --> src/ckb.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / pub enum CkbError { [INFO] [stdout] 14 | | JsonRpcError(String), [INFO] [stdout] 15 | | ParseError(String), [INFO] [stdout] 16 | | WebSocketError(String), [INFO] [stdout] 17 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: remove the postfixes and use full paths to the variants instead of glob imports [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names [INFO] [stdout] = note: `#[warn(clippy::enum_variant_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: direct implementation of `ToString` [INFO] [stdout] --> src/ckb.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 39 | / impl ToString for ScriptType { [INFO] [stdout] 40 | | fn to_string(&self) -> String { [INFO] [stdout] 41 | | match self { [INFO] [stdout] 42 | | ScriptType::Lock => "lock".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 46 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: prefer implementing `Display` instead [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_trait_impl [INFO] [stdout] = note: `#[warn(clippy::to_string_trait_impl)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: direct implementation of `ToString` [INFO] [stdout] --> src/ckb.rs:54:1 [INFO] [stdout] | [INFO] [stdout] 54 | / impl ToString for OutputsValidator { [INFO] [stdout] 55 | | fn to_string(&self) -> String { [INFO] [stdout] 56 | | match self { [INFO] [stdout] 57 | | OutputsValidator::Default => "default".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 61 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: prefer implementing `Display` instead [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_trait_impl [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is only used to index `uuid_bytes` [INFO] [stdout] --> src/ckb.rs:108:18 [INFO] [stdout] | [INFO] [stdout] 108 | for i in 0..8 { [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 [INFO] [stdout] | [INFO] [stdout] 108 - for i in 0..8 { [INFO] [stdout] 108 + for in uuid_bytes.iter().take(8) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/ckb.rs:164:47 [INFO] [stdout] | [INFO] [stdout] 164 | tracing::Span::current().record("id", &id); [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_borrows_for_generic_args [INFO] [stdout] = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/db.rs:179:18 [INFO] [stdout] | [INFO] [stdout] 179 | ...w: Option<(String, String, String, String, String, i32, String, String, Option, Option, Option)> = [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: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/db.rs:219:19 [INFO] [stdout] | [INFO] [stdout] 219 | ...s: Vec<(String, String, String, String, String, i32, String, String, Option, Option, Option)> = [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: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/db.rs:263:19 [INFO] [stdout] | [INFO] [stdout] 263 | ...s: Vec<(String, String, String, String, String, i32, String, String, Option, Option, Option)> = [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: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/db.rs:387:19 [INFO] [stdout] | [INFO] [stdout] 387 | ...s: Vec<(String, String, String, String, String, i32, String, String, Option, Option, Option)> = [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: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/db.rs:500:19 [INFO] [stdout] | [INFO] [stdout] 500 | ...s: Vec<(String, String, String, String, String, i32, String, String, Option, Option, Option)> = [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: this function has too many arguments (8/7) [INFO] [stdout] --> src/db.rs:671:5 [INFO] [stdout] | [INFO] [stdout] 671 | / pub async fn get_spores_by_owner_with_clusters( [INFO] [stdout] 672 | | &self, [INFO] [stdout] 673 | | owner: &str, [INFO] [stdout] 674 | | limit: i64, [INFO] [stdout] ... | [INFO] [stdout] 679 | | cluster_ids: &[String] [INFO] [stdout] 680 | | ) -> Result, sqlx::Error> { [INFO] [stdout] | |______________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] = note: `#[warn(clippy::too_many_arguments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant pattern matching, consider using `is_some()` [INFO] [stdout] --> src/db.rs:709:16 [INFO] [stdout] | [INFO] [stdout] 709 | if let Some(_) = content_type_filter { [INFO] [stdout] | -------^^^^^^^---------------------- help: try: `if content_type_filter.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: redundant pattern matching, consider using `is_some()` [INFO] [stdout] --> src/db.rs:714:16 [INFO] [stdout] | [INFO] [stdout] 714 | if let Some(_) = network_type { [INFO] [stdout] | -------^^^^^^^--------------- help: try: `if network_type.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] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/db.rs:751:19 [INFO] [stdout] | [INFO] [stdout] 751 | ...s: Vec<(String, String, String, String, String, i32, String, String, Option, Option, Option)> = [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: redundant pattern matching, consider using `is_some()` [INFO] [stdout] --> src/db.rs:792:32 [INFO] [stdout] | [INFO] [stdout] 792 | let query_str = if let Some(_) = network_type { [INFO] [stdout] | -------^^^^^^^--------------- help: try: `if network_type.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] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:105:43 [INFO] [stdout] | [INFO] [stdout] 105 | (id, Err(Box::new(std::io::Error::new( [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 106 | | std::io::ErrorKind::Other, [INFO] [stdout] 107 | | format!("Failed to send batch request: {}", e), [INFO] [stdout] 108 | | )) as Box)) [INFO] [stdout] | |_________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] = note: `#[warn(clippy::io_other_error)]` on by default [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 105 ~ (id, Err(Box::new(std::io::Error::other( [INFO] [stdout] 106 ~ format!("Failed to send batch request: {}", e), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:138:33 [INFO] [stdout] | [INFO] [stdout] 138 | return Err(Box::new(std::io::Error::new( [INFO] [stdout] | _________________________________^ [INFO] [stdout] 139 | | std::io::ErrorKind::Other, [INFO] [stdout] 140 | | format!("HTTP error: {} - {}", status, error_text), [INFO] [stdout] 141 | | ))); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 138 ~ return Err(Box::new(std::io::Error::other( [INFO] [stdout] 139 ~ format!("HTTP error: {} - {}", status, error_text), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:153:37 [INFO] [stdout] | [INFO] [stdout] 153 | return Err(Box::new(std::io::Error::new( [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 154 | | std::io::ErrorKind::Other, [INFO] [stdout] 155 | | format!("Failed to parse JSON-RPC response: {}", e), [INFO] [stdout] 156 | | ))); [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 153 ~ return Err(Box::new(std::io::Error::other( [INFO] [stdout] 154 ~ format!("Failed to parse JSON-RPC response: {}", e), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:175:42 [INFO] [stdout] | [INFO] [stdout] 175 | ... Err(Box::new(std::io::Error::new( [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 176 | | ... std::io::ErrorKind::Other, [INFO] [stdout] 177 | | ... format!("JSON-RPC error: {}", error.message), [INFO] [stdout] 178 | | ... )) as Box), [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 175 ~ Err(Box::new(std::io::Error::other( [INFO] [stdout] 176 ~ format!("JSON-RPC error: {}", error.message), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:192:50 [INFO] [stdout] | [INFO] [stdout] 192 | ... Err(Box::new(std::io::Error::new( [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 193 | | ... std::io::ErrorKind::Other, [INFO] [stdout] 194 | | ... format!("Failed to parse result: {}", e), [INFO] [stdout] 195 | | ... )) as Box), [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 192 ~ Err(Box::new(std::io::Error::other( [INFO] [stdout] 193 ~ format!("Failed to parse result: {}", e), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:203:42 [INFO] [stdout] | [INFO] [stdout] 203 | ... Err(Box::new(std::io::Error::new( [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 204 | | ... std::io::ErrorKind::Other, [INFO] [stdout] 205 | | ... "Missing result and error in response", [INFO] [stdout] 206 | | ... )) as Box), [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 203 ~ Err(Box::new(std::io::Error::other( [INFO] [stdout] 204 ~ "Missing result and error in response", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:214:38 [INFO] [stdout] | [INFO] [stdout] 214 | Err(Box::new(std::io::Error::new( [INFO] [stdout] | ______________________________________^ [INFO] [stdout] 215 | | std::io::ErrorKind::Other, [INFO] [stdout] 216 | | "No response found for request", [INFO] [stdout] 217 | | )) as Box), [INFO] [stdout] | |_________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 214 ~ Err(Box::new(std::io::Error::other( [INFO] [stdout] 215 ~ "No response found for request", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:268:34 [INFO] [stdout] | [INFO] [stdout] 268 | Err(Box::new(std::io::Error::new( [INFO] [stdout] | __________________________________^ [INFO] [stdout] 269 | | std::io::ErrorKind::Other, [INFO] [stdout] 270 | | "Missing required fields in parsed response", [INFO] [stdout] 271 | | ))) [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 268 ~ Err(Box::new(std::io::Error::other( [INFO] [stdout] 269 ~ "Missing required fields in parsed response", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:276:30 [INFO] [stdout] | [INFO] [stdout] 276 | Err(Box::new(std::io::Error::new( [INFO] [stdout] | ______________________________^ [INFO] [stdout] 277 | | std::io::ErrorKind::Other, [INFO] [stdout] 278 | | format!("Failed to parse string as JSON: {}", e), [INFO] [stdout] 279 | | ))) [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 276 ~ Err(Box::new(std::io::Error::other( [INFO] [stdout] 277 ~ format!("Failed to parse string as JSON: {}", e), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:312:26 [INFO] [stdout] | [INFO] [stdout] 312 | Err(Box::new(std::io::Error::new( [INFO] [stdout] | __________________________^ [INFO] [stdout] 313 | | std::io::ErrorKind::Other, [INFO] [stdout] 314 | | "Missing required fields in object response", [INFO] [stdout] 315 | | ))) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 312 ~ Err(Box::new(std::io::Error::other( [INFO] [stdout] 313 ~ "Missing required fields in object response", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `filter.type_ids_file` after checking its variant with `is_some` [INFO] [stdout] --> src/spore.rs:295:25 [INFO] [stdout] | [INFO] [stdout] 294 | if filter.filter_by_type_ids && filter.type_ids_file.is_some() { [INFO] [stdout] | ------------------------------ the check is happening here [INFO] [stdout] 295 | let file_path = filter.type_ids_file.as_ref().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] = note: `#[warn(clippy::unnecessary_unwrap)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:319:22 [INFO] [stdout] | [INFO] [stdout] 319 | Err(Box::new(std::io::Error::new( [INFO] [stdout] | ______________________^ [INFO] [stdout] 320 | | std::io::ErrorKind::Other, [INFO] [stdout] 321 | | "Unexpected value type in response", [INFO] [stdout] 322 | | ))) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 319 ~ Err(Box::new(std::io::Error::other( [INFO] [stdout] 320 ~ "Unexpected value type in response", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: stripping a prefix manually [INFO] [stdout] --> src/spore.rs:516:45 [INFO] [stdout] | [INFO] [stdout] 516 | u32::from_str_radix(&index_str[2..], 16).ok() [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the prefix was tested here [INFO] [stdout] --> src/spore.rs:515:21 [INFO] [stdout] | [INFO] [stdout] 515 | if index_str.starts_with("0x") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_strip [INFO] [stdout] = note: `#[warn(clippy::manual_strip)]` on by default [INFO] [stdout] help: try using the `strip_prefix` method [INFO] [stdout] | [INFO] [stdout] 515 ~ if let Some() = index_str.strip_prefix("0x") { [INFO] [stdout] 516 ~ u32::from_str_radix(, 16).ok() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `config.dob_decoder` after checking its variant with `is_some` [INFO] [stdout] --> src/spore.rs:643:30 [INFO] [stdout] | [INFO] [stdout] 642 | if !dob_spores.is_empty() && config.dob_decoder.is_some() { [INFO] [stdout] | ---------------------------- the check is happening here [INFO] [stdout] 643 | let decoder_config = config.dob_decoder.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `map_or` can be simplified [INFO] [stdout] --> src/spore.rs:603:25 [INFO] [stdout] | [INFO] [stdout] 603 | let skip_decoding = config.spore_filters.iter().find(|f| f.enabled).map_or(false, |f| f.skip_decoding); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or [INFO] [stdout] = note: `#[warn(clippy::unnecessary_map_or)]` on by default [INFO] [stdout] help: use `is_some_and` instead [INFO] [stdout] | [INFO] [stdout] 603 - let skip_decoding = config.spore_filters.iter().find(|f| f.enabled).map_or(false, |f| f.skip_decoding); [INFO] [stdout] 603 + let skip_decoding = config.spore_filters.iter().find(|f| f.enabled).is_some_and(|f| f.skip_decoding); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if let` can be collapsed into the outer `if let` [INFO] [stdout] --> src/spore.rs:716:13 [INFO] [stdout] | [INFO] [stdout] 716 | / if let Ok(server_result) = dob_result { [INFO] [stdout] 717 | | if let Some(mut spore_data) = cell.to_spore_data() { [INFO] [stdout] ... | [INFO] [stdout] 728 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] help: the outer pattern can be modified to include the inner pattern [INFO] [stdout] --> src/spore.rs:715:21 [INFO] [stdout] | [INFO] [stdout] 715 | if let Some(dob_result) = dob_results.get(type_id) { [INFO] [stdout] | ^^^^^^^^^^ replace this binding [INFO] [stdout] 716 | if let Ok(server_result) = dob_result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ with this pattern [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: stripping a prefix manually [INFO] [stdout] --> src/spore.rs:774:41 [INFO] [stdout] | [INFO] [stdout] 774 | u32::from_str_radix(&index_str[2..], 16).ok() [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the prefix was tested here [INFO] [stdout] --> src/spore.rs:773:17 [INFO] [stdout] | [INFO] [stdout] 773 | if index_str.starts_with("0x") { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_strip [INFO] [stdout] help: try using the `strip_prefix` method [INFO] [stdout] | [INFO] [stdout] 773 ~ if let Some() = index_str.strip_prefix("0x") { [INFO] [stdout] 774 ~ u32::from_str_radix(, 16).ok() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/db.rs:179:18 [INFO] [stdout] | [INFO] [stdout] 179 | ...w: Option<(String, String, String, String, String, i32, String, String, Option, Option, Option)> = [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: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/db.rs:219:19 [INFO] [stdout] | [INFO] [stdout] 219 | ...s: Vec<(String, String, String, String, String, i32, String, String, Option, Option, Option)> = [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: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/db.rs:263:19 [INFO] [stdout] | [INFO] [stdout] 263 | ...s: Vec<(String, String, String, String, String, i32, String, String, Option, Option, Option)> = [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: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/db.rs:387:19 [INFO] [stdout] | [INFO] [stdout] 387 | ...s: Vec<(String, String, String, String, String, i32, String, String, Option, Option, Option)> = [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: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/db.rs:500:19 [INFO] [stdout] | [INFO] [stdout] 500 | ...s: Vec<(String, String, String, String, String, i32, String, String, Option, Option, Option)> = [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: this function has too many arguments (8/7) [INFO] [stdout] --> src/db.rs:671:5 [INFO] [stdout] | [INFO] [stdout] 671 | / pub async fn get_spores_by_owner_with_clusters( [INFO] [stdout] 672 | | &self, [INFO] [stdout] 673 | | owner: &str, [INFO] [stdout] 674 | | limit: i64, [INFO] [stdout] ... | [INFO] [stdout] 679 | | cluster_ids: &[String] [INFO] [stdout] 680 | | ) -> Result, sqlx::Error> { [INFO] [stdout] | |______________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] = note: `#[warn(clippy::too_many_arguments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant pattern matching, consider using `is_some()` [INFO] [stdout] --> src/db.rs:709:16 [INFO] [stdout] | [INFO] [stdout] 709 | if let Some(_) = content_type_filter { [INFO] [stdout] | -------^^^^^^^---------------------- help: try: `if content_type_filter.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: redundant pattern matching, consider using `is_some()` [INFO] [stdout] --> src/db.rs:714:16 [INFO] [stdout] | [INFO] [stdout] 714 | if let Some(_) = network_type { [INFO] [stdout] | -------^^^^^^^--------------- help: try: `if network_type.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] [INFO] [stdout] [INFO] [stdout] warning: very complex type used. Consider factoring parts into `type` definitions [INFO] [stdout] --> src/db.rs:751:19 [INFO] [stdout] | [INFO] [stdout] 751 | ...s: Vec<(String, String, String, String, String, i32, String, String, Option, Option, Option)> = [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: redundant pattern matching, consider using `is_some()` [INFO] [stdout] --> src/db.rs:792:32 [INFO] [stdout] | [INFO] [stdout] 792 | let query_str = if let Some(_) = network_type { [INFO] [stdout] | -------^^^^^^^--------------- help: try: `if network_type.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] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:105:43 [INFO] [stdout] | [INFO] [stdout] 105 | (id, Err(Box::new(std::io::Error::new( [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 106 | | std::io::ErrorKind::Other, [INFO] [stdout] 107 | | format!("Failed to send batch request: {}", e), [INFO] [stdout] 108 | | )) as Box)) [INFO] [stdout] | |_________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] = note: `#[warn(clippy::io_other_error)]` on by default [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 105 ~ (id, Err(Box::new(std::io::Error::other( [INFO] [stdout] 106 ~ format!("Failed to send batch request: {}", e), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:138:33 [INFO] [stdout] | [INFO] [stdout] 138 | return Err(Box::new(std::io::Error::new( [INFO] [stdout] | _________________________________^ [INFO] [stdout] 139 | | std::io::ErrorKind::Other, [INFO] [stdout] 140 | | format!("HTTP error: {} - {}", status, error_text), [INFO] [stdout] 141 | | ))); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 138 ~ return Err(Box::new(std::io::Error::other( [INFO] [stdout] 139 ~ format!("HTTP error: {} - {}", status, error_text), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:153:37 [INFO] [stdout] | [INFO] [stdout] 153 | return Err(Box::new(std::io::Error::new( [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 154 | | std::io::ErrorKind::Other, [INFO] [stdout] 155 | | format!("Failed to parse JSON-RPC response: {}", e), [INFO] [stdout] 156 | | ))); [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 153 ~ return Err(Box::new(std::io::Error::other( [INFO] [stdout] 154 ~ format!("Failed to parse JSON-RPC response: {}", e), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:175:42 [INFO] [stdout] | [INFO] [stdout] 175 | ... Err(Box::new(std::io::Error::new( [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 176 | | ... std::io::ErrorKind::Other, [INFO] [stdout] 177 | | ... format!("JSON-RPC error: {}", error.message), [INFO] [stdout] 178 | | ... )) as Box), [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 175 ~ Err(Box::new(std::io::Error::other( [INFO] [stdout] 176 ~ format!("JSON-RPC error: {}", error.message), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:192:50 [INFO] [stdout] | [INFO] [stdout] 192 | ... Err(Box::new(std::io::Error::new( [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 193 | | ... std::io::ErrorKind::Other, [INFO] [stdout] 194 | | ... format!("Failed to parse result: {}", e), [INFO] [stdout] 195 | | ... )) as Box), [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 192 ~ Err(Box::new(std::io::Error::other( [INFO] [stdout] 193 ~ format!("Failed to parse result: {}", e), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:203:42 [INFO] [stdout] | [INFO] [stdout] 203 | ... Err(Box::new(std::io::Error::new( [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 204 | | ... std::io::ErrorKind::Other, [INFO] [stdout] 205 | | ... "Missing result and error in response", [INFO] [stdout] 206 | | ... )) as Box), [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 203 ~ Err(Box::new(std::io::Error::other( [INFO] [stdout] 204 ~ "Missing result and error in response", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:214:38 [INFO] [stdout] | [INFO] [stdout] 214 | Err(Box::new(std::io::Error::new( [INFO] [stdout] | ______________________________________^ [INFO] [stdout] 215 | | std::io::ErrorKind::Other, [INFO] [stdout] 216 | | "No response found for request", [INFO] [stdout] 217 | | )) as Box), [INFO] [stdout] | |_________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 214 ~ Err(Box::new(std::io::Error::other( [INFO] [stdout] 215 ~ "No response found for request", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:268:34 [INFO] [stdout] | [INFO] [stdout] 268 | Err(Box::new(std::io::Error::new( [INFO] [stdout] | __________________________________^ [INFO] [stdout] 269 | | std::io::ErrorKind::Other, [INFO] [stdout] 270 | | "Missing required fields in parsed response", [INFO] [stdout] 271 | | ))) [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 268 ~ Err(Box::new(std::io::Error::other( [INFO] [stdout] 269 ~ "Missing required fields in parsed response", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:276:30 [INFO] [stdout] | [INFO] [stdout] 276 | Err(Box::new(std::io::Error::new( [INFO] [stdout] | ______________________________^ [INFO] [stdout] 277 | | std::io::ErrorKind::Other, [INFO] [stdout] 278 | | format!("Failed to parse string as JSON: {}", e), [INFO] [stdout] 279 | | ))) [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 276 ~ Err(Box::new(std::io::Error::other( [INFO] [stdout] 277 ~ format!("Failed to parse string as JSON: {}", e), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:312:26 [INFO] [stdout] | [INFO] [stdout] 312 | Err(Box::new(std::io::Error::new( [INFO] [stdout] | __________________________^ [INFO] [stdout] 313 | | std::io::ErrorKind::Other, [INFO] [stdout] 314 | | "Missing required fields in object response", [INFO] [stdout] 315 | | ))) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 312 ~ Err(Box::new(std::io::Error::other( [INFO] [stdout] 313 ~ "Missing required fields in object response", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/dob_decoder.rs:319:22 [INFO] [stdout] | [INFO] [stdout] 319 | Err(Box::new(std::io::Error::new( [INFO] [stdout] | ______________________^ [INFO] [stdout] 320 | | std::io::ErrorKind::Other, [INFO] [stdout] 321 | | "Unexpected value type in response", [INFO] [stdout] 322 | | ))) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 319 ~ Err(Box::new(std::io::Error::other( [INFO] [stdout] 320 ~ "Unexpected value type in response", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 11s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: sqlx-postgres v0.7.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "4e4128e827ad489d6054600ec37fb515d24a004f6351c820092be7e261575b37", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4e4128e827ad489d6054600ec37fb515d24a004f6351c820092be7e261575b37", kill_on_drop: false }` [INFO] [stdout] 4e4128e827ad489d6054600ec37fb515d24a004f6351c820092be7e261575b37