[INFO] cloning repository https://github.com/lucianocasalunga/libernet-relay [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lucianocasalunga/libernet-relay" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucianocasalunga%2Flibernet-relay", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucianocasalunga%2Flibernet-relay'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e598cbe4d251516f3f1e865a6d455e6fb2bdea7c [INFO] linting lucianocasalunga/libernet-relay against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flucianocasalunga%2Flibernet-relay" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-1-tc1/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/lucianocasalunga/libernet-relay [INFO] finished tweaking git repo https://github.com/lucianocasalunga/libernet-relay [INFO] tweaked toml for git repo https://github.com/lucianocasalunga/libernet-relay written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/lucianocasalunga/libernet-relay 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/lucianocasalunga/libernet-relay 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 prost v0.11.9 [INFO] [stderr] Downloaded prost-derive v0.11.9 [INFO] [stderr] Downloaded uuid v1.14.0 [INFO] [stderr] Downloaded tonic-build v0.8.4 [INFO] [stderr] Downloaded scheduled-thread-pool v0.2.7 [INFO] [stderr] Downloaded prost-types v0.11.9 [INFO] [stderr] Downloaded hex_lit v0.1.1 [INFO] [stderr] Downloaded dlv-list v0.2.3 [INFO] [stderr] Downloaded tikv-jemallocator v0.5.4 [INFO] [stderr] Downloaded checked_int_cast v1.0.0 [INFO] [stderr] Downloaded r2d2_sqlite v0.19.0 [INFO] [stderr] Downloaded bitcoin-private v0.1.0 [INFO] [stderr] Downloaded ordered-multimap v0.3.1 [INFO] [stderr] Downloaded console-api v0.5.0 [INFO] [stderr] Downloaded bitcoin_hashes v0.12.0 [INFO] [stderr] Downloaded cln-rpc v0.1.9 [INFO] [stderr] Downloaded config v0.12.0 [INFO] [stderr] Downloaded tonic v0.9.2 [INFO] [stderr] Downloaded raw-cpuid v10.7.0 [INFO] [stderr] Downloaded governor v0.4.2 [INFO] [stderr] Downloaded indicatif v0.17.11 [INFO] [stderr] Downloaded rusqlite v0.26.3 [INFO] [stderr] Downloaded secp256k1 v0.24.3 [INFO] [stderr] Downloaded qrcode v0.12.0 [INFO] [stderr] Downloaded webpki v0.22.4 [INFO] [stderr] Downloaded nostr v0.18.1 [INFO] [stderr] Downloaded ahash v0.4.8 [INFO] [stderr] Downloaded console-subscriber v0.1.10 [INFO] [stderr] Downloaded rustls v0.20.9 [INFO] [stderr] Downloaded bitcoin_hashes v0.10.0 [INFO] [stderr] Downloaded async-trait v0.1.86 [INFO] [stderr] Downloaded bitcoin v0.30.2 [INFO] [stderr] Downloaded pin-project v1.1.9 [INFO] [stderr] Downloaded tonic v0.8.3 [INFO] [stderr] Downloaded console v0.15.10 [INFO] [stderr] Downloaded bitcoin_hashes v0.11.0 [INFO] [stderr] Downloaded prost-build v0.11.9 [INFO] [stderr] Downloaded pin-project-internal v1.1.9 [INFO] [stderr] Downloaded r2d2 v0.8.10 [INFO] [stderr] Downloaded tokio-tungstenite v0.17.2 [INFO] [stderr] Downloaded bitcoin v0.29.2 [INFO] [stderr] Downloaded redox_syscall v0.5.9 [INFO] [stderr] Downloaded prettyplease v0.1.25 [INFO] [stderr] Downloaded rust-ini v0.17.0 [INFO] [stderr] Downloaded parse_duration v2.1.1 [INFO] [stderr] Downloaded num v0.2.1 [INFO] [stderr] Downloaded bech32 v0.9.1 [INFO] [stderr] Downloaded secp256k1-sys v0.6.1 [INFO] [stderr] Downloaded libsqlite3-sys v0.23.2 [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] 13fc93cdc7f7e6b07c2289454da847dea06e1229ebc5302d381fc634eb3b0910 [INFO] running `Command { std: "docker" "start" "-a" "13fc93cdc7f7e6b07c2289454da847dea06e1229ebc5302d381fc634eb3b0910", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "13fc93cdc7f7e6b07c2289454da847dea06e1229ebc5302d381fc634eb3b0910", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "13fc93cdc7f7e6b07c2289454da847dea06e1229ebc5302d381fc634eb3b0910", kill_on_drop: false }` [INFO] [stdout] 13fc93cdc7f7e6b07c2289454da847dea06e1229ebc5302d381fc634eb3b0910 [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] cf34f966d80cfd765cca4c3effb790b6386cf6b543414768b0ff33f2675fa78b [INFO] running `Command { std: "docker" "start" "-a" "cf34f966d80cfd765cca4c3effb790b6386cf6b543414768b0ff33f2675fa78b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.17 [INFO] [stderr] Compiling libc v0.2.170 [INFO] [stderr] Compiling cc v1.2.15 [INFO] [stderr] Checking once_cell v1.20.3 [INFO] [stderr] Checking smallvec v1.14.0 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking bytes v1.10.0 [INFO] [stderr] Compiling serde v1.0.218 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking itoa v1.0.14 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking value-bag v1.10.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Checking log v0.4.26 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking socket2 v0.5.8 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling anyhow v1.0.96 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking hashbrown v0.15.2 [INFO] [stderr] Checking equivalent v1.0.2 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling ring v0.17.11 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Checking indexmap v2.7.1 [INFO] [stderr] Checking writeable v0.5.5 [INFO] [stderr] Checking litemap v0.7.4 [INFO] [stderr] Checking untrusted v0.9.0 [INFO] [stderr] Compiling httparse v1.10.0 [INFO] [stderr] Compiling rustversion v1.0.19 [INFO] [stderr] Compiling ahash v0.7.8 [INFO] [stderr] Compiling rustls v0.20.9 [INFO] [stderr] Checking icu_locid_transform_data v1.5.0 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking concurrent-queue v2.5.0 [INFO] [stderr] Compiling autocfg v0.1.8 [INFO] [stderr] Checking icu_properties_data v1.5.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Checking parking v2.2.1 [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Compiling thiserror v2.0.11 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Compiling getrandom v0.3.1 [INFO] [stderr] Checking utf16_iter v1.0.5 [INFO] [stderr] Checking icu_normalizer_data v1.5.0 [INFO] [stderr] Checking write16 v1.0.0 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling serde_json v1.0.139 [INFO] [stderr] Checking event-listener v5.4.0 [INFO] [stderr] Compiling axum-core v0.3.4 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking ryu v1.0.19 [INFO] [stderr] Compiling linux-raw-sys v0.4.15 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling bitflags v2.8.0 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Compiling webpki v0.22.4 [INFO] [stderr] Compiling prost-derive v0.11.9 [INFO] [stderr] Compiling tokio v1.43.0 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking event-listener-strategy v0.5.3 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Compiling axum v0.6.20 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Compiling instant v0.1.13 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling bitcoin-private v0.1.0 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling serde_derive v1.0.218 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking zerofrom v0.1.5 [INFO] [stderr] Checking yoke v0.7.5 [INFO] [stderr] Checking zerovec v0.10.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking tinystr v0.7.6 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking icu_locid v1.5.0 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking icu_collections v1.5.0 [INFO] [stderr] Checking icu_provider v1.5.0 [INFO] [stderr] Checking icu_locid_transform v1.5.0 [INFO] [stderr] Compiling thiserror-impl v2.0.11 [INFO] [stderr] Checking icu_properties v1.5.1 [INFO] [stderr] Compiling pin-project-internal v1.1.9 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Compiling async-trait v0.1.86 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Checking allocator-api2 v0.2.21 [INFO] [stderr] Checking pin-project v1.1.9 [INFO] [stderr] Compiling prettyplease v0.1.25 [INFO] [stderr] Checking icu_normalizer v1.5.0 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling pest v2.7.15 [INFO] [stderr] Checking idna_adapter v1.2.0 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking tokio-util v0.7.13 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking tokio-io-timeout v1.2.0 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Compiling prost v0.11.9 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Compiling tinyvec v1.8.1 [INFO] [stderr] Checking futures-lite v2.6.0 [INFO] [stderr] Compiling secp256k1-sys v0.6.1 [INFO] [stderr] Compiling secp256k1-sys v0.8.1 [INFO] [stderr] Checking block-padding v0.3.3 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Checking matchit v0.7.3 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Checking regex-syntax v0.6.29 [INFO] [stderr] Checking sync_wrapper v0.1.2 [INFO] [stderr] Compiling home v0.5.11 [INFO] [stderr] Compiling which v4.4.2 [INFO] [stderr] Compiling petgraph v0.6.5 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Compiling libsqlite3-sys v0.23.2 [INFO] [stderr] Compiling tokio-rustls v0.23.4 [INFO] [stderr] Compiling tempfile v3.17.1 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking inout v0.1.4 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling prost-types v0.11.9 [INFO] [stderr] Compiling pest_meta v2.7.15 [INFO] [stderr] Checking hyper-timeout v0.4.1 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Checking rustls-pemfile v1.0.4 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling dirs-sys v0.3.7 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Checking bech32 v0.9.1 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Checking async-task v4.7.1 [INFO] [stderr] Compiling unicode-properties v0.1.3 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling hex_lit v0.1.1 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Checking ahash v0.4.8 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling multimap v0.8.3 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling iana-time-zone v0.1.61 [INFO] [stderr] Compiling prost-build v0.11.9 [INFO] [stderr] Checking hashbrown v0.9.1 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling chrono v0.4.39 [INFO] [stderr] Checking polling v3.7.4 [INFO] [stderr] Checking piper v0.2.4 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling crc v3.2.1 [INFO] [stderr] Checking miniz_oxide v0.8.5 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Compiling dirs v4.0.0 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling pest_generator v2.7.15 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Checking bitcoin_hashes v0.12.0 [INFO] [stderr] Compiling futures-intrusive v0.4.2 [INFO] [stderr] Checking matchers v0.1.0 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Compiling sqlx-rt v0.6.3 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling atoi v1.0.0 [INFO] [stderr] Checking bitcoin_hashes v0.11.0 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking dlv-list v0.2.3 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Checking async-lock v3.4.0 [INFO] [stderr] Checking async-channel v2.3.1 [INFO] [stderr] Compiling webpki-roots v0.22.6 [INFO] [stderr] Checking rustls-webpki v0.101.7 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling secp256k1-sys v0.4.2 [INFO] [stderr] Compiling tikv-jemalloc-sys v0.5.4+5.3.0-patched [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling protobuf v2.28.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling whoami v1.5.2 [INFO] [stderr] Compiling bitcoin v0.30.2 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling portable-atomic v1.10.0 [INFO] [stderr] Checking secp256k1 v0.24.3 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Checking tracing-subscriber v0.3.19 [INFO] [stderr] Compiling sqlx-core v0.6.3 [INFO] [stderr] Checking flate2 v1.0.35 [INFO] [stderr] Checking async-io v2.4.0 [INFO] [stderr] Checking hashlink v0.7.0 [INFO] [stderr] Checking blocking v1.6.1 [INFO] [stderr] Checking ordered-multimap v0.3.1 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking secp256k1 v0.27.0 [INFO] [stderr] Compiling pest_derive v2.7.15 [INFO] [stderr] Checking tonic v0.9.2 [INFO] [stderr] Compiling tonic-build v0.8.4 [INFO] [stderr] Checking async-executor v1.13.1 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking sha-1 v0.10.1 [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking raw-cpuid v10.7.0 [INFO] [stderr] Checking scheduled-thread-pool v0.2.7 [INFO] [stderr] Checking crossbeam-channel v0.5.14 [INFO] [stderr] Checking unicode-width v0.2.0 [INFO] [stderr] Checking fallible-streaming-iterator v0.1.9 [INFO] [stderr] Checking linked-hash-map v0.5.6 [INFO] [stderr] Checking openssl-probe v0.1.6 [INFO] [stderr] Compiling prometheus v0.13.4 [INFO] [stderr] Checking fallible-iterator v0.2.0 [INFO] [stderr] Checking num-conv v0.1.0 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Checking clap_builder v4.5.30 [INFO] [stderr] Checking time v0.3.37 [INFO] [stderr] Compiling clap_derive v4.5.28 [INFO] [stderr] Checking quanta v0.9.3 [INFO] [stderr] Compiling const_format_proc_macros v0.2.34 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Checking rustls-native-certs v0.6.3 [INFO] [stderr] Checking console v0.15.10 [INFO] [stderr] Checking tungstenite v0.17.3 [INFO] [stderr] Checking r2d2 v0.8.10 [INFO] [stderr] Checking console-api v0.5.0 [INFO] [stderr] Compiling nostr-rs-relay v0.9.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Checking num v0.2.1 [INFO] [stderr] Checking async-global-executor v2.4.1 [INFO] [stderr] Checking json5 v0.4.1 [INFO] [stderr] Checking rust-ini v0.17.0 [INFO] [stderr] Checking tokio-rustls v0.24.1 [INFO] [stderr] Checking hdrhistogram v7.5.4 [INFO] [stderr] Checking bitcoin v0.29.2 [INFO] [stderr] Checking aes v0.8.4 [INFO] [stderr] Checking cbc v0.1.2 [INFO] [stderr] Checking async-channel v1.9.0 [INFO] [stderr] Checking dashmap v5.5.3 [INFO] [stderr] Checking toml v0.5.11 [INFO] [stderr] Checking ron v0.7.1 [INFO] [stderr] Checking rusqlite v0.26.3 [INFO] [stderr] Checking bitcoin_hashes v0.10.0 [INFO] [stderr] Checking tracing-futures v0.2.5 [INFO] [stderr] Checking kv-log-macro v1.0.7 [INFO] [stderr] Checking nonzero_ext v0.3.0 [INFO] [stderr] Compiling sqlx-macros v0.6.3 [INFO] [stderr] Checking no-std-compat v0.4.1 [INFO] [stderr] Checking checked_int_cast v1.0.0 [INFO] [stderr] Checking futures-timer v3.0.3 [INFO] [stderr] Checking pathdiff v0.2.3 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking governor v0.4.2 [INFO] [stderr] Checking console-subscriber v0.1.10 [INFO] [stderr] Checking config v0.12.0 [INFO] [stderr] Checking indicatif v0.17.11 [INFO] [stderr] Checking qrcode v0.12.0 [INFO] [stderr] Checking async-std v1.13.0 [INFO] [stderr] Checking uuid v1.14.0 [INFO] [stderr] Checking tonic v0.8.3 [INFO] [stderr] Checking nostr v0.18.1 [INFO] [stderr] Checking r2d2_sqlite v0.19.0 [INFO] [stderr] Checking hyper-rustls v0.24.2 [INFO] [stderr] Checking cln-rpc v0.1.9 [INFO] [stderr] Checking parse_duration v2.1.1 [INFO] [stderr] Checking clap v4.5.30 [INFO] [stderr] Checking tokio-tungstenite v0.17.2 [INFO] [stderr] Checking sqlx v0.6.3 [INFO] [stderr] Checking tracing-appender v0.2.3 [INFO] [stderr] Checking const_format v0.2.34 [INFO] [stderr] Checking secp256k1 v0.21.3 [INFO] [stderr] Checking tikv-jemallocator v0.5.4 [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/repo/postgres.rs:810:59 [INFO] [stdout] | [INFO] [stdout] 810 | let has_plain_values = val.iter().any(|v| (v.len() % 2 != 0 || !is_lower_hex(v))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 810 - let has_plain_values = val.iter().any(|v| (v.len() % 2 != 0 || !is_lower_hex(v))); [INFO] [stdout] 810 + let has_plain_values = val.iter().any(|v| v.len() % 2 != 0 || !is_lower_hex(v) ); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/repo/postgres.rs:810:59 [INFO] [stdout] | [INFO] [stdout] 810 | let has_plain_values = val.iter().any(|v| (v.len() % 2 != 0 || !is_lower_hex(v))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 810 - let has_plain_values = val.iter().any(|v| (v.len() % 2 != 0 || !is_lower_hex(v))); [INFO] [stdout] 810 + let has_plain_values = val.iter().any(|v| v.len() % 2 != 0 || !is_lower_hex(v) ); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/conn.rs:106:53 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn subscribe(&mut self, s: Subscription) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `#[warn(clippy::result_large_err)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/conn.rs:159:71 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn authenticate(&mut self, event: &Event, relay_url: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `validation` after checking its variant with `is_some` [INFO] [stdout] --> src/db.rs:293:19 [INFO] [stdout] | [INFO] [stdout] 292 | if nip05_enabled && validation.is_some() { [INFO] [stdout] | -------------------- the check is happening here [INFO] [stdout] 293 | match validation.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: using `contains()` instead of `iter().any()` is more efficient [INFO] [stdout] --> src/delegation.rs:175:24 [INFO] [stdout] | [INFO] [stdout] 175 | return self.values.iter().any(|&x| resolved_field == x); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.values.contains(&resolved_field)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_contains [INFO] [stdout] = note: `#[warn(clippy::manual_contains)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/delegation.rs:231:25 [INFO] [stdout] | [INFO] [stdout] 231 | fn parse_empty() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/delegation.rs:241:35 [INFO] [stdout] | [INFO] [stdout] 241 | fn test_kind_field_parse() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/delegation.rs:248:41 [INFO] [stdout] | [INFO] [stdout] 248 | fn test_created_at_field_parse() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/delegation.rs:262:37 [INFO] [stdout] | [INFO] [stdout] 262 | fn parse_kind_equals_empty() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/delegation.rs:277:41 [INFO] [stdout] | [INFO] [stdout] 277 | fn parse_kind_equals_singleval() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/delegation.rs:292:40 [INFO] [stdout] | [INFO] [stdout] 292 | fn parse_kind_equals_multival() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/delegation.rs:307:36 [INFO] [stdout] | [INFO] [stdout] 307 | fn parse_multi_conditions() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event.rs:336:31 [INFO] [stdout] | [INFO] [stdout] 336 | pub fn validate(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event.rs:455:29 [INFO] [stdout] | [INFO] [stdout] 455 | fn event_serialize() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event.rs:480:34 [INFO] [stdout] | [INFO] [stdout] 480 | fn event_tags_serialize() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event.rs:501:31 [INFO] [stdout] | [INFO] [stdout] 501 | fn event_deserialize() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/nip05.rs:112:85 [INFO] [stdout] | [INFO] [stdout] 112 | fn body_contains_user(username: &str, address: &str, bytes: &hyper::body::Bytes) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/nip05.rs:133:10 [INFO] [stdout] | [INFO] [stdout] 133 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/repo/postgres.rs:382:20 [INFO] [stdout] | [INFO] [stdout] 382 | if row_count % 100 == 0 && abandon_query_rx.try_recv().is_ok() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: replace with: `row_count.is_multiple_of(100)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] = note: `#[warn(clippy::manual_is_multiple_of)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `f.since` after checking its variant with `is_some` [INFO] [stdout] --> src/repo/postgres.rs:847:42 [INFO] [stdout] | [INFO] [stdout] 840 | if f.since.is_some() { [INFO] [stdout] | -------------------- help: try: `if let Some() = f.since` [INFO] [stdout] ... [INFO] [stdout] 847 | .push_bind(Utc.timestamp_opt(f.since.unwrap() as i64, 0).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [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 `f.until` after checking its variant with `is_some` [INFO] [stdout] --> src/repo/postgres.rs:858:42 [INFO] [stdout] | [INFO] [stdout] 851 | if f.until.is_some() { [INFO] [stdout] | -------------------- help: try: `if let Some() = f.until` [INFO] [stdout] ... [INFO] [stdout] 858 | .push_bind(Utc.timestamp_opt(f.until.unwrap() as i64, 0).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [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: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite.rs:105:69 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn persist_event(conn: &mut PooledConnection, e: &Event) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/repo/sqlite.rs:270:30 [INFO] [stdout] | [INFO] [stdout] 270 | task::spawn_blocking(move || upgrade_db(&mut conn)).await? [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/repo/sqlite.rs:282:48 [INFO] [stdout] | [INFO] [stdout] 282 | let event_count = task::spawn_blocking(move || { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 283 | | let mut conn = pool.get()?; [INFO] [stdout] ... | [INFO] [stdout] 308 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/repo/sqlite.rs:342:30 [INFO] [stdout] | [INFO] [stdout] 342 | task::spawn_blocking(move || { [INFO] [stdout] | ______________________________^ [INFO] [stdout] 343 | | { [INFO] [stdout] 344 | | // if we are waiting on a checkpoint, stop until it is complete [INFO] [stdout] 345 | | let _x = self.checkpoint_in_progress.blocking_lock(); [INFO] [stdout] ... | [INFO] [stdout] 540 | | ok [INFO] [stdout] 541 | | }); [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/repo/sqlite.rs:428:28 [INFO] [stdout] | [INFO] [stdout] 428 | if row_count % 100 == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: replace with: `row_count.is_multiple_of(100)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/repo/sqlite.rs:446:28 [INFO] [stdout] | [INFO] [stdout] 446 | if row_count % 100 == 0 && abandon_query_rx.try_recv().is_ok() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: replace with: `row_count.is_multiple_of(100)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/repo/sqlite.rs:563:37 [INFO] [stdout] | [INFO] [stdout] 563 | tokio::task::spawn_blocking(move || { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 564 | | let tx = conn.transaction()?; [INFO] [stdout] ... | [INFO] [stdout] 583 | | ok [INFO] [stdout] 584 | | }).await? [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/repo/sqlite.rs:591:37 [INFO] [stdout] | [INFO] [stdout] 591 | tokio::task::spawn_blocking(move || { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 592 | | // add some jitter to the verification to prevent everything from stacking up together. [INFO] [stdout] 593 | | let verif_time = now_jitter(600); [INFO] [stdout] 594 | | let tx = conn.transaction()?; [INFO] [stdout] ... | [INFO] [stdout] 604 | | ok [INFO] [stdout] 605 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/repo/sqlite.rs:613:37 [INFO] [stdout] | [INFO] [stdout] 613 | tokio::task::spawn_blocking(move || { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 614 | | // add some jitter to the verification to prevent everything from stacking up together. [INFO] [stdout] 615 | | let fail_time = now_jitter(600); [INFO] [stdout] 616 | | let tx = conn.transaction()?; [INFO] [stdout] ... | [INFO] [stdout] 624 | | ok [INFO] [stdout] 625 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/repo/sqlite.rs:633:37 [INFO] [stdout] | [INFO] [stdout] 633 | tokio::task::spawn_blocking(move || { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 634 | | let tx = conn.transaction()?; [INFO] [stdout] 635 | | { [INFO] [stdout] 636 | | let query = "DELETE FROM user_verification WHERE id=?;"; [INFO] [stdout] ... | [INFO] [stdout] 642 | | ok [INFO] [stdout] 643 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/repo/sqlite.rs:651:37 [INFO] [stdout] | [INFO] [stdout] 651 | ... tokio::task::spawn_blocking(move || { [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 652 | | ... let tx = conn.transaction()?; [INFO] [stdout] 653 | | ... let query = "SELECT v.id, v.name, e.event_hash, e.created_at, v.verified_at, v.failed_at, v.failure_count FROM user_ver... [INFO] [stdout] 654 | | ... let mut stmt = tx.prepare_cached(query)?; [INFO] [stdout] ... | [INFO] [stdout] 680 | | ... }) [INFO] [stdout] 681 | | ... }).await? [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/repo/sqlite.rs:687:37 [INFO] [stdout] | [INFO] [stdout] 687 | ... tokio::task::spawn_blocking(move || { [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 688 | | ... let tx = conn.transaction()?; [INFO] [stdout] 689 | | ... let query = "SELECT v.id, v.name, e.event_hash, e.author, e.created_at, v.verified_at, v.failed_at, v.failure_count FRO... [INFO] [stdout] 690 | | ... let mut stmt = tx.prepare_cached(query)?; [INFO] [stdout] ... | [INFO] [stdout] 719 | | ... Ok(vr) [INFO] [stdout] 720 | | ... }).await? [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/repo/sqlite.rs:728:54 [INFO] [stdout] | [INFO] [stdout] 728 | let ins_count = tokio::task::spawn_blocking(move || { [INFO] [stdout] | ______________________________________________________^ [INFO] [stdout] 729 | | let tx = conn.transaction()?; [INFO] [stdout] 730 | | let ins_count: u64; [INFO] [stdout] ... | [INFO] [stdout] 739 | | ok [INFO] [stdout] 740 | | }).await??; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/repo/sqlite.rs:754:37 [INFO] [stdout] | [INFO] [stdout] 754 | ... tokio::task::spawn_blocking(move || { [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 755 | | ... let tx = conn.transaction()?; [INFO] [stdout] 756 | | ... { [INFO] [stdout] 757 | | ... let query = "UPDATE account SET is_admitted = TRUE, tos_accepted_at = strftime('%s','now'), balance = balance - ?1... [INFO] [stdout] ... | [INFO] [stdout] 763 | | ... ok [INFO] [stdout] 764 | | ... }) [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/repo/sqlite.rs:773:37 [INFO] [stdout] | [INFO] [stdout] 773 | tokio::task::spawn_blocking(move || { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 774 | | let tx = conn.transaction()?; [INFO] [stdout] 775 | | let query = "SELECT is_admitted, balance FROM account WHERE pubkey = ?1;"; [INFO] [stdout] 776 | | let mut stmt = tx.prepare_cached(query)?; [INFO] [stdout] ... | [INFO] [stdout] 783 | | Ok(fields) [INFO] [stdout] 784 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/repo/sqlite.rs:798:37 [INFO] [stdout] | [INFO] [stdout] 798 | tokio::task::spawn_blocking(move || { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 799 | | let tx = conn.transaction()?; [INFO] [stdout] 800 | | { [INFO] [stdout] 801 | | let query = if positive { [INFO] [stdout] ... | [INFO] [stdout] 811 | | ok [INFO] [stdout] 812 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/repo/sqlite.rs:821:37 [INFO] [stdout] | [INFO] [stdout] 821 | ... tokio::task::spawn_blocking(move || { [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 822 | | ... let tx = conn.transaction()?; [INFO] [stdout] 823 | | ... { [INFO] [stdout] 824 | | ... let query = "INSERT INTO invoice (pubkey, payment_hash, amount, status, description, created_at, invoice) VALUES (?... [INFO] [stdout] ... | [INFO] [stdout] 830 | | ... ok [INFO] [stdout] 831 | | ... }).await??; [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/repo/sqlite.rs:841:37 [INFO] [stdout] | [INFO] [stdout] 841 | tokio::task::spawn_blocking(move || { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 842 | | let tx = conn.transaction()?; [INFO] [stdout] 843 | | let pubkey: String; [INFO] [stdout] ... | [INFO] [stdout] 881 | | ok [INFO] [stdout] 882 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `f.since` after checking its variant with `is_some` [INFO] [stdout] --> src/repo/sqlite.rs:1049:49 [INFO] [stdout] | [INFO] [stdout] 1048 | let since_clause = if f.since.is_some() { [INFO] [stdout] | -------------------- help: try: `if let Some() = f.since` [INFO] [stdout] 1049 | format!("AND created_at >= {}", f.since.unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [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 `f.until` after checking its variant with `is_some` [INFO] [stdout] --> src/repo/sqlite.rs:1055:49 [INFO] [stdout] | [INFO] [stdout] 1054 | let until_clause = if f.until.is_some() { [INFO] [stdout] | -------------------- help: try: `if let Some() = f.until` [INFO] [stdout] 1055 | format!("AND created_at <= {}", f.until.unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [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 `f.since` after checking its variant with `is_some` [INFO] [stdout] --> src/repo/sqlite.rs:1073:58 [INFO] [stdout] | [INFO] [stdout] 1072 | if f.since.is_some() { [INFO] [stdout] | -------------------- help: try: `if let Some() = f.since` [INFO] [stdout] 1073 | let created_clause = format!("created_at >= {}", f.since.unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [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 `f.until` after checking its variant with `is_some` [INFO] [stdout] --> src/repo/sqlite.rs:1078:56 [INFO] [stdout] | [INFO] [stdout] 1077 | if f.until.is_some() { [INFO] [stdout] | -------------------- help: try: `if let Some() = f.until` [INFO] [stdout] 1078 | let until_clause = format!("created_at <= {}", f.until.unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [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: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/repo/sqlite.rs:1200:67 [INFO] [stdout] | [INFO] [stdout] 1200 | let exp_res = tokio::task::spawn_blocking(move || { [INFO] [stdout] | ___________________________________________________________________^ [INFO] [stdout] 1201 | | delete_expired(&mut conn) [INFO] [stdout] 1202 | | }).await; [INFO] [stdout] | |_________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite.rs:1223:55 [INFO] [stdout] | [INFO] [stdout] 1223 | pub fn delete_expired(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite.rs:1292:54 [INFO] [stdout] | [INFO] [stdout] 1292 | pub fn checkpoint_db(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:133:50 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn curr_db_version(conn: &mut Connection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:140:49 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn db_event_count(conn: &mut Connection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:147:47 [INFO] [stdout] | [INFO] [stdout] 147 | pub fn db_tag_count(conn: &mut Connection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:170:51 [INFO] [stdout] | [INFO] [stdout] 170 | pub fn upgrade_db(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:274:53 [INFO] [stdout] | [INFO] [stdout] 274 | pub fn rebuild_tags(conn: &mut PooledConnection) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:330:47 [INFO] [stdout] | [INFO] [stdout] 330 | fn mig_1_to_2(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:349:47 [INFO] [stdout] | [INFO] [stdout] 349 | fn mig_2_to_3(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:397:47 [INFO] [stdout] | [INFO] [stdout] 397 | fn mig_3_to_4(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:426:47 [INFO] [stdout] | [INFO] [stdout] 426 | fn mig_4_to_5(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/conn.rs:106:53 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn subscribe(&mut self, s: Subscription) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `#[warn(clippy::result_large_err)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:445:47 [INFO] [stdout] | [INFO] [stdout] 445 | fn mig_5_to_6(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:498:47 [INFO] [stdout] | [INFO] [stdout] 498 | fn mig_6_to_7(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:517:47 [INFO] [stdout] | [INFO] [stdout] 517 | fn mig_7_to_8(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/conn.rs:159:71 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn authenticate(&mut self, event: &Event, relay_url: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:538:47 [INFO] [stdout] | [INFO] [stdout] 538 | fn mig_8_to_9(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:558:48 [INFO] [stdout] | [INFO] [stdout] 558 | fn mig_9_to_10(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:577:49 [INFO] [stdout] | [INFO] [stdout] 577 | fn mig_10_to_11(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `validation` after checking its variant with `is_some` [INFO] [stdout] --> src/db.rs:293:19 [INFO] [stdout] | [INFO] [stdout] 292 | if nip05_enabled && validation.is_some() { [INFO] [stdout] | -------------------- the check is happening here [INFO] [stdout] 293 | match validation.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: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:598:49 [INFO] [stdout] | [INFO] [stdout] 598 | fn mig_11_to_12(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:633:49 [INFO] [stdout] | [INFO] [stdout] 633 | fn mig_12_to_13(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:653:49 [INFO] [stdout] | [INFO] [stdout] 653 | fn mig_13_to_14(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:673:49 [INFO] [stdout] | [INFO] [stdout] 673 | fn mig_14_to_15(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:704:49 [INFO] [stdout] | [INFO] [stdout] 704 | fn mig_15_to_16(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:777:49 [INFO] [stdout] | [INFO] [stdout] 777 | fn mig_16_to_17(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:796:49 [INFO] [stdout] | [INFO] [stdout] 796 | fn mig_17_to_18(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `map_or` can be simplified [INFO] [stdout] --> src/subscription.rs:298:9 [INFO] [stdout] | [INFO] [stdout] 298 | / self.ids [INFO] [stdout] 299 | | .as_ref() [INFO] [stdout] 300 | | .map_or(true, |vs| prefix_match(vs, &event.id)) [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_none_or` instead [INFO] [stdout] | [INFO] [stdout] 300 - .map_or(true, |vs| prefix_match(vs, &event.id)) [INFO] [stdout] 300 + .is_none_or(|vs| prefix_match(vs, &event.id)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `map_or` can be simplified [INFO] [stdout] --> src/subscription.rs:304:9 [INFO] [stdout] | [INFO] [stdout] 304 | / self.authors [INFO] [stdout] 305 | | .as_ref() [INFO] [stdout] 306 | | .map_or(true, |vs| prefix_match(vs, &event.pubkey)) [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] help: use `is_none_or` instead [INFO] [stdout] | [INFO] [stdout] 306 - .map_or(true, |vs| prefix_match(vs, &event.pubkey)) [INFO] [stdout] 306 + .is_none_or(|vs| prefix_match(vs, &event.pubkey)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `map_or` can be simplified [INFO] [stdout] --> src/subscription.rs:311:13 [INFO] [stdout] | [INFO] [stdout] 311 | / self.authors [INFO] [stdout] 312 | | .as_ref() [INFO] [stdout] 313 | | .map_or(true, |vs| prefix_match(vs, delegated_pubkey)) [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] help: use `is_none_or` instead [INFO] [stdout] | [INFO] [stdout] 313 - .map_or(true, |vs| prefix_match(vs, delegated_pubkey)) [INFO] [stdout] 313 + .is_none_or(|vs| prefix_match(vs, delegated_pubkey)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `map_or` can be simplified [INFO] [stdout] --> src/subscription.rs:337:9 [INFO] [stdout] | [INFO] [stdout] 337 | self.kinds.as_ref().map_or(true, |ks| ks.contains(&kind)) [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] help: use `is_none_or` instead [INFO] [stdout] | [INFO] [stdout] 337 - self.kinds.as_ref().map_or(true, |ks| ks.contains(&kind)) [INFO] [stdout] 337 + self.kinds.as_ref().is_none_or(|ks| ks.contains(&kind)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `contains()` instead of `iter().any()` is more efficient [INFO] [stdout] --> src/delegation.rs:175:24 [INFO] [stdout] | [INFO] [stdout] 175 | return self.values.iter().any(|&x| resolved_field == x); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.values.contains(&resolved_field)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_contains [INFO] [stdout] = note: `#[warn(clippy::manual_contains)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `map_or` can be simplified [INFO] [stdout] --> src/subscription.rs:345:16 [INFO] [stdout] | [INFO] [stdout] 345 | && self.since.map_or(true, |t| event.created_at >= t) [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] help: use `is_none_or` instead [INFO] [stdout] | [INFO] [stdout] 345 - && self.since.map_or(true, |t| event.created_at >= t) [INFO] [stdout] 345 + && self.since.is_none_or(|t| event.created_at >= t) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `map_or` can be simplified [INFO] [stdout] --> src/subscription.rs:346:16 [INFO] [stdout] | [INFO] [stdout] 346 | && self.until.map_or(true, |t| event.created_at <= t) [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] help: use `is_none_or` instead [INFO] [stdout] | [INFO] [stdout] 346 - && self.until.map_or(true, |t| event.created_at <= t) [INFO] [stdout] 346 + && self.until.is_none_or(|t| event.created_at <= t) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/subscription.rs:359:33 [INFO] [stdout] | [INFO] [stdout] 359 | fn empty_request_parse() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/subscription.rs:406:25 [INFO] [stdout] | [INFO] [stdout] 406 | fn dupe_filter() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/subscription.rs:414:30 [INFO] [stdout] | [INFO] [stdout] 414 | fn dupe_filter_many() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/subscription.rs:423:27 [INFO] [stdout] | [INFO] [stdout] 423 | fn author_filter() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/subscription.rs:437:42 [INFO] [stdout] | [INFO] [stdout] 437 | fn interest_author_prefix_match() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/subscription.rs:456:38 [INFO] [stdout] | [INFO] [stdout] 456 | fn interest_id_prefix_match() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/subscription.rs:475:33 [INFO] [stdout] | [INFO] [stdout] 475 | fn interest_id_nomatch() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/subscription.rs:494:28 [INFO] [stdout] | [INFO] [stdout] 494 | fn interest_until() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/subscription.rs:514:28 [INFO] [stdout] | [INFO] [stdout] 514 | fn interest_range() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/subscription.rs:540:34 [INFO] [stdout] | [INFO] [stdout] 540 | fn interest_time_and_id() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/subscription.rs:560:35 [INFO] [stdout] | [INFO] [stdout] 560 | fn interest_time_and_id2() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/subscription.rs:579:25 [INFO] [stdout] | [INFO] [stdout] 579 | fn interest_id() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/subscription.rs:598:28 [INFO] [stdout] | [INFO] [stdout] 598 | fn authors_single() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/subscription.rs:617:34 [INFO] [stdout] | [INFO] [stdout] 617 | fn authors_multi_pubkey() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/subscription.rs:636:36 [INFO] [stdout] | [INFO] [stdout] 636 | fn authors_multi_no_match() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/subscription.rs:655:30 [INFO] [stdout] | [INFO] [stdout] 655 | fn serialize_filter() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/subscription.rs:669:13 [INFO] [stdout] | [INFO] [stdout] 669 | assert!(false, "filter could not be parsed"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] = note: `#[warn(clippy::assertions_on_constants)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/subscription.rs:675:24 [INFO] [stdout] | [INFO] [stdout] 675 | fn is_scraper() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/event.rs:336:31 [INFO] [stdout] | [INFO] [stdout] 336 | pub fn validate(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/payment/cln_rest.rs:33:40 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn new(settings: &Settings) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/payment/mod.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/server.rs:421:25 [INFO] [stdout] | [INFO] [stdout] 421 | / if m_pubkey == pubkey.clone() { [INFO] [stdout] 422 | | invoice_info = Some(m_invoice_info); [INFO] [stdout] 423 | | break; [INFO] [stdout] 424 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] | [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] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 420 ~ PaymentMessage::Invoice(m_pubkey, m_invoice_info) [INFO] [stdout] 421 ~ if m_pubkey == pubkey.clone() => { [INFO] [stdout] 422 | invoice_info = Some(m_invoice_info); [INFO] [stdout] 423 | break; [INFO] [stdout] 424 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/server.rs:427:25 [INFO] [stdout] | [INFO] [stdout] 427 | / if m_pubkey == pubkey.clone() { [INFO] [stdout] 428 | | return Ok(Response::builder() [INFO] [stdout] 429 | | .status(StatusCode::OK) [INFO] [stdout] 430 | | .body(Body::from("Already admitted")) [INFO] [stdout] 431 | | .unwrap()); [INFO] [stdout] 432 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 426 ~ PaymentMessage::AccountAdmitted(m_pubkey) [INFO] [stdout] 427 ~ if m_pubkey == pubkey.clone() => { [INFO] [stdout] 428 | return Ok(Response::builder() [INFO] [stdout] ... [INFO] [stdout] 431 | .unwrap()); [INFO] [stdout] 432 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/nip05.rs:112:85 [INFO] [stdout] | [INFO] [stdout] 112 | fn body_contains_user(username: &str, address: &str, bytes: &hyper::body::Bytes) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/nip05.rs:133:10 [INFO] [stdout] | [INFO] [stdout] 133 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/server.rs:773:30 [INFO] [stdout] | [INFO] [stdout] 773 | fn file_bytes(path: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/server.rs:783:76 [INFO] [stdout] | [INFO] [stdout] 783 | pub fn start_server(settings: &Settings, shutdown_rx: MpscReceiver<()>) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/server.rs:1021:59 [INFO] [stdout] | [INFO] [stdout] 1021 | fn convert_to_msg(msg: &str, max_bytes: Option) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/repo/postgres.rs:382:20 [INFO] [stdout] | [INFO] [stdout] 382 | if row_count % 100 == 0 && abandon_query_rx.try_recv().is_ok() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: replace with: `row_count.is_multiple_of(100)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] = note: `#[warn(clippy::manual_is_multiple_of)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `f.since` after checking its variant with `is_some` [INFO] [stdout] --> src/repo/postgres.rs:847:42 [INFO] [stdout] | [INFO] [stdout] 840 | if f.since.is_some() { [INFO] [stdout] | -------------------- help: try: `if let Some() = f.since` [INFO] [stdout] ... [INFO] [stdout] 847 | .push_bind(Utc.timestamp_opt(f.since.unwrap() as i64, 0).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [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 `f.until` after checking its variant with `is_some` [INFO] [stdout] --> src/repo/postgres.rs:858:42 [INFO] [stdout] | [INFO] [stdout] 851 | if f.until.is_some() { [INFO] [stdout] | -------------------- help: try: `if let Some() = f.until` [INFO] [stdout] ... [INFO] [stdout] 858 | .push_bind(Utc.timestamp_opt(f.until.unwrap() as i64, 0).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [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: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/repo/postgres.rs:715:25 [INFO] [stdout] | [INFO] [stdout] 715 | fn query_from_filter(f: &ReqFilter) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 715 | fn query_from_filter(f: &ReqFilter) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite.rs:105:69 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn persist_event(conn: &mut PooledConnection, e: &Event) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/repo/sqlite.rs:270:30 [INFO] [stdout] | [INFO] [stdout] 270 | task::spawn_blocking(move || upgrade_db(&mut conn)).await? [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/repo/sqlite.rs:282:48 [INFO] [stdout] | [INFO] [stdout] 282 | let event_count = task::spawn_blocking(move || { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 283 | | let mut conn = pool.get()?; [INFO] [stdout] ... | [INFO] [stdout] 308 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/repo/sqlite.rs:342:30 [INFO] [stdout] | [INFO] [stdout] 342 | task::spawn_blocking(move || { [INFO] [stdout] | ______________________________^ [INFO] [stdout] 343 | | { [INFO] [stdout] 344 | | // if we are waiting on a checkpoint, stop until it is complete [INFO] [stdout] 345 | | let _x = self.checkpoint_in_progress.blocking_lock(); [INFO] [stdout] ... | [INFO] [stdout] 540 | | ok [INFO] [stdout] 541 | | }); [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/repo/sqlite.rs:428:28 [INFO] [stdout] | [INFO] [stdout] 428 | if row_count % 100 == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: replace with: `row_count.is_multiple_of(100)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/repo/sqlite.rs:446:28 [INFO] [stdout] | [INFO] [stdout] 446 | if row_count % 100 == 0 && abandon_query_rx.try_recv().is_ok() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: replace with: `row_count.is_multiple_of(100)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/repo/sqlite.rs:563:37 [INFO] [stdout] | [INFO] [stdout] 563 | tokio::task::spawn_blocking(move || { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 564 | | let tx = conn.transaction()?; [INFO] [stdout] ... | [INFO] [stdout] 583 | | ok [INFO] [stdout] 584 | | }).await? [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/repo/sqlite.rs:591:37 [INFO] [stdout] | [INFO] [stdout] 591 | tokio::task::spawn_blocking(move || { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 592 | | // add some jitter to the verification to prevent everything from stacking up together. [INFO] [stdout] 593 | | let verif_time = now_jitter(600); [INFO] [stdout] 594 | | let tx = conn.transaction()?; [INFO] [stdout] ... | [INFO] [stdout] 604 | | ok [INFO] [stdout] 605 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/repo/sqlite.rs:613:37 [INFO] [stdout] | [INFO] [stdout] 613 | tokio::task::spawn_blocking(move || { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 614 | | // add some jitter to the verification to prevent everything from stacking up together. [INFO] [stdout] 615 | | let fail_time = now_jitter(600); [INFO] [stdout] 616 | | let tx = conn.transaction()?; [INFO] [stdout] ... | [INFO] [stdout] 624 | | ok [INFO] [stdout] 625 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/repo/sqlite.rs:633:37 [INFO] [stdout] | [INFO] [stdout] 633 | tokio::task::spawn_blocking(move || { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 634 | | let tx = conn.transaction()?; [INFO] [stdout] 635 | | { [INFO] [stdout] 636 | | let query = "DELETE FROM user_verification WHERE id=?;"; [INFO] [stdout] ... | [INFO] [stdout] 642 | | ok [INFO] [stdout] 643 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/repo/sqlite.rs:651:37 [INFO] [stdout] | [INFO] [stdout] 651 | ... tokio::task::spawn_blocking(move || { [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 652 | | ... let tx = conn.transaction()?; [INFO] [stdout] 653 | | ... let query = "SELECT v.id, v.name, e.event_hash, e.created_at, v.verified_at, v.failed_at, v.failure_count FROM user_ver... [INFO] [stdout] 654 | | ... let mut stmt = tx.prepare_cached(query)?; [INFO] [stdout] ... | [INFO] [stdout] 680 | | ... }) [INFO] [stdout] 681 | | ... }).await? [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/repo/sqlite.rs:687:37 [INFO] [stdout] | [INFO] [stdout] 687 | ... tokio::task::spawn_blocking(move || { [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 688 | | ... let tx = conn.transaction()?; [INFO] [stdout] 689 | | ... let query = "SELECT v.id, v.name, e.event_hash, e.author, e.created_at, v.verified_at, v.failed_at, v.failure_count FRO... [INFO] [stdout] 690 | | ... let mut stmt = tx.prepare_cached(query)?; [INFO] [stdout] ... | [INFO] [stdout] 719 | | ... Ok(vr) [INFO] [stdout] 720 | | ... }).await? [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/repo/sqlite.rs:728:54 [INFO] [stdout] | [INFO] [stdout] 728 | let ins_count = tokio::task::spawn_blocking(move || { [INFO] [stdout] | ______________________________________________________^ [INFO] [stdout] 729 | | let tx = conn.transaction()?; [INFO] [stdout] 730 | | let ins_count: u64; [INFO] [stdout] ... | [INFO] [stdout] 739 | | ok [INFO] [stdout] 740 | | }).await??; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/repo/sqlite.rs:754:37 [INFO] [stdout] | [INFO] [stdout] 754 | ... tokio::task::spawn_blocking(move || { [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 755 | | ... let tx = conn.transaction()?; [INFO] [stdout] 756 | | ... { [INFO] [stdout] 757 | | ... let query = "UPDATE account SET is_admitted = TRUE, tos_accepted_at = strftime('%s','now'), balance = balance - ?1... [INFO] [stdout] ... | [INFO] [stdout] 763 | | ... ok [INFO] [stdout] 764 | | ... }) [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/repo/sqlite.rs:773:37 [INFO] [stdout] | [INFO] [stdout] 773 | tokio::task::spawn_blocking(move || { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 774 | | let tx = conn.transaction()?; [INFO] [stdout] 775 | | let query = "SELECT is_admitted, balance FROM account WHERE pubkey = ?1;"; [INFO] [stdout] 776 | | let mut stmt = tx.prepare_cached(query)?; [INFO] [stdout] ... | [INFO] [stdout] 783 | | Ok(fields) [INFO] [stdout] 784 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/repo/sqlite.rs:798:37 [INFO] [stdout] | [INFO] [stdout] 798 | tokio::task::spawn_blocking(move || { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 799 | | let tx = conn.transaction()?; [INFO] [stdout] 800 | | { [INFO] [stdout] 801 | | let query = if positive { [INFO] [stdout] ... | [INFO] [stdout] 811 | | ok [INFO] [stdout] 812 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/repo/sqlite.rs:821:37 [INFO] [stdout] | [INFO] [stdout] 821 | ... tokio::task::spawn_blocking(move || { [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 822 | | ... let tx = conn.transaction()?; [INFO] [stdout] 823 | | ... { [INFO] [stdout] 824 | | ... let query = "INSERT INTO invoice (pubkey, payment_hash, amount, status, description, created_at, invoice) VALUES (?... [INFO] [stdout] ... | [INFO] [stdout] 830 | | ... ok [INFO] [stdout] 831 | | ... }).await??; [INFO] [stdout] | |_______^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/repo/sqlite.rs:841:37 [INFO] [stdout] | [INFO] [stdout] 841 | tokio::task::spawn_blocking(move || { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 842 | | let tx = conn.transaction()?; [INFO] [stdout] 843 | | let pubkey: String; [INFO] [stdout] ... | [INFO] [stdout] 881 | | ok [INFO] [stdout] 882 | | }) [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `f.since` after checking its variant with `is_some` [INFO] [stdout] --> src/repo/sqlite.rs:1049:49 [INFO] [stdout] | [INFO] [stdout] 1048 | let since_clause = if f.since.is_some() { [INFO] [stdout] | -------------------- help: try: `if let Some() = f.since` [INFO] [stdout] 1049 | format!("AND created_at >= {}", f.since.unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [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 `f.until` after checking its variant with `is_some` [INFO] [stdout] --> src/repo/sqlite.rs:1055:49 [INFO] [stdout] | [INFO] [stdout] 1054 | let until_clause = if f.until.is_some() { [INFO] [stdout] | -------------------- help: try: `if let Some() = f.until` [INFO] [stdout] 1055 | format!("AND created_at <= {}", f.until.unwrap()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [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 `f.since` after checking its variant with `is_some` [INFO] [stdout] --> src/repo/sqlite.rs:1073:58 [INFO] [stdout] | [INFO] [stdout] 1072 | if f.since.is_some() { [INFO] [stdout] | -------------------- help: try: `if let Some() = f.since` [INFO] [stdout] 1073 | let created_clause = format!("created_at >= {}", f.since.unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [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 `f.until` after checking its variant with `is_some` [INFO] [stdout] --> src/repo/sqlite.rs:1078:56 [INFO] [stdout] | [INFO] [stdout] 1077 | if f.until.is_some() { [INFO] [stdout] | -------------------- help: try: `if let Some() = f.until` [INFO] [stdout] 1078 | let until_clause = format!("created_at <= {}", f.until.unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [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: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/repo/sqlite.rs:1200:67 [INFO] [stdout] | [INFO] [stdout] 1200 | let exp_res = tokio::task::spawn_blocking(move || { [INFO] [stdout] | ___________________________________________________________________^ [INFO] [stdout] 1201 | | delete_expired(&mut conn) [INFO] [stdout] 1202 | | }).await; [INFO] [stdout] | |_________________________^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite.rs:1223:55 [INFO] [stdout] | [INFO] [stdout] 1223 | pub fn delete_expired(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite.rs:1292:54 [INFO] [stdout] | [INFO] [stdout] 1292 | pub fn checkpoint_db(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:133:50 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn curr_db_version(conn: &mut Connection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:140:49 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn db_event_count(conn: &mut Connection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:147:47 [INFO] [stdout] | [INFO] [stdout] 147 | pub fn db_tag_count(conn: &mut Connection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:170:51 [INFO] [stdout] | [INFO] [stdout] 170 | pub fn upgrade_db(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:274:53 [INFO] [stdout] | [INFO] [stdout] 274 | pub fn rebuild_tags(conn: &mut PooledConnection) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:330:47 [INFO] [stdout] | [INFO] [stdout] 330 | fn mig_1_to_2(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:349:47 [INFO] [stdout] | [INFO] [stdout] 349 | fn mig_2_to_3(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:397:47 [INFO] [stdout] | [INFO] [stdout] 397 | fn mig_3_to_4(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:426:47 [INFO] [stdout] | [INFO] [stdout] 426 | fn mig_4_to_5(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:445:47 [INFO] [stdout] | [INFO] [stdout] 445 | fn mig_5_to_6(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:498:47 [INFO] [stdout] | [INFO] [stdout] 498 | fn mig_6_to_7(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:517:47 [INFO] [stdout] | [INFO] [stdout] 517 | fn mig_7_to_8(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:538:47 [INFO] [stdout] | [INFO] [stdout] 538 | fn mig_8_to_9(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:558:48 [INFO] [stdout] | [INFO] [stdout] 558 | fn mig_9_to_10(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:577:49 [INFO] [stdout] | [INFO] [stdout] 577 | fn mig_10_to_11(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:598:49 [INFO] [stdout] | [INFO] [stdout] 598 | fn mig_11_to_12(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:633:49 [INFO] [stdout] | [INFO] [stdout] 633 | fn mig_12_to_13(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:653:49 [INFO] [stdout] | [INFO] [stdout] 653 | fn mig_13_to_14(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:673:49 [INFO] [stdout] | [INFO] [stdout] 673 | fn mig_14_to_15(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:704:49 [INFO] [stdout] | [INFO] [stdout] 704 | fn mig_15_to_16(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:777:49 [INFO] [stdout] | [INFO] [stdout] 777 | fn mig_16_to_17(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/repo/sqlite_migration.rs:796:49 [INFO] [stdout] | [INFO] [stdout] 796 | fn mig_17_to_18(conn: &mut PooledConnection) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `map_or` can be simplified [INFO] [stdout] --> src/subscription.rs:298:9 [INFO] [stdout] | [INFO] [stdout] 298 | / self.ids [INFO] [stdout] 299 | | .as_ref() [INFO] [stdout] 300 | | .map_or(true, |vs| prefix_match(vs, &event.id)) [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_none_or` instead [INFO] [stdout] | [INFO] [stdout] 300 - .map_or(true, |vs| prefix_match(vs, &event.id)) [INFO] [stdout] 300 + .is_none_or(|vs| prefix_match(vs, &event.id)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `map_or` can be simplified [INFO] [stdout] --> src/subscription.rs:304:9 [INFO] [stdout] | [INFO] [stdout] 304 | / self.authors [INFO] [stdout] 305 | | .as_ref() [INFO] [stdout] 306 | | .map_or(true, |vs| prefix_match(vs, &event.pubkey)) [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] help: use `is_none_or` instead [INFO] [stdout] | [INFO] [stdout] 306 - .map_or(true, |vs| prefix_match(vs, &event.pubkey)) [INFO] [stdout] 306 + .is_none_or(|vs| prefix_match(vs, &event.pubkey)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `map_or` can be simplified [INFO] [stdout] --> src/subscription.rs:311:13 [INFO] [stdout] | [INFO] [stdout] 311 | / self.authors [INFO] [stdout] 312 | | .as_ref() [INFO] [stdout] 313 | | .map_or(true, |vs| prefix_match(vs, delegated_pubkey)) [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] help: use `is_none_or` instead [INFO] [stdout] | [INFO] [stdout] 313 - .map_or(true, |vs| prefix_match(vs, delegated_pubkey)) [INFO] [stdout] 313 + .is_none_or(|vs| prefix_match(vs, delegated_pubkey)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `map_or` can be simplified [INFO] [stdout] --> src/subscription.rs:337:9 [INFO] [stdout] | [INFO] [stdout] 337 | self.kinds.as_ref().map_or(true, |ks| ks.contains(&kind)) [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] help: use `is_none_or` instead [INFO] [stdout] | [INFO] [stdout] 337 - self.kinds.as_ref().map_or(true, |ks| ks.contains(&kind)) [INFO] [stdout] 337 + self.kinds.as_ref().is_none_or(|ks| ks.contains(&kind)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `map_or` can be simplified [INFO] [stdout] --> src/subscription.rs:345:16 [INFO] [stdout] | [INFO] [stdout] 345 | && self.since.map_or(true, |t| event.created_at >= t) [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] help: use `is_none_or` instead [INFO] [stdout] | [INFO] [stdout] 345 - && self.since.map_or(true, |t| event.created_at >= t) [INFO] [stdout] 345 + && self.since.is_none_or(|t| event.created_at >= t) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `map_or` can be simplified [INFO] [stdout] --> src/subscription.rs:346:16 [INFO] [stdout] | [INFO] [stdout] 346 | && self.until.map_or(true, |t| event.created_at <= t) [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] help: use `is_none_or` instead [INFO] [stdout] | [INFO] [stdout] 346 - && self.until.map_or(true, |t| event.created_at <= t) [INFO] [stdout] 346 + && self.until.is_none_or(|t| event.created_at <= t) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/payment/cln_rest.rs:33:40 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn new(settings: &Settings) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/payment/mod.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/server.rs:421:25 [INFO] [stdout] | [INFO] [stdout] 421 | / if m_pubkey == pubkey.clone() { [INFO] [stdout] 422 | | invoice_info = Some(m_invoice_info); [INFO] [stdout] 423 | | break; [INFO] [stdout] 424 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] | [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] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 420 ~ PaymentMessage::Invoice(m_pubkey, m_invoice_info) [INFO] [stdout] 421 ~ if m_pubkey == pubkey.clone() => { [INFO] [stdout] 422 | invoice_info = Some(m_invoice_info); [INFO] [stdout] 423 | break; [INFO] [stdout] 424 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/server.rs:427:25 [INFO] [stdout] | [INFO] [stdout] 427 | / if m_pubkey == pubkey.clone() { [INFO] [stdout] 428 | | return Ok(Response::builder() [INFO] [stdout] 429 | | .status(StatusCode::OK) [INFO] [stdout] 430 | | .body(Body::from("Already admitted")) [INFO] [stdout] 431 | | .unwrap()); [INFO] [stdout] 432 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 426 ~ PaymentMessage::AccountAdmitted(m_pubkey) [INFO] [stdout] 427 ~ if m_pubkey == pubkey.clone() => { [INFO] [stdout] 428 | return Ok(Response::builder() [INFO] [stdout] ... [INFO] [stdout] 431 | .unwrap()); [INFO] [stdout] 432 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/server.rs:773:30 [INFO] [stdout] | [INFO] [stdout] 773 | fn file_bytes(path: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/server.rs:783:76 [INFO] [stdout] | [INFO] [stdout] 783 | pub fn start_server(settings: &Settings, shutdown_rx: MpscReceiver<()>) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/server.rs:1021:59 [INFO] [stdout] | [INFO] [stdout] 1021 | fn convert_to_msg(msg: &str, max_bytes: Option) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | WebsocketError(WsError), [INFO] [stdout] | ----------------------- the variant `WebsocketError` contains at least 136 bytes [INFO] [stdout] ... [INFO] [stdout] 70 | TonicError(tonic::Status), [INFO] [stdout] | ------------------------- the largest variant contains at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/repo/postgres.rs:715:25 [INFO] [stdout] | [INFO] [stdout] 715 | fn query_from_filter(f: &ReqFilter) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 715 | fn query_from_filter(f: &ReqFilter) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `publish_test` is never used [INFO] [stdout] --> tests/integration_test.rs:53:10 [INFO] [stdout] | [INFO] [stdout] 53 | async fn publish_test() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/bin/bulkloader.rs:18:18 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn main() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `nostr_rs_relay::error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `#[warn(clippy::result_large_err)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/bin/bulkloader.rs:50:47 [INFO] [stdout] | [INFO] [stdout] 50 | let _stdin_reader_handler = thread::spawn(move || { [INFO] [stdout] | _______________________________________________^ [INFO] [stdout] 51 | | let stdin = io::stdin(); [INFO] [stdout] 52 | | for readline in stdin.lines() { [INFO] [stdout] 53 | | if let Ok(line) = readline { [INFO] [stdout] ... | [INFO] [stdout] 75 | | ok [INFO] [stdout] 76 | | }); [INFO] [stdout] | |_____^ the `Err`-variant is at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `nostr_rs_relay::error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/bin/bulkloader.rs:128:47 [INFO] [stdout] | [INFO] [stdout] 128 | fn write_event(tx: &Transaction, e: Event) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ the `Err`-variant is at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `nostr_rs_relay::error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/bin/bulkloader.rs:18:18 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn main() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ the `Err`-variant is at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `nostr_rs_relay::error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `#[warn(clippy::result_large_err)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this closure is very large [INFO] [stdout] --> src/bin/bulkloader.rs:50:47 [INFO] [stdout] | [INFO] [stdout] 50 | let _stdin_reader_handler = thread::spawn(move || { [INFO] [stdout] | _______________________________________________^ [INFO] [stdout] 51 | | let stdin = io::stdin(); [INFO] [stdout] 52 | | for readline in stdin.lines() { [INFO] [stdout] 53 | | if let Ok(line) = readline { [INFO] [stdout] ... | [INFO] [stdout] 75 | | ok [INFO] [stdout] 76 | | }); [INFO] [stdout] | |_____^ the `Err`-variant is at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `nostr_rs_relay::error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/bin/bulkloader.rs:128:47 [INFO] [stdout] | [INFO] [stdout] 128 | fn write_event(tx: &Transaction, e: Event) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ the `Err`-variant is at least 176 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `nostr_rs_relay::error::Error`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7m 18s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: sqlx-core v0.6.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "cf34f966d80cfd765cca4c3effb790b6386cf6b543414768b0ff33f2675fa78b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cf34f966d80cfd765cca4c3effb790b6386cf6b543414768b0ff33f2675fa78b", kill_on_drop: false }` [INFO] [stdout] cf34f966d80cfd765cca4c3effb790b6386cf6b543414768b0ff33f2675fa78b