[INFO] cloning repository https://github.com/insptop/panshi [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/insptop/panshi" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finsptop%2Fpanshi", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finsptop%2Fpanshi'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fd36781b4be20b7a6339764c685274ba55907f48 [INFO] testing insptop/panshi against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finsptop%2Fpanshi" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/insptop/panshi [INFO] finished tweaking git repo https://github.com/insptop/panshi [INFO] tweaked toml for git repo https://github.com/insptop/panshi written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/insptop/panshi on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/insptop/panshi 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded http-range-header v0.4.1 [INFO] [stderr] Downloaded clap v4.5.21 [INFO] [stderr] Downloaded byte-unit v4.0.19 [INFO] [stderr] Downloaded pest v2.7.14 [INFO] [stderr] Downloaded cc v1.2.1 [INFO] [stderr] Downloaded axum_session_redispool v0.3.0 [INFO] [stderr] Downloaded rust-ini v0.20.0 [INFO] [stderr] Downloaded btparse-stable v0.1.2 [INFO] [stderr] Downloaded pest_meta v2.7.14 [INFO] [stderr] Downloaded clap_lex v0.7.3 [INFO] [stderr] Downloaded sea-orm-macros v1.1.1 [INFO] [stderr] Downloaded thiserror v2.0.3 [INFO] [stderr] Downloaded redis v0.27.5 [INFO] [stderr] Downloaded daemonize v0.5.0 [INFO] [stderr] Downloaded allocator-api2 v0.2.20 [INFO] [stderr] Downloaded pest_derive v2.7.14 [INFO] [stderr] Downloaded libc v0.2.164 [INFO] [stderr] Downloaded yaml-rust2 v0.8.1 [INFO] [stderr] Downloaded bstr v1.11.0 [INFO] [stderr] Downloaded backtrace_printer v1.3.0 [INFO] [stderr] Downloaded clap_builder v4.5.21 [INFO] [stderr] Downloaded redis_pool v0.6.0 [INFO] [stderr] Downloaded rustls v0.23.18 [INFO] [stderr] Downloaded config v0.14.1 [INFO] [stderr] Downloaded pest_generator v2.7.14 [INFO] [stderr] Downloaded thiserror-impl v2.0.3 [INFO] [stderr] Downloaded sea-orm v1.1.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a55ac2e852c3583365301ec47564c5056659aeb1f33195b4e24451557443d5be [INFO] running `Command { std: "docker" "start" "-a" "a55ac2e852c3583365301ec47564c5056659aeb1f33195b4e24451557443d5be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a55ac2e852c3583365301ec47564c5056659aeb1f33195b4e24451557443d5be", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a55ac2e852c3583365301ec47564c5056659aeb1f33195b4e24451557443d5be", kill_on_drop: false }` [INFO] [stdout] a55ac2e852c3583365301ec47564c5056659aeb1f33195b4e24451557443d5be [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 33b315c0e03c469c24a8c2554e778c8446f750604577f27fdb8a26f900a09465 [INFO] running `Command { std: "docker" "start" "-a" "33b315c0e03c469c24a8c2554e778c8446f750604577f27fdb8a26f900a09465", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.164 [INFO] [stderr] Compiling serde v1.0.215 [INFO] [stderr] Compiling itoa v1.0.14 [INFO] [stderr] Compiling bytes v1.8.0 [INFO] [stderr] Compiling libm v0.2.11 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling syn v2.0.89 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling serde_json v1.0.133 [INFO] [stderr] Compiling allocator-api2 v0.2.20 [INFO] [stderr] Compiling rustls-pki-types v1.10.0 [INFO] [stderr] Compiling rustls v0.23.18 [INFO] [stderr] Compiling iana-time-zone v0.1.61 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling indexmap v2.6.0 [INFO] [stderr] Compiling bigdecimal v0.4.6 [INFO] [stderr] Compiling rust_decimal v1.36.0 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling webpki-roots v0.26.6 [INFO] [stderr] Compiling inout v0.1.3 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling unicode-bidi v0.3.17 [INFO] [stderr] Compiling rustversion v1.0.18 [INFO] [stderr] Compiling phf v0.11.2 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling crc16 v0.4.0 [INFO] [stderr] Compiling zstd-safe v7.2.1 [INFO] [stderr] Compiling data-encoding v2.6.0 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling flume v0.11.1 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling parse-zoneinfo v0.3.1 [INFO] [stderr] Compiling phf_codegen v0.11.2 [INFO] [stderr] Compiling cc v1.2.1 [INFO] [stderr] Compiling bstr v1.11.0 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling chrono-tz-build v0.3.0 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling universal-hash v0.5.1 [INFO] [stderr] Compiling aead v0.5.2 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling unicase v2.8.0 [INFO] [stderr] Compiling polyval v0.6.2 [INFO] [stderr] Compiling rustls-native-certs v0.7.3 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling const-random v0.1.18 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling ctr v0.9.2 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling ghash v0.5.1 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling dlv-list v0.5.2 [INFO] [stderr] Compiling globset v0.4.15 [INFO] [stderr] Compiling ordered-float v3.9.2 [INFO] [stderr] Compiling crossbeam-deque v0.8.5 [INFO] [stderr] Compiling chrono-tz v0.9.0 [INFO] [stderr] Compiling arc-swap v1.7.1 [INFO] [stderr] Compiling nonempty v0.7.0 [INFO] [stderr] Compiling winnow v0.6.20 [INFO] [stderr] Compiling flate2 v1.0.35 [INFO] [stderr] Compiling brotli v7.0.0 [INFO] [stderr] Compiling unic-ucd-segment v0.9.0 [INFO] [stderr] Compiling aes-gcm v0.10.3 [INFO] [stderr] Compiling thiserror v2.0.3 [INFO] [stderr] Compiling ignore v0.4.23 [INFO] [stderr] Compiling aliasable v0.1.3 [INFO] [stderr] Compiling deunicode v1.6.0 [INFO] [stderr] Compiling arraydeque v0.5.1 [INFO] [stderr] Compiling clap_lex v0.7.3 [INFO] [stderr] Compiling unic-segment v0.9.0 [INFO] [stderr] Compiling convert_case v0.6.0 [INFO] [stderr] Compiling clap_builder v4.5.21 [INFO] [stderr] Compiling slug v0.1.6 [INFO] [stderr] Compiling humansize v2.1.3 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling colored v2.1.0 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling strum v0.26.3 [INFO] [stderr] Compiling utf8-width v0.1.7 [INFO] [stderr] Compiling btparse-stable v0.1.2 [INFO] [stderr] Compiling pathdiff v0.2.3 [INFO] [stderr] Compiling http-range-header v0.4.1 [INFO] [stderr] Compiling eyre v0.6.12 [INFO] [stderr] Compiling daemonize v0.5.0 [INFO] [stderr] Compiling thousands v0.2.0 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling zstd-sys v2.0.13+zstd.1.5.6 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling libsqlite3-sys v0.30.1 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Compiling serde_derive v1.0.215 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling zerofrom v0.1.5 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling async-trait v0.1.83 [INFO] [stderr] Compiling inherent v1.0.11 [INFO] [stderr] Compiling axum-macros v0.4.2 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling sea-bae v0.2.1 [INFO] [stderr] Compiling pest v2.7.14 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling forwarded-header-value v0.1.1 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling ouroboros_macro v0.18.4 [INFO] [stderr] Compiling sea-orm-macros v1.1.1 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling zstd v0.13.2 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling clap_derive v4.5.18 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling thiserror-impl v2.0.3 [INFO] [stderr] Compiling backtrace_printer v1.3.0 [INFO] [stderr] Compiling hashlink v0.9.1 [INFO] [stderr] Compiling ordered-multimap v0.7.3 [INFO] [stderr] Compiling tungstenite v0.24.0 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling rustls-webpki v0.102.8 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling pest_meta v2.7.14 [INFO] [stderr] Compiling axum-core v0.4.5 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling yaml-rust2 v0.8.1 [INFO] [stderr] Compiling ouroboros v0.18.4 [INFO] [stderr] Compiling rust-ini v0.20.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling pest_generator v2.7.14 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling clap v4.5.21 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling pest_derive v2.7.14 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling uuid v1.11.0 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling serde_spanned v0.6.8 [INFO] [stderr] Compiling serde_path_to_error v0.1.16 [INFO] [stderr] Compiling json5 v0.4.1 [INFO] [stderr] Compiling globwalk v0.9.1 [INFO] [stderr] Compiling toml_edit v0.22.22 [INFO] [stderr] Compiling ron v0.8.1 [INFO] [stderr] Compiling tracing-serde v0.1.3 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling num-bigint-dig v0.8.4 [INFO] [stderr] Compiling byte-unit v4.0.19 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling dashmap v6.1.0 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling tokio v1.41.1 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling tracing-subscriber v0.3.18 [INFO] [stderr] Compiling rsa v0.9.7 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling toml v0.8.19 [INFO] [stderr] Compiling sea-query v0.32.0 [INFO] [stderr] Compiling config v0.14.1 [INFO] [stderr] Compiling tera v1.20.0 [INFO] [stderr] Compiling tokio-stream v0.1.16 [INFO] [stderr] Compiling tokio-util v0.7.12 [INFO] [stderr] Compiling hyper v1.5.1 [INFO] [stderr] Compiling tokio-tungstenite v0.24.0 [INFO] [stderr] Compiling tower v0.5.1 [INFO] [stderr] Compiling tokio-rustls v0.26.0 [INFO] [stderr] Compiling async-compression v0.4.18 [INFO] [stderr] Compiling sqlx-core v0.8.2 [INFO] [stderr] Compiling combine v4.6.7 [INFO] [stderr] Compiling tower-http v0.6.2 [INFO] [stderr] Compiling hyper-util v0.1.10 [INFO] [stderr] Compiling axum v0.7.9 [INFO] [stderr] Compiling sqlx-sqlite v0.8.2 [INFO] [stderr] Compiling sqlx-postgres v0.8.2 [INFO] [stderr] Compiling sqlx-mysql v0.8.2 [INFO] [stderr] Compiling redis v0.27.5 [INFO] [stderr] Compiling axum_session v0.14.4 [INFO] [stderr] Compiling sqlx v0.8.2 [INFO] [stderr] Compiling sea-query-binder v0.7.0 [INFO] [stderr] Compiling sea-orm v1.1.1 [INFO] [stderr] Compiling redis_pool v0.6.0 [INFO] [stderr] Compiling axum_session_redispool v0.3.0 [INFO] [stderr] Compiling panshi v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `with-db` [INFO] [stdout] --> src/http/route.rs:191:15 [INFO] [stdout] | [INFO] [stdout] 191 | #[cfg(feature = "with-db")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `with-db` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AnyConnection` [INFO] [stdout] --> src/component/session.rs:1:42 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::component::redis::{AnyClient, AnyConnection, AnyRedisPool}; [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: `DatabaseError` and `DatabasePool` [INFO] [stdout] --> src/component/session.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | DatabaseError, DatabasePool, SessionAnyPool, SessionConfig, [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_trait::async_trait` [INFO] [stdout] --> src/component/database.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sea_orm::DbConn as DB` [INFO] [stdout] --> src/component/database.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub use sea_orm::DbConn as DB; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/component/session.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | config: Self::Config, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dotenv` [INFO] [stdout] --> src/cli.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let dotenv = resolve_dotenv_file(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_dotenv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/cli.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let config = env.load_config().expect("Failed to load config"); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `json_response` is never used [INFO] [stdout] --> src/http/message.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn json_response(data: T) -> Json> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Resp` is never used [INFO] [stdout] --> src/http/message.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | pub type Resp = crate::error::Result>>; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ok` is never used [INFO] [stdout] --> src/http/message.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn ok(data: T) -> Resp { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `empty` is never used [INFO] [stdout] --> src/http/message.rs:111:8 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn empty() -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `text` is never used [INFO] [stdout] --> src/http/message.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn text(t: &str) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `json` is never used [INFO] [stdout] --> src/http/message.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn json(t: T) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `empty_json` is never used [INFO] [stdout] --> src/http/message.rs:123:8 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn empty_json() -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `html` is never used [INFO] [stdout] --> src/http/message.rs:127:8 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn html(content: &str) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `redirect` is never used [INFO] [stdout] --> src/http/message.rs:131:8 [INFO] [stdout] | [INFO] [stdout] 131 | pub fn redirect(to: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `view` is never used [INFO] [stdout] --> src/http/message.rs:135:8 [INFO] [stdout] | [INFO] [stdout] 135 | pub fn view(v: &V, key: &str, data: S) -> Result [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ServerConfig` is never constructed [INFO] [stdout] --> src/http/app.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct ServerConfig { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `AppTrait` is never used [INFO] [stdout] --> src/http/app.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub trait AppTrait: BaseAppTrait { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shutdown_signal` is never used [INFO] [stdout] --> src/http/app.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | async fn shutdown_signal() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `DESCRIBE_METHOD_ACTION` is never used [INFO] [stdout] --> src/http/route.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | static DESCRIBE_METHOD_ACTION: OnceLock = OnceLock::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_describe_method_action` is never used [INFO] [stdout] --> src/http/route.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn get_describe_method_action() -> &'static Regex { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `method_action` is never used [INFO] [stdout] --> src/http/route.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn method_action(method: &MethodRouter>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `NORMALIZE_URL` is never used [INFO] [stdout] --> src/http/route.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | static NORMALIZE_URL: OnceLock = OnceLock::new(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_normalize_url` is never used [INFO] [stdout] --> src/http/route.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn get_normalize_url() -> &'static Regex { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Routes` is never constructed [INFO] [stdout] --> src/http/route.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct Routes [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Handler` is never constructed [INFO] [stdout] --> src/http/route.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub struct Handler [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `at`, `add`, `prefix`, and `layer` are never used [INFO] [stdout] --> src/http/route.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 88 | / impl Routes [INFO] [stdout] 89 | | where [INFO] [stdout] 90 | | T: AppTrait, [INFO] [stdout] | |________________- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn at(prefix: &str) -> Self { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn add(mut self, uri: &str, method: axum::routing::MethodRouter>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn prefix(mut self, uri: &str) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub fn layer(self, layer: L) -> Self [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AppRoutes` is never constructed [INFO] [stdout] --> src/http/route.rs:149:12 [INFO] [stdout] | [INFO] [stdout] 149 | pub struct AppRoutes [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ListRoutes` is never constructed [INFO] [stdout] --> src/http/route.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 158 | pub struct ListRoutes [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/http/route.rs:189:12 [INFO] [stdout] | [INFO] [stdout] 183 | / impl AppRoutes [INFO] [stdout] 184 | | where [INFO] [stdout] 185 | | T: AppTrait, [INFO] [stdout] | |________________- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 189 | pub fn with_default_routes() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 199 | pub fn empty() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | pub fn collect(&self) -> Vec> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 248 | pub fn get_prefix(&self) -> Option<&String> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 254 | pub fn get_routes(&self) -> &[Routes] { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 259 | pub fn prefix(mut self, prefix: &str) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 266 | pub fn add_route(mut self, route: Routes) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 273 | pub fn add_routes(mut self, mounts: Vec>) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 287 | pub fn to_router( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Health` is never constructed [INFO] [stdout] --> src/http/route.rs:336:16 [INFO] [stdout] | [INFO] [stdout] 336 | struct Health { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ping` is never used [INFO] [stdout] --> src/http/route.rs:341:18 [INFO] [stdout] | [INFO] [stdout] 341 | async fn ping() -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `routes` is never used [INFO] [stdout] --> src/http/route.rs:346:16 [INFO] [stdout] | [INFO] [stdout] 346 | pub fn routes() -> Routes [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LOG` is never used [INFO] [stdout] --> src/config.rs:20:15 [INFO] [stdout] | [INFO] [stdout] 20 | pub const LOG: &'static str = "log"; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SERVER` is never used [INFO] [stdout] --> src/config.rs:21:15 [INFO] [stdout] | [INFO] [stdout] 21 | pub const SERVER: &'static str = "server"; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AppContext` is never constructed [INFO] [stdout] --> src/app.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct AppContext [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/app.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 16 | / impl AppContext [INFO] [stdout] 17 | | where [INFO] [stdout] 18 | | T: AppTrait, [INFO] [stdout] | |________________- associated function in this implementation [INFO] [stdout] 19 | { [INFO] [stdout] 20 | pub fn new(app: T, config: Config, environment: Environment) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `AppTrait` is never used [INFO] [stdout] --> src/app.rs:42:11 [INFO] [stdout] | [INFO] [stdout] 42 | pub trait AppTrait: Sized + Clone + Send + Sync + 'static { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_app` is never used [INFO] [stdout] --> src/app.rs:48:21 [INFO] [stdout] | [INFO] [stdout] 48 | pub(crate) async fn create_app(config: Config, environment: Environment) -> Result> [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ViewRenderer` is never used [INFO] [stdout] --> src/view/mod.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait ViewRenderer { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ViewEngine` is never constructed [INFO] [stdout] --> src/view/mod.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct ViewEngine(pub E); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/view/mod.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl ViewEngine { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 20 | /// Creates a new [`Engine`] that wraps the given engine [INFO] [stdout] 21 | pub fn new(engine: E) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `template` is never used [INFO] [stdout] --> src/view/mod.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn template(template: &str, data: S) -> Result [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VIEWS_DIR` is never used [INFO] [stdout] --> src/view/engines.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const VIEWS_DIR: &str = "assets/views"; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TeraView` is never constructed [INFO] [stdout] --> src/view/engines.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct TeraView { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `build` and `from_custom_dir` are never used [INFO] [stdout] --> src/view/engines.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl TeraView { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn build() -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn from_custom_dir>(path: &P) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_filters` is never used [INFO] [stdout] --> src/view/engines.rs:91:16 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn register_filters(tera: &mut tera::Tera) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `number_with_delimiter` is never used [INFO] [stdout] --> src/view/engines.rs:118:20 [INFO] [stdout] | [INFO] [stdout] 118 | pub fn number_with_delimiter(value: &Value, _: &HashMap) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `number_to_human_size` is never used [INFO] [stdout] --> src/view/engines.rs:137:20 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn number_to_human_size(value: &Value, _: &HashMap) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `number_to_percentage` is never used [INFO] [stdout] --> src/view/engines.rs:161:20 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn number_to_percentage(value: &Value, options: &HashMap) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/cli.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn main() -> crate::error::Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 44s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: axum_session_redispool v0.3.0, num-bigint-dig v0.8.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3` [INFO] running `Command { std: "docker" "inspect" "33b315c0e03c469c24a8c2554e778c8446f750604577f27fdb8a26f900a09465", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "33b315c0e03c469c24a8c2554e778c8446f750604577f27fdb8a26f900a09465", kill_on_drop: false }` [INFO] [stdout] 33b315c0e03c469c24a8c2554e778c8446f750604577f27fdb8a26f900a09465 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 739075c83e3cb01c41358fdd522d60e62fa122fc7f30bb7b835ebeb0ccabad00 [INFO] running `Command { std: "docker" "start" "-a" "739075c83e3cb01c41358fdd522d60e62fa122fc7f30bb7b835ebeb0ccabad00", kill_on_drop: false }` [INFO] [stderr] Compiling panshi v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `with-db` [INFO] [stdout] --> src/http/route.rs:191:15 [INFO] [stdout] | [INFO] [stdout] 191 | #[cfg(feature = "with-db")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `with-db` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AnyConnection` [INFO] [stdout] --> src/component/session.rs:1:42 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::component::redis::{AnyClient, AnyConnection, AnyRedisPool}; [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: `DatabaseError` and `DatabasePool` [INFO] [stdout] --> src/component/session.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | DatabaseError, DatabasePool, SessionAnyPool, SessionConfig, [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_trait::async_trait` [INFO] [stdout] --> src/component/database.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sea_orm::DbConn as DB` [INFO] [stdout] --> src/component/database.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub use sea_orm::DbConn as DB; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/component/session.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | config: Self::Config, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dotenv` [INFO] [stdout] --> src/cli.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let dotenv = resolve_dotenv_file(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_dotenv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/cli.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let config = env.load_config().expect("Failed to load config"); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `json_response` is never used [INFO] [stdout] --> src/http/message.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn json_response(data: T) -> Json> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Resp` is never used [INFO] [stdout] --> src/http/message.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | pub type Resp = crate::error::Result>>; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ok` is never used [INFO] [stdout] --> src/http/message.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn ok(data: T) -> Resp { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `empty` is never used [INFO] [stdout] --> src/http/message.rs:111:8 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn empty() -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `text` is never used [INFO] [stdout] --> src/http/message.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn text(t: &str) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `json` is never used [INFO] [stdout] --> src/http/message.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn json(t: T) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `empty_json` is never used [INFO] [stdout] --> src/http/message.rs:123:8 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn empty_json() -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `html` is never used [INFO] [stdout] --> src/http/message.rs:127:8 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn html(content: &str) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `redirect` is never used [INFO] [stdout] --> src/http/message.rs:131:8 [INFO] [stdout] | [INFO] [stdout] 131 | pub fn redirect(to: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `view` is never used [INFO] [stdout] --> src/http/message.rs:135:8 [INFO] [stdout] | [INFO] [stdout] 135 | pub fn view(v: &V, key: &str, data: S) -> Result [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ServerConfig` is never constructed [INFO] [stdout] --> src/http/app.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct ServerConfig { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `AppTrait` is never used [INFO] [stdout] --> src/http/app.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub trait AppTrait: BaseAppTrait { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shutdown_signal` is never used [INFO] [stdout] --> src/http/app.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | async fn shutdown_signal() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `DESCRIBE_METHOD_ACTION` is never used [INFO] [stdout] --> src/http/route.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | static DESCRIBE_METHOD_ACTION: OnceLock = OnceLock::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_describe_method_action` is never used [INFO] [stdout] --> src/http/route.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn get_describe_method_action() -> &'static Regex { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `method_action` is never used [INFO] [stdout] --> src/http/route.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn method_action(method: &MethodRouter>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `NORMALIZE_URL` is never used [INFO] [stdout] --> src/http/route.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | static NORMALIZE_URL: OnceLock = OnceLock::new(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_normalize_url` is never used [INFO] [stdout] --> src/http/route.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn get_normalize_url() -> &'static Regex { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Routes` is never constructed [INFO] [stdout] --> src/http/route.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct Routes [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Handler` is never constructed [INFO] [stdout] --> src/http/route.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub struct Handler [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `at`, `add`, `prefix`, and `layer` are never used [INFO] [stdout] --> src/http/route.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 88 | / impl Routes [INFO] [stdout] 89 | | where [INFO] [stdout] 90 | | T: AppTrait, [INFO] [stdout] | |________________- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn at(prefix: &str) -> Self { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn add(mut self, uri: &str, method: axum::routing::MethodRouter>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn prefix(mut self, uri: &str) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub fn layer(self, layer: L) -> Self [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AppRoutes` is never constructed [INFO] [stdout] --> src/http/route.rs:149:12 [INFO] [stdout] | [INFO] [stdout] 149 | pub struct AppRoutes [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ListRoutes` is never constructed [INFO] [stdout] --> src/http/route.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 158 | pub struct ListRoutes [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/http/route.rs:189:12 [INFO] [stdout] | [INFO] [stdout] 183 | / impl AppRoutes [INFO] [stdout] 184 | | where [INFO] [stdout] 185 | | T: AppTrait, [INFO] [stdout] | |________________- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 189 | pub fn with_default_routes() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 199 | pub fn empty() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | pub fn collect(&self) -> Vec> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 248 | pub fn get_prefix(&self) -> Option<&String> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 254 | pub fn get_routes(&self) -> &[Routes] { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 259 | pub fn prefix(mut self, prefix: &str) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 266 | pub fn add_route(mut self, route: Routes) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 273 | pub fn add_routes(mut self, mounts: Vec>) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 287 | pub fn to_router( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Health` is never constructed [INFO] [stdout] --> src/http/route.rs:336:16 [INFO] [stdout] | [INFO] [stdout] 336 | struct Health { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ping` is never used [INFO] [stdout] --> src/http/route.rs:341:18 [INFO] [stdout] | [INFO] [stdout] 341 | async fn ping() -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `routes` is never used [INFO] [stdout] --> src/http/route.rs:346:16 [INFO] [stdout] | [INFO] [stdout] 346 | pub fn routes() -> Routes [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LOG` is never used [INFO] [stdout] --> src/config.rs:20:15 [INFO] [stdout] | [INFO] [stdout] 20 | pub const LOG: &'static str = "log"; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SERVER` is never used [INFO] [stdout] --> src/config.rs:21:15 [INFO] [stdout] | [INFO] [stdout] 21 | pub const SERVER: &'static str = "server"; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AppContext` is never constructed [INFO] [stdout] --> src/app.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct AppContext [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/app.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 16 | / impl AppContext [INFO] [stdout] 17 | | where [INFO] [stdout] 18 | | T: AppTrait, [INFO] [stdout] | |________________- associated function in this implementation [INFO] [stdout] 19 | { [INFO] [stdout] 20 | pub fn new(app: T, config: Config, environment: Environment) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `AppTrait` is never used [INFO] [stdout] --> src/app.rs:42:11 [INFO] [stdout] | [INFO] [stdout] 42 | pub trait AppTrait: Sized + Clone + Send + Sync + 'static { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_app` is never used [INFO] [stdout] --> src/app.rs:48:21 [INFO] [stdout] | [INFO] [stdout] 48 | pub(crate) async fn create_app(config: Config, environment: Environment) -> Result> [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ViewRenderer` is never used [INFO] [stdout] --> src/view/mod.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait ViewRenderer { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ViewEngine` is never constructed [INFO] [stdout] --> src/view/mod.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct ViewEngine(pub E); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/view/mod.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl ViewEngine { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 20 | /// Creates a new [`Engine`] that wraps the given engine [INFO] [stdout] 21 | pub fn new(engine: E) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `template` is never used [INFO] [stdout] --> src/view/mod.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn template(template: &str, data: S) -> Result [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VIEWS_DIR` is never used [INFO] [stdout] --> src/view/engines.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const VIEWS_DIR: &str = "assets/views"; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TeraView` is never constructed [INFO] [stdout] --> src/view/engines.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct TeraView { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `build` and `from_custom_dir` are never used [INFO] [stdout] --> src/view/engines.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl TeraView { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn build() -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn from_custom_dir>(path: &P) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_filters` is never used [INFO] [stdout] --> src/view/engines.rs:91:16 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn register_filters(tera: &mut tera::Tera) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `number_with_delimiter` is never used [INFO] [stdout] --> src/view/engines.rs:118:20 [INFO] [stdout] | [INFO] [stdout] 118 | pub fn number_with_delimiter(value: &Value, _: &HashMap) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `number_to_human_size` is never used [INFO] [stdout] --> src/view/engines.rs:137:20 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn number_to_human_size(value: &Value, _: &HashMap) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `number_to_percentage` is never used [INFO] [stdout] --> src/view/engines.rs:161:20 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn number_to_percentage(value: &Value, options: &HashMap) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/cli.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn main() -> crate::error::Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `with-db` [INFO] [stdout] --> src/http/route.rs:191:15 [INFO] [stdout] | [INFO] [stdout] 191 | #[cfg(feature = "with-db")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = help: consider adding `with-db` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AnyConnection` [INFO] [stdout] --> src/component/session.rs:1:42 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::component::redis::{AnyClient, AnyConnection, AnyRedisPool}; [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: `DatabaseError` and `DatabasePool` [INFO] [stdout] --> src/component/session.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | DatabaseError, DatabasePool, SessionAnyPool, SessionConfig, [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_trait::async_trait` [INFO] [stdout] --> src/component/database.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sea_orm::DbConn as DB` [INFO] [stdout] --> src/component/database.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub use sea_orm::DbConn as DB; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/component/session.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | config: Self::Config, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dotenv` [INFO] [stdout] --> src/cli.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let dotenv = resolve_dotenv_file(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_dotenv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/cli.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let config = env.load_config().expect("Failed to load config"); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `json_response` is never used [INFO] [stdout] --> src/http/message.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn json_response(data: T) -> Json> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Resp` is never used [INFO] [stdout] --> src/http/message.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | pub type Resp = crate::error::Result>>; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ok` is never used [INFO] [stdout] --> src/http/message.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn ok(data: T) -> Resp { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `empty` is never used [INFO] [stdout] --> src/http/message.rs:111:8 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn empty() -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `text` is never used [INFO] [stdout] --> src/http/message.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn text(t: &str) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `json` is never used [INFO] [stdout] --> src/http/message.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn json(t: T) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `empty_json` is never used [INFO] [stdout] --> src/http/message.rs:123:8 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn empty_json() -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `html` is never used [INFO] [stdout] --> src/http/message.rs:127:8 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn html(content: &str) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `redirect` is never used [INFO] [stdout] --> src/http/message.rs:131:8 [INFO] [stdout] | [INFO] [stdout] 131 | pub fn redirect(to: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `view` is never used [INFO] [stdout] --> src/http/message.rs:135:8 [INFO] [stdout] | [INFO] [stdout] 135 | pub fn view(v: &V, key: &str, data: S) -> Result [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ServerConfig` is never constructed [INFO] [stdout] --> src/http/app.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct ServerConfig { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `AppTrait` is never used [INFO] [stdout] --> src/http/app.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub trait AppTrait: BaseAppTrait { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shutdown_signal` is never used [INFO] [stdout] --> src/http/app.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | async fn shutdown_signal() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `DESCRIBE_METHOD_ACTION` is never used [INFO] [stdout] --> src/http/route.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | static DESCRIBE_METHOD_ACTION: OnceLock = OnceLock::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_describe_method_action` is never used [INFO] [stdout] --> src/http/route.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn get_describe_method_action() -> &'static Regex { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `method_action` is never used [INFO] [stdout] --> src/http/route.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn method_action(method: &MethodRouter>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `NORMALIZE_URL` is never used [INFO] [stdout] --> src/http/route.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | static NORMALIZE_URL: OnceLock = OnceLock::new(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_normalize_url` is never used [INFO] [stdout] --> src/http/route.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn get_normalize_url() -> &'static Regex { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Routes` is never constructed [INFO] [stdout] --> src/http/route.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct Routes [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Handler` is never constructed [INFO] [stdout] --> src/http/route.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | pub struct Handler [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `at`, `add`, `prefix`, and `layer` are never used [INFO] [stdout] --> src/http/route.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 88 | / impl Routes [INFO] [stdout] 89 | | where [INFO] [stdout] 90 | | T: AppTrait, [INFO] [stdout] | |________________- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn at(prefix: &str) -> Self { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn add(mut self, uri: &str, method: axum::routing::MethodRouter>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn prefix(mut self, uri: &str) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub fn layer(self, layer: L) -> Self [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AppRoutes` is never constructed [INFO] [stdout] --> src/http/route.rs:149:12 [INFO] [stdout] | [INFO] [stdout] 149 | pub struct AppRoutes [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ListRoutes` is never constructed [INFO] [stdout] --> src/http/route.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 158 | pub struct ListRoutes [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/http/route.rs:189:12 [INFO] [stdout] | [INFO] [stdout] 183 | / impl AppRoutes [INFO] [stdout] 184 | | where [INFO] [stdout] 185 | | T: AppTrait, [INFO] [stdout] | |________________- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 189 | pub fn with_default_routes() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 199 | pub fn empty() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 207 | pub fn collect(&self) -> Vec> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 248 | pub fn get_prefix(&self) -> Option<&String> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 254 | pub fn get_routes(&self) -> &[Routes] { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 259 | pub fn prefix(mut self, prefix: &str) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 266 | pub fn add_route(mut self, route: Routes) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 273 | pub fn add_routes(mut self, mounts: Vec>) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 287 | pub fn to_router( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Health` is never constructed [INFO] [stdout] --> src/http/route.rs:336:16 [INFO] [stdout] | [INFO] [stdout] 336 | struct Health { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ping` is never used [INFO] [stdout] --> src/http/route.rs:341:18 [INFO] [stdout] | [INFO] [stdout] 341 | async fn ping() -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `routes` is never used [INFO] [stdout] --> src/http/route.rs:346:16 [INFO] [stdout] | [INFO] [stdout] 346 | pub fn routes() -> Routes [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LOG` is never used [INFO] [stdout] --> src/config.rs:20:15 [INFO] [stdout] | [INFO] [stdout] 20 | pub const LOG: &'static str = "log"; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SERVER` is never used [INFO] [stdout] --> src/config.rs:21:15 [INFO] [stdout] | [INFO] [stdout] 21 | pub const SERVER: &'static str = "server"; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AppContext` is never constructed [INFO] [stdout] --> src/app.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct AppContext [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/app.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 16 | / impl AppContext [INFO] [stdout] 17 | | where [INFO] [stdout] 18 | | T: AppTrait, [INFO] [stdout] | |________________- associated function in this implementation [INFO] [stdout] 19 | { [INFO] [stdout] 20 | pub fn new(app: T, config: Config, environment: Environment) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `AppTrait` is never used [INFO] [stdout] --> src/app.rs:42:11 [INFO] [stdout] | [INFO] [stdout] 42 | pub trait AppTrait: Sized + Clone + Send + Sync + 'static { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_app` is never used [INFO] [stdout] --> src/app.rs:48:21 [INFO] [stdout] | [INFO] [stdout] 48 | pub(crate) async fn create_app(config: Config, environment: Environment) -> Result> [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ViewRenderer` is never used [INFO] [stdout] --> src/view/mod.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait ViewRenderer { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ViewEngine` is never constructed [INFO] [stdout] --> src/view/mod.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct ViewEngine(pub E); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/view/mod.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl ViewEngine { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 20 | /// Creates a new [`Engine`] that wraps the given engine [INFO] [stdout] 21 | pub fn new(engine: E) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `template` is never used [INFO] [stdout] --> src/view/mod.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn template(template: &str, data: S) -> Result [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `VIEWS_DIR` is never used [INFO] [stdout] --> src/view/engines.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const VIEWS_DIR: &str = "assets/views"; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TeraView` is never constructed [INFO] [stdout] --> src/view/engines.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct TeraView { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `build` and `from_custom_dir` are never used [INFO] [stdout] --> src/view/engines.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl TeraView { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn build() -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn from_custom_dir>(path: &P) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_filters` is never used [INFO] [stdout] --> src/view/engines.rs:91:16 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn register_filters(tera: &mut tera::Tera) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `number_with_delimiter` is never used [INFO] [stdout] --> src/view/engines.rs:118:20 [INFO] [stdout] | [INFO] [stdout] 118 | pub fn number_with_delimiter(value: &Value, _: &HashMap) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `number_to_human_size` is never used [INFO] [stdout] --> src/view/engines.rs:137:20 [INFO] [stdout] | [INFO] [stdout] 137 | pub fn number_to_human_size(value: &Value, _: &HashMap) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `number_to_percentage` is never used [INFO] [stdout] --> src/view/engines.rs:161:20 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn number_to_percentage(value: &Value, options: &HashMap) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/cli.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn main() -> crate::error::Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.85s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: axum_session_redispool v0.3.0, num-bigint-dig v0.8.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3` [INFO] running `Command { std: "docker" "inspect" "739075c83e3cb01c41358fdd522d60e62fa122fc7f30bb7b835ebeb0ccabad00", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "739075c83e3cb01c41358fdd522d60e62fa122fc7f30bb7b835ebeb0ccabad00", kill_on_drop: false }` [INFO] [stdout] 739075c83e3cb01c41358fdd522d60e62fa122fc7f30bb7b835ebeb0ccabad00 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 873d0887cf49692d0b484a9f12b0bda8a88d3102aacede3df4f6efa474abe62b [INFO] running `Command { std: "docker" "start" "-a" "873d0887cf49692d0b484a9f12b0bda8a88d3102aacede3df4f6efa474abe62b", kill_on_drop: false }` [INFO] [stderr] warning: unexpected `cfg` condition value: `with-db` [INFO] [stderr] --> src/http/route.rs:191:15 [INFO] [stderr] | [INFO] [stderr] 191 | #[cfg(feature = "with-db")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: remove the condition [INFO] [stderr] | [INFO] [stderr] = note: no expected values for `feature` [INFO] [stderr] = help: consider adding `with-db` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `AnyConnection` [INFO] [stderr] --> src/component/session.rs:1:42 [INFO] [stderr] | [INFO] [stderr] 1 | use crate::component::redis::{AnyClient, AnyConnection, AnyRedisPool}; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `DatabaseError` and `DatabasePool` [INFO] [stderr] --> src/component/session.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | DatabaseError, DatabasePool, SessionAnyPool, SessionConfig, [INFO] [stderr] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `async_trait::async_trait` [INFO] [stderr] --> src/component/database.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use async_trait::async_trait; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `sea_orm::DbConn as DB` [INFO] [stderr] --> src/component/database.rs:7:9 [INFO] [stderr] | [INFO] [stderr] 7 | pub use sea_orm::DbConn as DB; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `config` [INFO] [stderr] --> src/component/session.rs:26:9 [INFO] [stderr] | [INFO] [stderr] 26 | config: Self::Config, [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `dotenv` [INFO] [stderr] --> src/cli.rs:25:9 [INFO] [stderr] | [INFO] [stderr] 25 | let dotenv = resolve_dotenv_file(); [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_dotenv` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `config` [INFO] [stderr] --> src/cli.rs:28:9 [INFO] [stderr] | [INFO] [stderr] 28 | let config = env.load_config().expect("Failed to load config"); [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stderr] [INFO] [stderr] warning: function `json_response` is never used [INFO] [stderr] --> src/http/message.rs:22:8 [INFO] [stderr] | [INFO] [stderr] 22 | pub fn json_response(data: T) -> Json> { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: type alias `Resp` is never used [INFO] [stderr] --> src/http/message.rs:38:10 [INFO] [stderr] | [INFO] [stderr] 38 | pub type Resp = crate::error::Result>>; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `ok` is never used [INFO] [stderr] --> src/http/message.rs:41:8 [INFO] [stderr] | [INFO] [stderr] 41 | pub fn ok(data: T) -> Resp { [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: function `empty` is never used [INFO] [stderr] --> src/http/message.rs:111:8 [INFO] [stderr] | [INFO] [stderr] 111 | pub fn empty() -> Result { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `text` is never used [INFO] [stderr] --> src/http/message.rs:115:8 [INFO] [stderr] | [INFO] [stderr] 115 | pub fn text(t: &str) -> Result { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `json` is never used [INFO] [stderr] --> src/http/message.rs:119:8 [INFO] [stderr] | [INFO] [stderr] 119 | pub fn json(t: T) -> Result { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `empty_json` is never used [INFO] [stderr] --> src/http/message.rs:123:8 [INFO] [stderr] | [INFO] [stderr] 123 | pub fn empty_json() -> Result { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `html` is never used [INFO] [stderr] --> src/http/message.rs:127:8 [INFO] [stderr] | [INFO] [stderr] 127 | pub fn html(content: &str) -> Result { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `redirect` is never used [INFO] [stderr] --> src/http/message.rs:131:8 [INFO] [stderr] | [INFO] [stderr] 131 | pub fn redirect(to: &str) -> Result { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `view` is never used [INFO] [stderr] --> src/http/message.rs:135:8 [INFO] [stderr] | [INFO] [stderr] 135 | pub fn view(v: &V, key: &str, data: S) -> Result [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ServerConfig` is never constructed [INFO] [stderr] --> src/http/app.rs:7:12 [INFO] [stderr] | [INFO] [stderr] 7 | pub struct ServerConfig { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait `AppTrait` is never used [INFO] [stderr] --> src/http/app.rs:12:11 [INFO] [stderr] | [INFO] [stderr] 12 | pub trait AppTrait: BaseAppTrait { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `shutdown_signal` is never used [INFO] [stderr] --> src/http/app.rs:17:10 [INFO] [stderr] | [INFO] [stderr] 17 | async fn shutdown_signal() { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static `DESCRIBE_METHOD_ACTION` is never used [INFO] [stderr] --> src/http/route.rs:13:8 [INFO] [stderr] | [INFO] [stderr] 13 | static DESCRIBE_METHOD_ACTION: OnceLock = OnceLock::new(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_describe_method_action` is never used [INFO] [stderr] --> src/http/route.rs:15:4 [INFO] [stderr] | [INFO] [stderr] 15 | fn get_describe_method_action() -> &'static Regex { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `method_action` is never used [INFO] [stderr] --> src/http/route.rs:24:8 [INFO] [stderr] | [INFO] [stderr] 24 | pub fn method_action(method: &MethodRouter>) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static `NORMALIZE_URL` is never used [INFO] [stderr] --> src/http/route.rs:49:8 [INFO] [stderr] | [INFO] [stderr] 49 | static NORMALIZE_URL: OnceLock = OnceLock::new(); [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_normalize_url` is never used [INFO] [stderr] --> src/http/route.rs:51:4 [INFO] [stderr] | [INFO] [stderr] 51 | fn get_normalize_url() -> &'static Regex { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Routes` is never constructed [INFO] [stderr] --> src/http/route.rs:56:12 [INFO] [stderr] | [INFO] [stderr] 56 | pub struct Routes [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Handler` is never constructed [INFO] [stderr] --> src/http/route.rs:79:12 [INFO] [stderr] | [INFO] [stderr] 79 | pub struct Handler [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `at`, `add`, `prefix`, and `layer` are never used [INFO] [stderr] --> src/http/route.rs:94:12 [INFO] [stderr] | [INFO] [stderr] 88 | / impl Routes [INFO] [stderr] 89 | | where [INFO] [stderr] 90 | | T: AppTrait, [INFO] [stderr] | |________________- associated items in this implementation [INFO] [stderr] ... [INFO] [stderr] 94 | pub fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 99 | pub fn at(prefix: &str) -> Self { [INFO] [stderr] | ^^ [INFO] [stderr] ... [INFO] [stderr] 107 | pub fn add(mut self, uri: &str, method: axum::routing::MethodRouter>) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 118 | pub fn prefix(mut self, uri: &str) -> Self { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 125 | pub fn layer(self, layer: L) -> Self [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `AppRoutes` is never constructed [INFO] [stderr] --> src/http/route.rs:149:12 [INFO] [stderr] | [INFO] [stderr] 149 | pub struct AppRoutes [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ListRoutes` is never constructed [INFO] [stderr] --> src/http/route.rs:158:12 [INFO] [stderr] | [INFO] [stderr] 158 | pub struct ListRoutes [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple associated items are never used [INFO] [stderr] --> src/http/route.rs:189:12 [INFO] [stderr] | [INFO] [stderr] 183 | / impl AppRoutes [INFO] [stderr] 184 | | where [INFO] [stderr] 185 | | T: AppTrait, [INFO] [stderr] | |________________- associated items in this implementation [INFO] [stderr] ... [INFO] [stderr] 189 | pub fn with_default_routes() -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 199 | pub fn empty() -> Self { [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 207 | pub fn collect(&self) -> Vec> { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 248 | pub fn get_prefix(&self) -> Option<&String> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 254 | pub fn get_routes(&self) -> &[Routes] { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 259 | pub fn prefix(mut self, prefix: &str) -> Self { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 266 | pub fn add_route(mut self, route: Routes) -> Self { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 273 | pub fn add_routes(mut self, mounts: Vec>) -> Self { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 287 | pub fn to_router( [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Health` is never constructed [INFO] [stderr] --> src/http/route.rs:336:16 [INFO] [stderr] | [INFO] [stderr] 336 | struct Health { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `ping` is never used [INFO] [stderr] --> src/http/route.rs:341:18 [INFO] [stderr] | [INFO] [stderr] 341 | async fn ping() -> Result { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `routes` is never used [INFO] [stderr] --> src/http/route.rs:346:16 [INFO] [stderr] | [INFO] [stderr] 346 | pub fn routes() -> Routes [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `LOG` is never used [INFO] [stderr] --> src/config.rs:20:15 [INFO] [stderr] | [INFO] [stderr] 20 | pub const LOG: &'static str = "log"; [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `SERVER` is never used [INFO] [stderr] --> src/config.rs:21:15 [INFO] [stderr] | [INFO] [stderr] 21 | pub const SERVER: &'static str = "server"; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `AppContext` is never constructed [INFO] [stderr] --> src/app.rs:7:12 [INFO] [stderr] | [INFO] [stderr] 7 | pub struct AppContext [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/app.rs:20:12 [INFO] [stderr] | [INFO] [stderr] 16 | / impl AppContext [INFO] [stderr] 17 | | where [INFO] [stderr] 18 | | T: AppTrait, [INFO] [stderr] | |________________- associated function in this implementation [INFO] [stderr] 19 | { [INFO] [stderr] 20 | pub fn new(app: T, config: Config, environment: Environment) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: trait `AppTrait` is never used [INFO] [stderr] --> src/app.rs:42:11 [INFO] [stderr] | [INFO] [stderr] 42 | pub trait AppTrait: Sized + Clone + Send + Sync + 'static { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `create_app` is never used [INFO] [stderr] --> src/app.rs:48:21 [INFO] [stderr] | [INFO] [stderr] 48 | pub(crate) async fn create_app(config: Config, environment: Environment) -> Result> [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait `ViewRenderer` is never used [INFO] [stderr] --> src/view/mod.rs:7:11 [INFO] [stderr] | [INFO] [stderr] 7 | pub trait ViewRenderer { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ViewEngine` is never constructed [INFO] [stderr] --> src/view/mod.rs:17:12 [INFO] [stderr] | [INFO] [stderr] 17 | pub struct ViewEngine(pub E); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/view/mod.rs:21:12 [INFO] [stderr] | [INFO] [stderr] 19 | impl ViewEngine { [INFO] [stderr] | --------------------- associated function in this implementation [INFO] [stderr] 20 | /// Creates a new [`Engine`] that wraps the given engine [INFO] [stderr] 21 | pub fn new(engine: E) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: function `template` is never used [INFO] [stderr] --> src/view/mod.rs:26:8 [INFO] [stderr] | [INFO] [stderr] 26 | pub fn template(template: &str, data: S) -> Result [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `VIEWS_DIR` is never used [INFO] [stderr] --> src/view/engines.rs:8:7 [INFO] [stderr] | [INFO] [stderr] 8 | const VIEWS_DIR: &str = "assets/views"; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `TeraView` is never constructed [INFO] [stderr] --> src/view/engines.rs:11:12 [INFO] [stderr] | [INFO] [stderr] 11 | pub struct TeraView { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated functions `build` and `from_custom_dir` are never used [INFO] [stderr] --> src/view/engines.rs:30:12 [INFO] [stderr] | [INFO] [stderr] 24 | impl TeraView { [INFO] [stderr] | ------------- associated functions in this implementation [INFO] [stderr] ... [INFO] [stderr] 30 | pub fn build() -> Result { [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 39 | pub fn from_custom_dir>(path: &P) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `register_filters` is never used [INFO] [stderr] --> src/view/engines.rs:91:16 [INFO] [stderr] | [INFO] [stderr] 91 | pub fn register_filters(tera: &mut tera::Tera) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `number_with_delimiter` is never used [INFO] [stderr] --> src/view/engines.rs:118:20 [INFO] [stderr] | [INFO] [stderr] 118 | pub fn number_with_delimiter(value: &Value, _: &HashMap) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `number_to_human_size` is never used [INFO] [stderr] --> src/view/engines.rs:137:20 [INFO] [stderr] | [INFO] [stderr] 137 | pub fn number_to_human_size(value: &Value, _: &HashMap) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `number_to_percentage` is never used [INFO] [stderr] --> src/view/engines.rs:161:20 [INFO] [stderr] | [INFO] [stderr] 161 | pub fn number_to_percentage(value: &Value, options: &HashMap) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `main` is never used [INFO] [stderr] --> src/cli.rs:22:8 [INFO] [stderr] | [INFO] [stderr] 22 | pub fn main() -> crate::error::Result<()> { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: `panshi` (lib) generated 53 warnings (run `cargo fix --lib -p panshi` to apply 4 suggestions) [INFO] [stderr] warning: `panshi` (lib test) generated 53 warnings (53 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.43s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: axum_session_redispool v0.3.0, num-bigint-dig v0.8.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3` [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/panshi-c9be86c4892fe62d) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stderr] Doc-tests panshi [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test src/view/engines.rs - view::engines::tera_builtins::filters::number::number_to_human_size (line 129) ... ignored [INFO] [stdout] test src/view/engines.rs - view::engines::tera_builtins::filters::number::number_to_percentage (line 152) ... ignored [INFO] [stdout] test src/view/engines.rs - view::engines::tera_builtins::filters::number::number_with_delimiter (line 110) ... ignored [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 3 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "873d0887cf49692d0b484a9f12b0bda8a88d3102aacede3df4f6efa474abe62b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "873d0887cf49692d0b484a9f12b0bda8a88d3102aacede3df4f6efa474abe62b", kill_on_drop: false }` [INFO] [stdout] 873d0887cf49692d0b484a9f12b0bda8a88d3102aacede3df4f6efa474abe62b