[INFO] cloning repository https://github.com/Niolgam/waterswamp [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Niolgam/waterswamp" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNiolgam%2Fwaterswamp", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNiolgam%2Fwaterswamp'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8a16d456ab11141e8fba8da315068dcffff0f9d5 [INFO] checking Niolgam/waterswamp against try#9961e55b3687a6d0b2bab4af0e5e81494b09be81 for pr-139087-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNiolgam%2Fwaterswamp" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Niolgam/waterswamp [INFO] finished tweaking git repo https://github.com/Niolgam/waterswamp [INFO] tweaked toml for git repo https://github.com/Niolgam/waterswamp written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Niolgam/waterswamp on toolchain 9961e55b3687a6d0b2bab4af0e5e81494b09be81 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9961e55b3687a6d0b2bab4af0e5e81494b09be81" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Niolgam/waterswamp 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" "+9961e55b3687a6d0b2bab4af0e5e81494b09be81" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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" "+9961e55b3687a6d0b2bab4af0e5e81494b09be81" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] becb4cda33a71401bcc96dff5d10168bd7c446c302c81cceaf211900e4b28f1f [INFO] running `Command { std: "docker" "start" "-a" "becb4cda33a71401bcc96dff5d10168bd7c446c302c81cceaf211900e4b28f1f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "becb4cda33a71401bcc96dff5d10168bd7c446c302c81cceaf211900e4b28f1f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "becb4cda33a71401bcc96dff5d10168bd7c446c302c81cceaf211900e4b28f1f", kill_on_drop: false }` [INFO] [stdout] becb4cda33a71401bcc96dff5d10168bd7c446c302c81cceaf211900e4b28f1f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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" "+9961e55b3687a6d0b2bab4af0e5e81494b09be81" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ecbd5a15bfb3dbf272bc25827e507a56a704d3b9b3bd35856f0e8f35ace05db5 [INFO] running `Command { std: "docker" "start" "-a" "ecbd5a15bfb3dbf272bc25827e507a56a704d3b9b3bd35856f0e8f35ace05db5", kill_on_drop: false }` [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling libc v0.2.177 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Checking signal-hook-registry v1.4.7 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking mio v1.1.0 [INFO] [stderr] Checking tracing-core v0.1.35 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking crypto-common v0.1.7 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling bytes v1.11.0 [INFO] [stderr] Checking tracing v0.1.43 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling writeable v0.6.2 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Compiling cc v1.2.48 [INFO] [stderr] Compiling socket2 v0.6.1 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling litemap v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking bitflags v2.10.0 [INFO] [stderr] Checking indexmap v2.12.1 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking serde_json v1.0.145 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Compiling aho-corasick v1.1.4 [INFO] [stderr] Compiling zerocopy v0.8.31 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling regex-syntax v0.8.8 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Compiling icu_properties_data v2.1.1 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Compiling icu_properties v2.1.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Checking regex-automata v0.4.13 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Checking tokio-util v0.7.17 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Checking hdrhistogram v7.5.4 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Compiling regex v1.12.2 [INFO] [stderr] Checking h2 v0.4.12 [INFO] [stderr] Checking chrono v0.4.42 [INFO] [stderr] Compiling uuid v1.18.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Checking serde_path_to_error v0.1.20 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Checking const-random v0.1.18 [INFO] [stderr] Checking concurrent-queue v2.5.0 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling rust_decimal v1.39.0 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Checking event-listener v5.4.1 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking axum-core v0.5.5 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking md-5 v0.10.6 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling crc v3.4.0 [INFO] [stderr] Checking hyper v1.8.1 [INFO] [stderr] Checking postgres-protocol v0.6.9 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Checking hashlink v0.10.0 [INFO] [stderr] Compiling unicode-normalization v0.1.25 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Checking hyper-util v0.1.18 [INFO] [stderr] Checking hkdf v0.12.4 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Checking matchit v0.8.4 [INFO] [stderr] Compiling unicode-properties v0.1.4 [INFO] [stderr] Checking postgres-types v0.2.11 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling zstd-sys v2.0.16+zstd.1.5.7 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Compiling home v0.5.12 [INFO] [stderr] Checking flate2 v1.1.5 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling utoipa-gen v5.4.0 [INFO] [stderr] Checking inout v0.1.4 [INFO] [stderr] Compiling sqlx-core v0.8.6 [INFO] [stderr] Checking axum v0.8.7 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Compiling cmake v0.1.54 [INFO] [stderr] Checking universal-hash v0.5.1 [INFO] [stderr] Compiling unicase v2.8.1 [INFO] [stderr] Checking polyval v0.6.2 [INFO] [stderr] Compiling aws-lc-sys v0.34.0 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling validator_derive v0.20.0 [INFO] [stderr] Checking ghash v0.5.1 [INFO] [stderr] Checking ctr v0.9.2 [INFO] [stderr] Checking aes v0.8.4 [INFO] [stderr] Checking validator v0.20.0 [INFO] [stderr] Checking aead v0.5.2 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling sqlx-postgres v0.8.6 [INFO] [stderr] Checking compression-core v0.4.31 [INFO] [stderr] Checking aes-gcm v0.10.3 [INFO] [stderr] Compiling derive_builder_core v0.20.2 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling aws-lc-rs v1.15.1 [INFO] [stderr] Checking bit-set v0.5.3 [INFO] [stderr] Compiling http v1.4.0 [INFO] [stderr] Compiling derive_builder_macro v0.20.2 [INFO] [stderr] Checking iri-string v0.7.9 [INFO] [stderr] Compiling zeroize v1.8.2 [INFO] [stderr] Checking http-range-header v0.4.2 [INFO] [stderr] Checking base64ct v1.8.0 [INFO] [stderr] Compiling rustls-pki-types v1.13.1 [INFO] [stderr] Checking password-hash v0.5.0 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Checking derive_builder v0.20.2 [INFO] [stderr] Checking fancy-regex v0.13.0 [INFO] [stderr] Checking simple_asn1 v0.6.3 [INFO] [stderr] Checking utoipa v5.4.0 [INFO] [stderr] Checking itertools v0.13.0 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking blake2 v0.10.6 [INFO] [stderr] Checking pem v3.0.6 [INFO] [stderr] Compiling object v0.32.2 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Compiling erased-serde v0.4.9 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Checking argon2 v0.5.3 [INFO] [stderr] Compiling sqlx-macros-core v0.8.6 [INFO] [stderr] Checking zxcvbn v3.1.0 [INFO] [stderr] Compiling pest v2.8.4 [INFO] [stderr] Compiling phf_generator v0.11.3 [INFO] [stderr] Checking pxfm v0.1.26 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling rustls v0.23.35 [INFO] [stderr] Compiling rustls-webpki v0.103.8 [INFO] [stderr] Checking png v0.18.0 [INFO] [stderr] Compiling pest_meta v2.8.4 [INFO] [stderr] Compiling phf_codegen v0.11.3 [INFO] [stderr] Compiling sqlx-macros v0.8.6 [INFO] [stderr] Compiling ar_archive_writer v0.2.0 [INFO] [stderr] Compiling phf v0.11.3 [INFO] [stderr] Compiling slog v2.8.2 [INFO] [stderr] Compiling parse-zoneinfo v0.3.1 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Checking moxcms v0.7.10 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling procfs v0.16.0 [INFO] [stderr] Compiling psm v0.1.28 [INFO] [stderr] Checking bytemuck v1.24.0 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Checking zstd v0.13.3 [INFO] [stderr] Checking sqlx v0.8.6 [INFO] [stderr] Compiling protobuf v2.28.0 [INFO] [stderr] Checking compression-codecs v0.4.33 [INFO] [stderr] Compiling chrono-tz-build v0.3.0 [INFO] [stderr] Checking domain v0.1.0 (/opt/rustwide/workdir/crates/domain) [INFO] [stderr] Checking async-compression v0.4.34 [INFO] [stderr] Compiling pest_generator v2.8.4 [INFO] [stderr] Checking tower-http v0.6.7 [INFO] [stderr] Checking procfs-core v0.16.0 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling stacker v0.1.22 [INFO] [stderr] Checking erased-serde v0.3.31 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Checking bstr v1.12.1 [INFO] [stderr] Compiling smartstring v1.0.1 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling zlib-rs v0.5.5 [INFO] [stderr] Compiling prometheus v0.13.4 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Checking qrcodegen v1.8.0 [INFO] [stderr] Checking image v0.25.9 [INFO] [stderr] Checking globset v0.4.18 [INFO] [stderr] Compiling tokio-rustls v0.26.4 [INFO] [stderr] Checking qrcodegen-image v1.5.0 [INFO] [stderr] Compiling pest_derive v2.8.4 [INFO] [stderr] Compiling chrono-tz v0.9.0 [INFO] [stderr] Checking crossbeam-deque v0.8.6 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Compiling webpki-roots v1.0.4 [INFO] [stderr] Checking dlv-list v0.5.2 [INFO] [stderr] Checking email_address v0.2.9 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Compiling bumpalo v3.19.0 [INFO] [stderr] Compiling slog-async v2.8.0 [INFO] [stderr] Checking base32 v0.5.1 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Checking urlencoding v2.1.3 [INFO] [stderr] Checking winnow v0.7.14 [INFO] [stderr] Compiling mini-moka v0.10.3 [INFO] [stderr] Compiling simd-adler32 v0.3.7 [INFO] [stderr] Checking tagptr v0.2.0 [INFO] [stderr] Compiling zopfli v0.8.3 [INFO] [stderr] Checking totp-rs v5.7.0 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling libz-rs-sys v0.5.5 [INFO] [stderr] Checking reqwest v0.12.24 [INFO] [stderr] Checking toml_parser v1.0.4 [INFO] [stderr] Checking ordered-multimap v0.7.3 [INFO] [stderr] Compiling hyper-rustls v0.27.7 [INFO] [stderr] Checking ignore v0.4.25 [INFO] [stderr] Checking dashmap v5.5.3 [INFO] [stderr] Checking thin-vec v0.2.14 [INFO] [stderr] Checking serde_spanned v1.0.3 [INFO] [stderr] Checking toml_datetime v0.7.3 [INFO] [stderr] Compiling rhai_codegen v3.1.0 [INFO] [stderr] Checking is-terminal v0.4.17 [INFO] [stderr] Checking fixedbitset v0.4.2 [INFO] [stderr] Compiling typetag v0.2.21 [INFO] [stderr] Checking triomphe v0.1.15 [INFO] [stderr] Checking unicode-ident v1.0.22 [INFO] [stderr] Checking term v1.2.0 [INFO] [stderr] Checking petgraph v0.6.5 [INFO] [stderr] Checking ron v0.12.0 [INFO] [stderr] Checking slog-term v2.9.2 [INFO] [stderr] Checking toml v0.9.8 [INFO] [stderr] Checking yaml-rust2 v0.10.4 [INFO] [stderr] Checking rhai v1.23.6 [INFO] [stderr] Checking globwalk v0.9.1 [INFO] [stderr] Checking humansize v2.1.3 [INFO] [stderr] Checking chumsky v0.9.3 [INFO] [stderr] Checking rust-ini v0.21.3 [INFO] [stderr] Compiling zip v3.0.0 [INFO] [stderr] Compiling rust-embed-utils v8.9.0 [INFO] [stderr] Checking json5 v0.4.1 [INFO] [stderr] Checking serde-untagged v0.1.9 [INFO] [stderr] Checking axum-core v0.4.5 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Checking hashlink v0.9.1 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking tracing-serde v0.2.0 [INFO] [stderr] Checking raw-cpuid v11.6.0 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking email-encoding v0.4.1 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling typetag-impl v0.2.21 [INFO] [stderr] Checking nom v8.0.0 [INFO] [stderr] Checking hostname v0.4.2 [INFO] [stderr] Checking inventory v0.3.21 [INFO] [stderr] Compiling utoipa-swagger-ui-vendored v0.1.2 [INFO] [stderr] Checking quoted_printable v0.5.1 [INFO] [stderr] Checking nu-ansi-term v0.50.3 [INFO] [stderr] Checking config v0.15.19 [INFO] [stderr] Compiling utoipa-swagger-ui v9.0.2 [INFO] [stderr] Checking tracing-subscriber v0.3.22 [INFO] [stderr] Checking quanta v0.12.6 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Checking axum v0.7.9 [INFO] [stderr] Checking num v0.4.3 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking tera v1.20.1 [INFO] [stderr] Compiling rust-embed-impl v8.9.0 [INFO] [stderr] Checking dashmap v6.1.0 [INFO] [stderr] Checking hyper-timeout v0.5.2 [INFO] [stderr] Checking event-listener-strategy v0.5.4 [INFO] [stderr] Compiling expect-json-macros v1.5.0 [INFO] [stderr] Checking web-time v1.1.0 [INFO] [stderr] Checking nonempty v0.7.0 [INFO] [stderr] Compiling moka v0.12.11 [INFO] [stderr] Checking forwarded-header-value v0.1.1 [INFO] [stderr] Checking expect-json v1.5.0 [INFO] [stderr] Checking governor v0.10.2 [INFO] [stderr] Checking tonic v0.14.2 [INFO] [stderr] Checking async-lock v3.4.1 [INFO] [stderr] Checking rust-embed v8.9.0 [INFO] [stderr] Checking lettre v0.11.19 [INFO] [stderr] Checking casbin v2.17.0 [INFO] [stderr] Checking reserve-port v2.3.0 [INFO] [stderr] Checking rust-multipart-rfc7578_2 v0.8.0 [INFO] [stderr] Checking bytesize v2.3.1 [INFO] [stderr] Checking axum-test v18.3.0 [INFO] [stderr] Checking tower-cookies v0.11.0 [INFO] [stderr] Checking tower_governor v0.8.0 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling mockall_derive v0.14.0 [INFO] [stderr] Compiling mockall v0.14.0 [INFO] [stderr] Checking predicates v3.1.3 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Checking utoipa-rapidoc v5.0.0 [INFO] [stderr] Checking utoipa-redoc v5.0.0 [INFO] [stderr] Checking tokio-test v0.4.4 [INFO] [stderr] Checking email_service v0.1.0 (/opt/rustwide/workdir/crates/email-service) [INFO] [stderr] Checking axum-casbin v1.3.0 [INFO] [stderr] Checking sqlx-adapter v1.8.0 [INFO] [stderr] Checking jsonwebtoken v10.2.0 [INFO] [stderr] Checking core_services v0.1.0 (/opt/rustwide/workdir/crates/core-services) [INFO] [stderr] Checking application v0.1.0 (/opt/rustwide/workdir/crates/application) [INFO] [stderr] Checking persistence v0.1.0 (/opt/rustwide/workdir/crates/persistence) [INFO] [stdout] warning: unused import: `domain::errors::RepositoryError` [INFO] [stdout] --> crates/application/src/services/organizational_service.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use domain::errors::RepositoryError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SiorgClient` [INFO] [stdout] --> crates/application/src/workers/siorg_sync_worker.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::external::{SiorgClient, SiorgSyncService}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> crates/application/src/workers/siorg_sync_worker.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `domain::errors::RepositoryError` [INFO] [stdout] --> crates/application/src/services/organizational_service.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use domain::errors::RepositoryError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SiorgClient` [INFO] [stdout] --> crates/application/src/workers/siorg_sync_worker.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::external::{SiorgClient, SiorgSyncService}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> crates/application/src/workers/siorg_sync_worker.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> crates/persistence/src/repositories/siorg_sync_repository.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | use tracing::{error, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Row` [INFO] [stdout] --> crates/persistence/src/repositories/vehicle_fine_repository.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 9 | use sqlx::{PgPool, Row}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> crates/persistence/src/repositories/siorg_sync_repository.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | use tracing::{error, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Row` [INFO] [stdout] --> crates/persistence/src/repositories/vehicle_fine_repository.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 9 | use sqlx::{PgPool, Row}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OrganizationalUnitTypeRepositoryPort` [INFO] [stdout] --> crates/application/src/workers/siorg_sync_worker.rs:6:39 [INFO] [stdout] | [INFO] [stdout] 6 | OrganizationalUnitRepositoryPort, OrganizationalUnitTypeRepositoryPort, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OrganizationalUnitRepositoryPort` [INFO] [stdout] --> crates/application/src/workers/siorg_sync_worker.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | OrganizationalUnitRepositoryPort, OrganizationalUnitTypeRepositoryPort, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OrganizationRepositoryPort` [INFO] [stdout] --> crates/application/src/workers/siorg_sync_worker.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | OrganizationRepositoryPort, OrganizationalUnitCategoryRepositoryPort, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OrganizationalUnitCategoryRepositoryPort` [INFO] [stdout] --> crates/application/src/workers/siorg_sync_worker.rs:5:33 [INFO] [stdout] | [INFO] [stdout] 5 | OrganizationRepositoryPort, OrganizationalUnitCategoryRepositoryPort, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `obj` [INFO] [stdout] --> crates/application/src/services/conflict_resolution_service.rs:437:21 [INFO] [stdout] | [INFO] [stdout] 437 | if let Some(obj) = merged.as_object_mut() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_obj` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Conflict` is never constructed [INFO] [stdout] --> crates/application/src/workers/siorg_sync_worker.rs:427:5 [INFO] [stdout] | [INFO] [stdout] 425 | enum ProcessingResult { [INFO] [stdout] | ---------------- variant in this enum [INFO] [stdout] 426 | Success, [INFO] [stdout] 427 | Conflict(serde_json::Value), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OrganizationalUnitTypeRepositoryPort` [INFO] [stdout] --> crates/application/src/workers/siorg_sync_worker.rs:6:39 [INFO] [stdout] | [INFO] [stdout] 6 | OrganizationalUnitRepositoryPort, OrganizationalUnitTypeRepositoryPort, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OrganizationalUnitRepositoryPort` [INFO] [stdout] --> crates/application/src/workers/siorg_sync_worker.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | OrganizationalUnitRepositoryPort, OrganizationalUnitTypeRepositoryPort, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OrganizationalUnitCategoryRepositoryPort` [INFO] [stdout] --> crates/application/src/workers/siorg_sync_worker.rs:5:33 [INFO] [stdout] | [INFO] [stdout] 5 | OrganizationRepositoryPort, OrganizationalUnitCategoryRepositoryPort, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OrganizationRepositoryPort` [INFO] [stdout] --> crates/application/src/workers/siorg_sync_worker.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | OrganizationRepositoryPort, OrganizationalUnitCategoryRepositoryPort, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `obj` [INFO] [stdout] --> crates/application/src/services/conflict_resolution_service.rs:437:21 [INFO] [stdout] | [INFO] [stdout] 437 | if let Some(obj) = merged.as_object_mut() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_obj` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `division_id` [INFO] [stdout] --> crates/persistence/src/repositories/catalog_repository.rs:1818:14 [INFO] [stdout] | [INFO] [stdout] 1818 | for (division_id, division_node) in divisions_map { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_division_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `division_id` [INFO] [stdout] --> crates/persistence/src/repositories/catalog_repository.rs:1818:14 [INFO] [stdout] | [INFO] [stdout] 1818 | for (division_id, division_node) in divisions_map { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_division_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Conflict` is never constructed [INFO] [stdout] --> crates/application/src/workers/siorg_sync_worker.rs:427:5 [INFO] [stdout] | [INFO] [stdout] 425 | enum ProcessingResult { [INFO] [stdout] | ---------------- variant in this enum [INFO] [stdout] 426 | Success, [INFO] [stdout] 427 | Conflict(serde_json::Value), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/persistence/src/repositories/organizational_repository.rs:1146:13 [INFO] [stdout] | [INFO] [stdout] 1146 | let mut nodes: Vec = all_units [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/persistence/src/repositories/organizational_repository.rs:1146:13 [INFO] [stdout] | [INFO] [stdout] 1146 | let mut nodes: Vec = all_units [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking waterswamp v0.1.0 (/opt/rustwide/workdir/apps/api-server) [INFO] [stderr] Checking siorg-worker v0.1.0 (/opt/rustwide/workdir/apps/siorg-worker) [INFO] [stdout] warning: unused imports: `Value` and `json` [INFO] [stdout] --> apps/api-server/src/api/admin/users/handlers.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | use serde_json::{json, Value}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `delete`, `patch`, and `put` [INFO] [stdout] --> apps/api-server/src/api/admin/warehouses/mod.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | routing::{delete, get, patch, post, put}, [INFO] [stdout] | ^^^^^^ ^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `domain::models::organizational::*` [INFO] [stdout] --> apps/api-server/src/api/organizational/contracts.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use domain::models::organizational::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> apps/api-server/src/api/organizational/stats_handlers.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Value` and `json` [INFO] [stdout] --> apps/api-server/src/api/admin/users/handlers.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | use serde_json::{json, Value}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `delete` [INFO] [stdout] --> apps/api-server/src/api/organizational/mod.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | use axum::{routing::{delete, get, post}, Router}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::Router` [INFO] [stdout] --> apps/api-server/src/api/mod.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use axum::Router; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::infra::state::AppState` [INFO] [stdout] --> apps/api-server/src/api/mod.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use crate::infra::state::AppState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `delete`, `patch`, and `put` [INFO] [stdout] --> apps/api-server/src/api/admin/warehouses/mod.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | routing::{delete, get, patch, post, put}, [INFO] [stdout] | ^^^^^^ ^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mw_authenticate` [INFO] [stdout] --> apps/api-server/src/middleware/mod.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | pub use auth::{mw_authenticate, mw_authorize, mw_session_authenticate}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `domain::models::organizational::*` [INFO] [stdout] --> apps/api-server/src/api/organizational/contracts.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use domain::models::organizational::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> apps/api-server/src/api/organizational/stats_handlers.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `delete` [INFO] [stdout] --> apps/api-server/src/api/organizational/mod.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | use axum::{routing::{delete, get, post}, Router}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::Router` [INFO] [stdout] --> apps/api-server/src/api/mod.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use axum::Router; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::infra::state::AppState` [INFO] [stdout] --> apps/api-server/src/api/mod.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use crate::infra::state::AppState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mw_authenticate` [INFO] [stdout] --> apps/api-server/src/middleware/mod.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | pub use auth::{mw_authenticate, mw_authorize, mw_session_authenticate}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `query` [INFO] [stdout] --> apps/api-server/src/api/organizational/handlers.rs:766:11 [INFO] [stdout] | [INFO] [stdout] 766 | Query(query): Query, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_query` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `query` [INFO] [stdout] --> apps/api-server/src/api/organizational/handlers.rs:766:11 [INFO] [stdout] | [INFO] [stdout] 766 | Query(query): Query, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_query` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mw_authenticate` is never used [INFO] [stdout] --> apps/api-server/src/middleware/auth.rs:16:14 [INFO] [stdout] | [INFO] [stdout] 16 | pub async fn mw_authenticate( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mw_authenticate` is never used [INFO] [stdout] --> apps/api-server/src/middleware/auth.rs:16:14 [INFO] [stdout] | [INFO] [stdout] 16 | pub async fn mw_authenticate( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `db_logs`, `admin_token`, `user_token`, and `field_encryption_key` are never read [INFO] [stdout] --> apps/api-server/tests/common.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct TestApp { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 22 | pub db_logs: PgPool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 23 | pub admin_token: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 24 | pub user_token: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 25 | pub email_service: Arc, [INFO] [stdout] 26 | pub field_encryption_key: [u8; 32], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `encrypt_field` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl TestApp { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 30 | /// Encrypts `plaintext` with the test app's field encryption key. [INFO] [stdout] 31 | pub fn encrypt_field(&self, plaintext: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_app_state` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:121:14 [INFO] [stdout] | [INFO] [stdout] 121 | pub async fn create_test_app_state() -> AppState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_api_auth_test_server` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:149:14 [INFO] [stdout] | [INFO] [stdout] 149 | pub async fn create_api_auth_test_server(state: AppState) -> TestServer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INIT` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | static INIT: Once = Once::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_test_env` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:177:8 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn init_test_env() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cleanup_test_users` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:186:14 [INFO] [stdout] | [INFO] [stdout] 186 | pub async fn cleanup_test_users(pool: &PgPool) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:197:14 [INFO] [stdout] | [INFO] [stdout] 197 | pub async fn create_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:233:14 [INFO] [stdout] | [INFO] [stdout] 233 | pub async fn register_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_reset_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:257:8 [INFO] [stdout] | [INFO] [stdout] 257 | pub fn generate_reset_token(user_id: Uuid) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_custom_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:261:8 [INFO] [stdout] | [INFO] [stdout] 261 | pub fn generate_custom_token( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_expired_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:283:8 [INFO] [stdout] | [INFO] [stdout] 283 | pub fn generate_expired_token(user_id: Uuid, token_type: TokenType) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `db_logs`, `user_token`, and `field_encryption_key` are never read [INFO] [stdout] --> apps/api-server/tests/common.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct TestApp { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 22 | pub db_logs: PgPool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 23 | pub admin_token: String, [INFO] [stdout] 24 | pub user_token: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 25 | pub email_service: Arc, [INFO] [stdout] 26 | pub field_encryption_key: [u8; 32], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `encrypt_field` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl TestApp { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 30 | /// Encrypts `plaintext` with the test app's field encryption key. [INFO] [stdout] 31 | pub fn encrypt_field(&self, plaintext: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_app_state` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:121:14 [INFO] [stdout] | [INFO] [stdout] 121 | pub async fn create_test_app_state() -> AppState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_api_auth_test_server` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:149:14 [INFO] [stdout] | [INFO] [stdout] 149 | pub async fn create_api_auth_test_server(state: AppState) -> TestServer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INIT` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | static INIT: Once = Once::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_test_env` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:177:8 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn init_test_env() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cleanup_test_users` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:186:14 [INFO] [stdout] | [INFO] [stdout] 186 | pub async fn cleanup_test_users(pool: &PgPool) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:197:14 [INFO] [stdout] | [INFO] [stdout] 197 | pub async fn create_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:233:14 [INFO] [stdout] | [INFO] [stdout] 233 | pub async fn register_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_reset_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:257:8 [INFO] [stdout] | [INFO] [stdout] 257 | pub fn generate_reset_token(user_id: Uuid) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_custom_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:261:8 [INFO] [stdout] | [INFO] [stdout] 261 | pub fn generate_custom_token( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_expired_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:283:8 [INFO] [stdout] | [INFO] [stdout] 283 | pub fn generate_expired_token(user_id: Uuid, token_type: TokenType) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_vehicle_with_deps` is never used [INFO] [stdout] --> apps/api-server/tests/fleet_tests.rs:80:10 [INFO] [stdout] | [INFO] [stdout] 80 | async fn create_vehicle_with_deps(app: &TestApp) -> (Value, String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `db_auth`, `db_logs`, `user_token`, `email_service`, and `field_encryption_key` are never read [INFO] [stdout] --> apps/api-server/tests/common.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct TestApp { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 20 | pub api: TestServer, [INFO] [stdout] 21 | pub db_auth: PgPool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 22 | pub db_logs: PgPool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 23 | pub admin_token: String, [INFO] [stdout] 24 | pub user_token: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 25 | pub email_service: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 26 | pub field_encryption_key: [u8; 32], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `encrypt_field` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl TestApp { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 30 | /// Encrypts `plaintext` with the test app's field encryption key. [INFO] [stdout] 31 | pub fn encrypt_field(&self, plaintext: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_app_state` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:121:14 [INFO] [stdout] | [INFO] [stdout] 121 | pub async fn create_test_app_state() -> AppState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_api_auth_test_server` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:149:14 [INFO] [stdout] | [INFO] [stdout] 149 | pub async fn create_api_auth_test_server(state: AppState) -> TestServer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INIT` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | static INIT: Once = Once::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_test_env` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:177:8 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn init_test_env() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cleanup_test_users` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:186:14 [INFO] [stdout] | [INFO] [stdout] 186 | pub async fn cleanup_test_users(pool: &PgPool) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:197:14 [INFO] [stdout] | [INFO] [stdout] 197 | pub async fn create_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:233:14 [INFO] [stdout] | [INFO] [stdout] 233 | pub async fn register_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_reset_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:257:8 [INFO] [stdout] | [INFO] [stdout] 257 | pub fn generate_reset_token(user_id: Uuid) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_custom_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:261:8 [INFO] [stdout] | [INFO] [stdout] 261 | pub fn generate_custom_token( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_expired_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:283:8 [INFO] [stdout] | [INFO] [stdout] 283 | pub fn generate_expired_token(user_id: Uuid, token_type: TokenType) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `db_auth`, `db_logs`, `user_token`, `email_service`, and `field_encryption_key` are never read [INFO] [stdout] --> apps/api-server/tests/common.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct TestApp { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 20 | pub api: TestServer, [INFO] [stdout] 21 | pub db_auth: PgPool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 22 | pub db_logs: PgPool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 23 | pub admin_token: String, [INFO] [stdout] 24 | pub user_token: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 25 | pub email_service: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 26 | pub field_encryption_key: [u8; 32], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `encrypt_field` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl TestApp { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 30 | /// Encrypts `plaintext` with the test app's field encryption key. [INFO] [stdout] 31 | pub fn encrypt_field(&self, plaintext: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_app_state` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:121:14 [INFO] [stdout] | [INFO] [stdout] 121 | pub async fn create_test_app_state() -> AppState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_api_auth_test_server` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:149:14 [INFO] [stdout] | [INFO] [stdout] 149 | pub async fn create_api_auth_test_server(state: AppState) -> TestServer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INIT` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | static INIT: Once = Once::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_test_env` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:177:8 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn init_test_env() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cleanup_test_users` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:186:14 [INFO] [stdout] | [INFO] [stdout] 186 | pub async fn cleanup_test_users(pool: &PgPool) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:197:14 [INFO] [stdout] | [INFO] [stdout] 197 | pub async fn create_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:233:14 [INFO] [stdout] | [INFO] [stdout] 233 | pub async fn register_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_reset_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:257:8 [INFO] [stdout] | [INFO] [stdout] 257 | pub fn generate_reset_token(user_id: Uuid) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_custom_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:261:8 [INFO] [stdout] | [INFO] [stdout] 261 | pub fn generate_custom_token( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_expired_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:283:8 [INFO] [stdout] | [INFO] [stdout] 283 | pub fn generate_expired_token(user_id: Uuid, token_type: TokenType) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `db_logs`, `user_token`, and `email_service` are never read [INFO] [stdout] --> apps/api-server/tests/common.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct TestApp { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 22 | pub db_logs: PgPool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 23 | pub admin_token: String, [INFO] [stdout] 24 | pub user_token: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 25 | pub email_service: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_app_state` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:121:14 [INFO] [stdout] | [INFO] [stdout] 121 | pub async fn create_test_app_state() -> AppState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_api_auth_test_server` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:149:14 [INFO] [stdout] | [INFO] [stdout] 149 | pub async fn create_api_auth_test_server(state: AppState) -> TestServer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INIT` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | static INIT: Once = Once::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_test_env` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:177:8 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn init_test_env() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cleanup_test_users` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:186:14 [INFO] [stdout] | [INFO] [stdout] 186 | pub async fn cleanup_test_users(pool: &PgPool) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:197:14 [INFO] [stdout] | [INFO] [stdout] 197 | pub async fn create_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:233:14 [INFO] [stdout] | [INFO] [stdout] 233 | pub async fn register_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_reset_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:257:8 [INFO] [stdout] | [INFO] [stdout] 257 | pub fn generate_reset_token(user_id: Uuid) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_custom_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:261:8 [INFO] [stdout] | [INFO] [stdout] 261 | pub fn generate_custom_token( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_expired_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:283:8 [INFO] [stdout] | [INFO] [stdout] 283 | pub fn generate_expired_token(user_id: Uuid, token_type: TokenType) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `db_logs`, `user_token`, `email_service`, and `field_encryption_key` are never read [INFO] [stdout] --> apps/api-server/tests/common.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct TestApp { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 22 | pub db_logs: PgPool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 23 | pub admin_token: String, [INFO] [stdout] 24 | pub user_token: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 25 | pub email_service: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 26 | pub field_encryption_key: [u8; 32], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `encrypt_field` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl TestApp { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 30 | /// Encrypts `plaintext` with the test app's field encryption key. [INFO] [stdout] 31 | pub fn encrypt_field(&self, plaintext: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_app_state` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:121:14 [INFO] [stdout] | [INFO] [stdout] 121 | pub async fn create_test_app_state() -> AppState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_api_auth_test_server` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:149:14 [INFO] [stdout] | [INFO] [stdout] 149 | pub async fn create_api_auth_test_server(state: AppState) -> TestServer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INIT` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | static INIT: Once = Once::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_test_env` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:177:8 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn init_test_env() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cleanup_test_users` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:186:14 [INFO] [stdout] | [INFO] [stdout] 186 | pub async fn cleanup_test_users(pool: &PgPool) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:197:14 [INFO] [stdout] | [INFO] [stdout] 197 | pub async fn create_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:233:14 [INFO] [stdout] | [INFO] [stdout] 233 | pub async fn register_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_reset_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:257:8 [INFO] [stdout] | [INFO] [stdout] 257 | pub fn generate_reset_token(user_id: Uuid) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_custom_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:261:8 [INFO] [stdout] | [INFO] [stdout] 261 | pub fn generate_custom_token( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_expired_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:283:8 [INFO] [stdout] | [INFO] [stdout] 283 | pub fn generate_expired_token(user_id: Uuid, token_type: TokenType) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `db_auth`, `db_logs`, `email_service`, and `field_encryption_key` are never read [INFO] [stdout] --> apps/api-server/tests/common.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct TestApp { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 20 | pub api: TestServer, [INFO] [stdout] 21 | pub db_auth: PgPool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 22 | pub db_logs: PgPool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub email_service: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 26 | pub field_encryption_key: [u8; 32], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `encrypt_field` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl TestApp { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 30 | /// Encrypts `plaintext` with the test app's field encryption key. [INFO] [stdout] 31 | pub fn encrypt_field(&self, plaintext: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_app_state` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:121:14 [INFO] [stdout] | [INFO] [stdout] 121 | pub async fn create_test_app_state() -> AppState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_api_auth_test_server` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:149:14 [INFO] [stdout] | [INFO] [stdout] 149 | pub async fn create_api_auth_test_server(state: AppState) -> TestServer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INIT` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | static INIT: Once = Once::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_test_env` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:177:8 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn init_test_env() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cleanup_test_users` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:186:14 [INFO] [stdout] | [INFO] [stdout] 186 | pub async fn cleanup_test_users(pool: &PgPool) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:197:14 [INFO] [stdout] | [INFO] [stdout] 197 | pub async fn create_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:233:14 [INFO] [stdout] | [INFO] [stdout] 233 | pub async fn register_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_reset_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:257:8 [INFO] [stdout] | [INFO] [stdout] 257 | pub fn generate_reset_token(user_id: Uuid) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_custom_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:261:8 [INFO] [stdout] | [INFO] [stdout] 261 | pub fn generate_custom_token( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_expired_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:283:8 [INFO] [stdout] | [INFO] [stdout] 283 | pub fn generate_expired_token(user_id: Uuid, token_type: TokenType) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random_code` is never used [INFO] [stdout] --> apps/api-server/tests/requisition_tests.rs:129:4 [INFO] [stdout] | [INFO] [stdout] 129 | fn random_code() -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `db_logs`, `email_service`, and `field_encryption_key` are never read [INFO] [stdout] --> apps/api-server/tests/common.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct TestApp { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 22 | pub db_logs: PgPool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub email_service: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 26 | pub field_encryption_key: [u8; 32], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `encrypt_field` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl TestApp { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 30 | /// Encrypts `plaintext` with the test app's field encryption key. [INFO] [stdout] 31 | pub fn encrypt_field(&self, plaintext: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_app_state` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:121:14 [INFO] [stdout] | [INFO] [stdout] 121 | pub async fn create_test_app_state() -> AppState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_api_auth_test_server` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:149:14 [INFO] [stdout] | [INFO] [stdout] 149 | pub async fn create_api_auth_test_server(state: AppState) -> TestServer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INIT` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | static INIT: Once = Once::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_test_env` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:177:8 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn init_test_env() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cleanup_test_users` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:186:14 [INFO] [stdout] | [INFO] [stdout] 186 | pub async fn cleanup_test_users(pool: &PgPool) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:197:14 [INFO] [stdout] | [INFO] [stdout] 197 | pub async fn create_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:233:14 [INFO] [stdout] | [INFO] [stdout] 233 | pub async fn register_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_reset_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:257:8 [INFO] [stdout] | [INFO] [stdout] 257 | pub fn generate_reset_token(user_id: Uuid) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_custom_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:261:8 [INFO] [stdout] | [INFO] [stdout] 261 | pub fn generate_custom_token( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_expired_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:283:8 [INFO] [stdout] | [INFO] [stdout] 283 | pub fn generate_expired_token(user_id: Uuid, token_type: TokenType) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `db_auth`, `email_service`, and `field_encryption_key` are never read [INFO] [stdout] --> apps/api-server/tests/common.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct TestApp { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 20 | pub api: TestServer, [INFO] [stdout] 21 | pub db_auth: PgPool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub email_service: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 26 | pub field_encryption_key: [u8; 32], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `encrypt_field` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl TestApp { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 30 | /// Encrypts `plaintext` with the test app's field encryption key. [INFO] [stdout] 31 | pub fn encrypt_field(&self, plaintext: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_app_state` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:121:14 [INFO] [stdout] | [INFO] [stdout] 121 | pub async fn create_test_app_state() -> AppState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_api_auth_test_server` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:149:14 [INFO] [stdout] | [INFO] [stdout] 149 | pub async fn create_api_auth_test_server(state: AppState) -> TestServer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INIT` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | static INIT: Once = Once::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_test_env` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:177:8 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn init_test_env() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cleanup_test_users` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:186:14 [INFO] [stdout] | [INFO] [stdout] 186 | pub async fn cleanup_test_users(pool: &PgPool) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:197:14 [INFO] [stdout] | [INFO] [stdout] 197 | pub async fn create_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:233:14 [INFO] [stdout] | [INFO] [stdout] 233 | pub async fn register_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_reset_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:257:8 [INFO] [stdout] | [INFO] [stdout] 257 | pub fn generate_reset_token(user_id: Uuid) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_custom_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:261:8 [INFO] [stdout] | [INFO] [stdout] 261 | pub fn generate_custom_token( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_expired_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:283:8 [INFO] [stdout] | [INFO] [stdout] 283 | pub fn generate_expired_token(user_id: Uuid, token_type: TokenType) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `db_logs`, `admin_token`, `user_token`, and `email_service` are never read [INFO] [stdout] --> apps/api-server/tests/common.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct TestApp { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 22 | pub db_logs: PgPool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 23 | pub admin_token: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 24 | pub user_token: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 25 | pub email_service: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `encrypt_field` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl TestApp { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 30 | /// Encrypts `plaintext` with the test app's field encryption key. [INFO] [stdout] 31 | pub fn encrypt_field(&self, plaintext: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_app_state` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:121:14 [INFO] [stdout] | [INFO] [stdout] 121 | pub async fn create_test_app_state() -> AppState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_api_auth_test_server` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:149:14 [INFO] [stdout] | [INFO] [stdout] 149 | pub async fn create_api_auth_test_server(state: AppState) -> TestServer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INIT` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | static INIT: Once = Once::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_test_env` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:177:8 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn init_test_env() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cleanup_test_users` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:186:14 [INFO] [stdout] | [INFO] [stdout] 186 | pub async fn cleanup_test_users(pool: &PgPool) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_reset_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:257:8 [INFO] [stdout] | [INFO] [stdout] 257 | pub fn generate_reset_token(user_id: Uuid) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_custom_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:261:8 [INFO] [stdout] | [INFO] [stdout] 261 | pub fn generate_custom_token( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_expired_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:283:8 [INFO] [stdout] | [INFO] [stdout] 283 | pub fn generate_expired_token(user_id: Uuid, token_type: TokenType) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `db_auth`, `db_logs`, `user_token`, `email_service`, and `field_encryption_key` are never read [INFO] [stdout] --> apps/api-server/tests/common.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct TestApp { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 20 | pub api: TestServer, [INFO] [stdout] 21 | pub db_auth: PgPool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 22 | pub db_logs: PgPool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 23 | pub admin_token: String, [INFO] [stdout] 24 | pub user_token: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 25 | pub email_service: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 26 | pub field_encryption_key: [u8; 32], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `encrypt_field` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl TestApp { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 30 | /// Encrypts `plaintext` with the test app's field encryption key. [INFO] [stdout] 31 | pub fn encrypt_field(&self, plaintext: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_app_state` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:121:14 [INFO] [stdout] | [INFO] [stdout] 121 | pub async fn create_test_app_state() -> AppState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_api_auth_test_server` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:149:14 [INFO] [stdout] | [INFO] [stdout] 149 | pub async fn create_api_auth_test_server(state: AppState) -> TestServer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INIT` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | static INIT: Once = Once::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_test_env` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:177:8 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn init_test_env() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cleanup_test_users` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:186:14 [INFO] [stdout] | [INFO] [stdout] 186 | pub async fn cleanup_test_users(pool: &PgPool) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:197:14 [INFO] [stdout] | [INFO] [stdout] 197 | pub async fn create_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:233:14 [INFO] [stdout] | [INFO] [stdout] 233 | pub async fn register_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_reset_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:257:8 [INFO] [stdout] | [INFO] [stdout] 257 | pub fn generate_reset_token(user_id: Uuid) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_custom_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:261:8 [INFO] [stdout] | [INFO] [stdout] 261 | pub fn generate_custom_token( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_expired_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:283:8 [INFO] [stdout] | [INFO] [stdout] 283 | pub fn generate_expired_token(user_id: Uuid, token_type: TokenType) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `waterswamp::state::AppState` [INFO] [stdout] --> apps/api-server/tests/api_auth_tests.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use waterswamp::state::AppState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `db_logs`, `admin_token`, `user_token`, `email_service`, and `field_encryption_key` are never read [INFO] [stdout] --> apps/api-server/tests/common.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct TestApp { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 22 | pub db_logs: PgPool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 23 | pub admin_token: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 24 | pub user_token: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 25 | pub email_service: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 26 | pub field_encryption_key: [u8; 32], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `encrypt_field` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl TestApp { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 30 | /// Encrypts `plaintext` with the test app's field encryption key. [INFO] [stdout] 31 | pub fn encrypt_field(&self, plaintext: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_app_state` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:121:14 [INFO] [stdout] | [INFO] [stdout] 121 | pub async fn create_test_app_state() -> AppState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_api_auth_test_server` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:149:14 [INFO] [stdout] | [INFO] [stdout] 149 | pub async fn create_api_auth_test_server(state: AppState) -> TestServer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INIT` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | static INIT: Once = Once::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_test_env` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:177:8 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn init_test_env() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cleanup_test_users` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:186:14 [INFO] [stdout] | [INFO] [stdout] 186 | pub async fn cleanup_test_users(pool: &PgPool) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:197:14 [INFO] [stdout] | [INFO] [stdout] 197 | pub async fn create_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:233:14 [INFO] [stdout] | [INFO] [stdout] 233 | pub async fn register_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_reset_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:257:8 [INFO] [stdout] | [INFO] [stdout] 257 | pub fn generate_reset_token(user_id: Uuid) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_custom_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:261:8 [INFO] [stdout] | [INFO] [stdout] 261 | pub fn generate_custom_token( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_expired_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:283:8 [INFO] [stdout] | [INFO] [stdout] 283 | pub fn generate_expired_token(user_id: Uuid, token_type: TokenType) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `db_logs`, `email_service`, and `field_encryption_key` are never read [INFO] [stdout] --> apps/api-server/tests/common.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct TestApp { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 22 | pub db_logs: PgPool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub email_service: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 26 | pub field_encryption_key: [u8; 32], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `encrypt_field` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl TestApp { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 30 | /// Encrypts `plaintext` with the test app's field encryption key. [INFO] [stdout] 31 | pub fn encrypt_field(&self, plaintext: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_app_state` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:121:14 [INFO] [stdout] | [INFO] [stdout] 121 | pub async fn create_test_app_state() -> AppState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_api_auth_test_server` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:149:14 [INFO] [stdout] | [INFO] [stdout] 149 | pub async fn create_api_auth_test_server(state: AppState) -> TestServer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INIT` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | static INIT: Once = Once::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_test_env` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:177:8 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn init_test_env() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cleanup_test_users` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:186:14 [INFO] [stdout] | [INFO] [stdout] 186 | pub async fn cleanup_test_users(pool: &PgPool) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:197:14 [INFO] [stdout] | [INFO] [stdout] 197 | pub async fn create_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:233:14 [INFO] [stdout] | [INFO] [stdout] 233 | pub async fn register_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_reset_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:257:8 [INFO] [stdout] | [INFO] [stdout] 257 | pub fn generate_reset_token(user_id: Uuid) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_custom_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:261:8 [INFO] [stdout] | [INFO] [stdout] 261 | pub fn generate_custom_token( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_expired_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:283:8 [INFO] [stdout] | [INFO] [stdout] 283 | pub fn generate_expired_token(user_id: Uuid, token_type: TokenType) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `db_auth`, `db_logs`, `email_service`, and `field_encryption_key` are never read [INFO] [stdout] --> apps/api-server/tests/common.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct TestApp { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 20 | pub api: TestServer, [INFO] [stdout] 21 | pub db_auth: PgPool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 22 | pub db_logs: PgPool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub email_service: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 26 | pub field_encryption_key: [u8; 32], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `encrypt_field` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl TestApp { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 30 | /// Encrypts `plaintext` with the test app's field encryption key. [INFO] [stdout] 31 | pub fn encrypt_field(&self, plaintext: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_app_state` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:121:14 [INFO] [stdout] | [INFO] [stdout] 121 | pub async fn create_test_app_state() -> AppState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_api_auth_test_server` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:149:14 [INFO] [stdout] | [INFO] [stdout] 149 | pub async fn create_api_auth_test_server(state: AppState) -> TestServer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INIT` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | static INIT: Once = Once::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_test_env` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:177:8 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn init_test_env() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cleanup_test_users` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:186:14 [INFO] [stdout] | [INFO] [stdout] 186 | pub async fn cleanup_test_users(pool: &PgPool) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:197:14 [INFO] [stdout] | [INFO] [stdout] 197 | pub async fn create_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:233:14 [INFO] [stdout] | [INFO] [stdout] 233 | pub async fn register_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_reset_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:257:8 [INFO] [stdout] | [INFO] [stdout] 257 | pub fn generate_reset_token(user_id: Uuid) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_custom_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:261:8 [INFO] [stdout] | [INFO] [stdout] 261 | pub fn generate_custom_token( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_expired_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:283:8 [INFO] [stdout] | [INFO] [stdout] 283 | pub fn generate_expired_token(user_id: Uuid, token_type: TokenType) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `db_auth`, `db_logs`, `email_service`, and `field_encryption_key` are never read [INFO] [stdout] --> apps/api-server/tests/common.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct TestApp { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 20 | pub api: TestServer, [INFO] [stdout] 21 | pub db_auth: PgPool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 22 | pub db_logs: PgPool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub email_service: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 26 | pub field_encryption_key: [u8; 32], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `encrypt_field` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl TestApp { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 30 | /// Encrypts `plaintext` with the test app's field encryption key. [INFO] [stdout] 31 | pub fn encrypt_field(&self, plaintext: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_app_state` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:121:14 [INFO] [stdout] | [INFO] [stdout] 121 | pub async fn create_test_app_state() -> AppState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_api_auth_test_server` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:149:14 [INFO] [stdout] | [INFO] [stdout] 149 | pub async fn create_api_auth_test_server(state: AppState) -> TestServer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INIT` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | static INIT: Once = Once::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_test_env` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:177:8 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn init_test_env() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cleanup_test_users` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:186:14 [INFO] [stdout] | [INFO] [stdout] 186 | pub async fn cleanup_test_users(pool: &PgPool) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:197:14 [INFO] [stdout] | [INFO] [stdout] 197 | pub async fn create_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:233:14 [INFO] [stdout] | [INFO] [stdout] 233 | pub async fn register_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_reset_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:257:8 [INFO] [stdout] | [INFO] [stdout] 257 | pub fn generate_reset_token(user_id: Uuid) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_custom_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:261:8 [INFO] [stdout] | [INFO] [stdout] 261 | pub fn generate_custom_token( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_expired_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:283:8 [INFO] [stdout] | [INFO] [stdout] 283 | pub fn generate_expired_token(user_id: Uuid, token_type: TokenType) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `db_auth`, `db_logs`, `email_service`, and `field_encryption_key` are never read [INFO] [stdout] --> apps/api-server/tests/common.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct TestApp { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 20 | pub api: TestServer, [INFO] [stdout] 21 | pub db_auth: PgPool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 22 | pub db_logs: PgPool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub email_service: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 26 | pub field_encryption_key: [u8; 32], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `encrypt_field` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl TestApp { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 30 | /// Encrypts `plaintext` with the test app's field encryption key. [INFO] [stdout] 31 | pub fn encrypt_field(&self, plaintext: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_app_state` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:121:14 [INFO] [stdout] | [INFO] [stdout] 121 | pub async fn create_test_app_state() -> AppState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_api_auth_test_server` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:149:14 [INFO] [stdout] | [INFO] [stdout] 149 | pub async fn create_api_auth_test_server(state: AppState) -> TestServer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INIT` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | static INIT: Once = Once::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_test_env` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:177:8 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn init_test_env() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cleanup_test_users` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:186:14 [INFO] [stdout] | [INFO] [stdout] 186 | pub async fn cleanup_test_users(pool: &PgPool) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:197:14 [INFO] [stdout] | [INFO] [stdout] 197 | pub async fn create_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:233:14 [INFO] [stdout] | [INFO] [stdout] 233 | pub async fn register_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_reset_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:257:8 [INFO] [stdout] | [INFO] [stdout] 257 | pub fn generate_reset_token(user_id: Uuid) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_custom_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:261:8 [INFO] [stdout] | [INFO] [stdout] 261 | pub fn generate_custom_token( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_expired_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:283:8 [INFO] [stdout] | [INFO] [stdout] 283 | pub fn generate_expired_token(user_id: Uuid, token_type: TokenType) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `username` [INFO] [stdout] --> apps/api-server/tests/api_auth_tests.rs:363:10 [INFO] [stdout] | [INFO] [stdout] 363 | let (username, user_email, _password) = [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_username` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `username` [INFO] [stdout] --> apps/api-server/tests/api_auth_tests.rs:684:10 [INFO] [stdout] | [INFO] [stdout] 684 | let (username, user_email, _password) = [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_username` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TestApp` is never constructed [INFO] [stdout] --> apps/api-server/tests/common.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct TestApp { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `encrypt_field` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl TestApp { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 30 | /// Encrypts `plaintext` with the test app's field encryption key. [INFO] [stdout] 31 | pub fn encrypt_field(&self, plaintext: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `spawn_app` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:37:14 [INFO] [stdout] | [INFO] [stdout] 37 | pub async fn spawn_app() -> TestApp { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_test_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn generate_test_token(user_id: Uuid) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:233:14 [INFO] [stdout] | [INFO] [stdout] 233 | pub async fn register_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_reset_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:257:8 [INFO] [stdout] | [INFO] [stdout] 257 | pub fn generate_reset_token(user_id: Uuid) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_custom_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:261:8 [INFO] [stdout] | [INFO] [stdout] 261 | pub fn generate_custom_token( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_expired_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:283:8 [INFO] [stdout] | [INFO] [stdout] 283 | pub fn generate_expired_token(user_id: Uuid, token_type: TokenType) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `db_auth`, `db_logs`, `admin_token`, `user_token`, and `field_encryption_key` are never read [INFO] [stdout] --> apps/api-server/tests/common.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct TestApp { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 20 | pub api: TestServer, [INFO] [stdout] 21 | pub db_auth: PgPool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 22 | pub db_logs: PgPool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 23 | pub admin_token: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 24 | pub user_token: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 25 | pub email_service: Arc, [INFO] [stdout] 26 | pub field_encryption_key: [u8; 32], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `encrypt_field` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl TestApp { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 30 | /// Encrypts `plaintext` with the test app's field encryption key. [INFO] [stdout] 31 | pub fn encrypt_field(&self, plaintext: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_app_state` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:121:14 [INFO] [stdout] | [INFO] [stdout] 121 | pub async fn create_test_app_state() -> AppState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_api_auth_test_server` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:149:14 [INFO] [stdout] | [INFO] [stdout] 149 | pub async fn create_api_auth_test_server(state: AppState) -> TestServer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INIT` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | static INIT: Once = Once::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_test_env` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:177:8 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn init_test_env() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cleanup_test_users` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:186:14 [INFO] [stdout] | [INFO] [stdout] 186 | pub async fn cleanup_test_users(pool: &PgPool) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:197:14 [INFO] [stdout] | [INFO] [stdout] 197 | pub async fn create_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:233:14 [INFO] [stdout] | [INFO] [stdout] 233 | pub async fn register_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_reset_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:257:8 [INFO] [stdout] | [INFO] [stdout] 257 | pub fn generate_reset_token(user_id: Uuid) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_custom_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:261:8 [INFO] [stdout] | [INFO] [stdout] 261 | pub fn generate_custom_token( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_expired_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:283:8 [INFO] [stdout] | [INFO] [stdout] 283 | pub fn generate_expired_token(user_id: Uuid, token_type: TokenType) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_admin_id` is never used [INFO] [stdout] --> apps/api-server/tests/invoice_tests.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | async fn get_admin_id(pool: &PgPool) -> Uuid { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `db_logs`, `email_service`, and `field_encryption_key` are never read [INFO] [stdout] --> apps/api-server/tests/common.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct TestApp { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 22 | pub db_logs: PgPool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub email_service: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 26 | pub field_encryption_key: [u8; 32], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `encrypt_field` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl TestApp { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 30 | /// Encrypts `plaintext` with the test app's field encryption key. [INFO] [stdout] 31 | pub fn encrypt_field(&self, plaintext: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_app_state` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:121:14 [INFO] [stdout] | [INFO] [stdout] 121 | pub async fn create_test_app_state() -> AppState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_api_auth_test_server` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:149:14 [INFO] [stdout] | [INFO] [stdout] 149 | pub async fn create_api_auth_test_server(state: AppState) -> TestServer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INIT` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | static INIT: Once = Once::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_test_env` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:177:8 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn init_test_env() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cleanup_test_users` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:186:14 [INFO] [stdout] | [INFO] [stdout] 186 | pub async fn cleanup_test_users(pool: &PgPool) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:197:14 [INFO] [stdout] | [INFO] [stdout] 197 | pub async fn create_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:233:14 [INFO] [stdout] | [INFO] [stdout] 233 | pub async fn register_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_reset_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:257:8 [INFO] [stdout] | [INFO] [stdout] 257 | pub fn generate_reset_token(user_id: Uuid) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_custom_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:261:8 [INFO] [stdout] | [INFO] [stdout] 261 | pub fn generate_custom_token( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_expired_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:283:8 [INFO] [stdout] | [INFO] [stdout] 283 | pub fn generate_expired_token(user_id: Uuid, token_type: TokenType) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `db_auth`, `db_logs`, `user_token`, `email_service`, and `field_encryption_key` are never read [INFO] [stdout] --> apps/api-server/tests/common.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct TestApp { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 20 | pub api: TestServer, [INFO] [stdout] 21 | pub db_auth: PgPool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 22 | pub db_logs: PgPool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 23 | pub admin_token: String, [INFO] [stdout] 24 | pub user_token: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 25 | pub email_service: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 26 | pub field_encryption_key: [u8; 32], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `encrypt_field` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl TestApp { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 30 | /// Encrypts `plaintext` with the test app's field encryption key. [INFO] [stdout] 31 | pub fn encrypt_field(&self, plaintext: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_app_state` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:121:14 [INFO] [stdout] | [INFO] [stdout] 121 | pub async fn create_test_app_state() -> AppState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_api_auth_test_server` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:149:14 [INFO] [stdout] | [INFO] [stdout] 149 | pub async fn create_api_auth_test_server(state: AppState) -> TestServer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INIT` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | static INIT: Once = Once::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_test_env` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:177:8 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn init_test_env() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cleanup_test_users` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:186:14 [INFO] [stdout] | [INFO] [stdout] 186 | pub async fn cleanup_test_users(pool: &PgPool) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:197:14 [INFO] [stdout] | [INFO] [stdout] 197 | pub async fn create_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:233:14 [INFO] [stdout] | [INFO] [stdout] 233 | pub async fn register_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_reset_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:257:8 [INFO] [stdout] | [INFO] [stdout] 257 | pub fn generate_reset_token(user_id: Uuid) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_custom_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:261:8 [INFO] [stdout] | [INFO] [stdout] 261 | pub fn generate_custom_token( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_expired_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:283:8 [INFO] [stdout] | [INFO] [stdout] 283 | pub fn generate_expired_token(user_id: Uuid, token_type: TokenType) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `db_auth`, `db_logs`, `user_token`, `email_service`, and `field_encryption_key` are never read [INFO] [stdout] --> apps/api-server/tests/common.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct TestApp { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 20 | pub api: TestServer, [INFO] [stdout] 21 | pub db_auth: PgPool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 22 | pub db_logs: PgPool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 23 | pub admin_token: String, [INFO] [stdout] 24 | pub user_token: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 25 | pub email_service: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 26 | pub field_encryption_key: [u8; 32], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `encrypt_field` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl TestApp { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 30 | /// Encrypts `plaintext` with the test app's field encryption key. [INFO] [stdout] 31 | pub fn encrypt_field(&self, plaintext: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_app_state` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:121:14 [INFO] [stdout] | [INFO] [stdout] 121 | pub async fn create_test_app_state() -> AppState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_api_auth_test_server` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:149:14 [INFO] [stdout] | [INFO] [stdout] 149 | pub async fn create_api_auth_test_server(state: AppState) -> TestServer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INIT` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | static INIT: Once = Once::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_test_env` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:177:8 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn init_test_env() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cleanup_test_users` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:186:14 [INFO] [stdout] | [INFO] [stdout] 186 | pub async fn cleanup_test_users(pool: &PgPool) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:197:14 [INFO] [stdout] | [INFO] [stdout] 197 | pub async fn create_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:233:14 [INFO] [stdout] | [INFO] [stdout] 233 | pub async fn register_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_reset_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:257:8 [INFO] [stdout] | [INFO] [stdout] 257 | pub fn generate_reset_token(user_id: Uuid) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_custom_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:261:8 [INFO] [stdout] | [INFO] [stdout] 261 | pub fn generate_custom_token( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_expired_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:283:8 [INFO] [stdout] | [INFO] [stdout] 283 | pub fn generate_expired_token(user_id: Uuid, token_type: TokenType) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `db_auth`, `db_logs`, `email_service`, and `field_encryption_key` are never read [INFO] [stdout] --> apps/api-server/tests/common.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct TestApp { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 20 | pub api: TestServer, [INFO] [stdout] 21 | pub db_auth: PgPool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 22 | pub db_logs: PgPool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub email_service: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 26 | pub field_encryption_key: [u8; 32], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `encrypt_field` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl TestApp { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 30 | /// Encrypts `plaintext` with the test app's field encryption key. [INFO] [stdout] 31 | pub fn encrypt_field(&self, plaintext: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_app_state` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:121:14 [INFO] [stdout] | [INFO] [stdout] 121 | pub async fn create_test_app_state() -> AppState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_api_auth_test_server` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:149:14 [INFO] [stdout] | [INFO] [stdout] 149 | pub async fn create_api_auth_test_server(state: AppState) -> TestServer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INIT` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:176:8 [INFO] [stdout] | [INFO] [stdout] 176 | static INIT: Once = Once::new(); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_test_env` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:177:8 [INFO] [stdout] | [INFO] [stdout] 177 | pub fn init_test_env() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cleanup_test_users` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:186:14 [INFO] [stdout] | [INFO] [stdout] 186 | pub async fn cleanup_test_users(pool: &PgPool) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:197:14 [INFO] [stdout] | [INFO] [stdout] 197 | pub async fn create_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_test_user` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:233:14 [INFO] [stdout] | [INFO] [stdout] 233 | pub async fn register_test_user( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_reset_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:257:8 [INFO] [stdout] | [INFO] [stdout] 257 | pub fn generate_reset_token(user_id: Uuid) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_custom_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:261:8 [INFO] [stdout] | [INFO] [stdout] 261 | pub fn generate_custom_token( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_expired_token` is never used [INFO] [stdout] --> apps/api-server/tests/common.rs:283:8 [INFO] [stdout] | [INFO] [stdout] 283 | pub fn generate_expired_token(user_id: Uuid, token_type: TokenType) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6m 21s [INFO] running `Command { std: "docker" "inspect" "ecbd5a15bfb3dbf272bc25827e507a56a704d3b9b3bd35856f0e8f35ace05db5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ecbd5a15bfb3dbf272bc25827e507a56a704d3b9b3bd35856f0e8f35ace05db5", kill_on_drop: false }` [INFO] [stdout] ecbd5a15bfb3dbf272bc25827e507a56a704d3b9b3bd35856f0e8f35ace05db5