[INFO] cloning repository https://github.com/a-dev-mobile/thread-api [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/a-dev-mobile/thread-api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fa-dev-mobile%2Fthread-api", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fa-dev-mobile%2Fthread-api'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e16f5f9536487a2618faca1d681efdef97ec4e99 [INFO] building a-dev-mobile/thread-api against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fa-dev-mobile%2Fthread-api" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/a-dev-mobile/thread-api [INFO] finished tweaking git repo https://github.com/a-dev-mobile/thread-api [INFO] tweaked toml for git repo https://github.com/a-dev-mobile/thread-api written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/a-dev-mobile/thread-api 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] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 254 packages to latest compatible versions [INFO] [stderr] Adding matchit v0.8.4 (available: v0.8.6) [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] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded whoami v1.6.1 [INFO] [stderr] Downloaded strum v0.27.2 [INFO] [stderr] Downloaded strum_macros v0.27.2 [INFO] [stderr] Downloaded axum-macros v0.5.0 [INFO] [stderr] Downloaded tinyvec v1.10.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 45195e5a0f7f14e89fa8561dd265a6f3207daea3b4b4c0c1c69b2c6dac20103f [INFO] running `Command { std: "docker" "start" "-a" "45195e5a0f7f14e89fa8561dd265a6f3207daea3b4b4c0c1c69b2c6dac20103f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "45195e5a0f7f14e89fa8561dd265a6f3207daea3b4b4c0c1c69b2c6dac20103f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "45195e5a0f7f14e89fa8561dd265a6f3207daea3b4b4c0c1c69b2c6dac20103f", kill_on_drop: false }` [INFO] [stdout] 45195e5a0f7f14e89fa8561dd265a6f3207daea3b4b4c0c1c69b2c6dac20103f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] dfeb4e53cf1c7c561185c32b37e17c30a4a7c4ffd07b70f4208dd75e67fad822 [INFO] running `Command { std: "docker" "start" "-a" "dfeb4e53cf1c7c561185c32b37e17c30a4a7c4ffd07b70f4208dd75e67fad822", kill_on_drop: false }` [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling libc v0.2.176 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling cc v1.2.39 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling rustls v0.23.32 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling event-listener v5.4.1 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Compiling uuid v1.18.1 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling winnow v0.7.13 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling deranged v0.5.4 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling rustls-webpki v0.103.6 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling regex-automata v0.4.11 [INFO] [stderr] Compiling toml_parser v1.0.3 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling axum-core v0.5.2 [INFO] [stderr] Compiling serde_spanned v1.0.2 [INFO] [stderr] Compiling toml_datetime v0.7.2 [INFO] [stderr] Compiling serde_path_to_error v0.1.20 [INFO] [stderr] Compiling strum_macros v0.27.2 [INFO] [stderr] Compiling headers-core v0.3.0 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling axum-macros v0.5.0 [INFO] [stderr] Compiling toml_writer v1.0.3 [INFO] [stderr] Compiling toml v0.9.7 [INFO] [stderr] Compiling time v0.3.44 [INFO] [stderr] Compiling regex v1.11.3 [INFO] [stderr] Compiling sqlx-core v0.8.6 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling strum v0.27.2 [INFO] [stderr] Compiling headers v0.4.1 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling hyper-util v0.1.17 [INFO] [stderr] Compiling axum v0.8.4 [INFO] [stderr] Compiling sqlx-postgres v0.8.6 [INFO] [stderr] Compiling sqlx-macros-core v0.8.6 [INFO] [stderr] Compiling sqlx-macros v0.8.6 [INFO] [stderr] Compiling sqlx v0.8.6 [INFO] [stderr] Compiling thread_api v0.1.19 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `precision` [INFO] [stdout] --> src/features/imperial/v1/info/handler.rs:125:17 [INFO] [stdout] | [INFO] [stdout] 125 | let precision = params.precision; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_precision` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text_options_diameters_avg` [INFO] [stdout] --> src/features/imperial/v1/svg_dimensions/handlers/handler_get_svg_dimensions.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | let text_options_diameters_avg = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_text_options_diameters_avg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pool` [INFO] [stdout] --> src/features/trapezoidal/v1/svg_annotations/handlers/handler_get_svg_annotations.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | Extension(pool): Extension, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text_options_default` [INFO] [stdout] --> src/features/trapezoidal/v1/svg_dimensions/handlers/handler_get_svg_dimensions.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | let text_options_default = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_text_options_default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text_option_20_90_center_normal` [INFO] [stdout] --> src/features/trapezoidal/v1/svg_dimensions/handlers/handler_get_svg_dimensions.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | let text_option_20_90_center_normal = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_text_option_20_90_center_normal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text_option_40_0_end_bold` [INFO] [stdout] --> src/features/trapezoidal/v1/svg_dimensions/handlers/handler_get_svg_dimensions.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | let text_option_40_0_end_bold = svg_service.text_option_40_0_end_bold(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_text_option_40_0_end_bold` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Executor` [INFO] [stdout] --> src/shared/database/migrations.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | Executor, PgPool, [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 variable: `label_max` [INFO] [stdout] --> src/features/trapezoidal/common/calculators/additional_info.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let label_max = match language { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_label_max` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `basic` is never used [INFO] [stdout] --> src/features/health/entity.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl Health { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn basic(uptime: u64, version: String) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `settings` is never read [INFO] [stdout] --> src/features/health/service.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct HealthServiceImpl { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 18 | settings: Arc, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_major_diam_male` is never used [INFO] [stdout] --> src/features/imperial/v1/info/handler.rs:359:4 [INFO] [stdout] | [INFO] [stdout] 359 | fn calculate_major_diam_male(allowance: f64, d_basic: f64, td: f64) -> (f64, f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_major_diam_female` is never used [INFO] [stdout] --> src/features/imperial/v1/info/handler.rs:367:4 [INFO] [stdout] | [INFO] [stdout] 367 | fn calculate_major_diam_female(d_basic: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_pitch_diam_male` is never used [INFO] [stdout] --> src/features/imperial/v1/info/handler.rs:371:4 [INFO] [stdout] | [INFO] [stdout] 371 | fn calculate_pitch_diam_male(d_max: f64, pitch: f64, d_basic: f64, le: f64) -> (f64, f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_pitch_diam_female` is never used [INFO] [stdout] --> src/features/imperial/v1/info/handler.rs:379:4 [INFO] [stdout] | [INFO] [stdout] 379 | fn calculate_pitch_diam_female(d_basic: f64, pitch: f64, t_d2: f64) -> (f64, f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_minor_diam_female` is never used [INFO] [stdout] --> src/features/imperial/v1/info/handler.rs:397:4 [INFO] [stdout] | [INFO] [stdout] 397 | fn calculate_minor_diam_female(d_basic: f64, pitch: f64) -> (f64, f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unified_thread_allowance` is never used [INFO] [stdout] --> src/features/imperial/v1/info/handler.rs:419:8 [INFO] [stdout] | [INFO] [stdout] 419 | pub fn unified_thread_allowance(d: f64, p: f64, le: f64, class: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `QUERY_IMPERIAL` is never used [INFO] [stdout] --> src/features/imperial/v2/info/handler.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const QUERY_IMPERIAL: &str = " [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ThreadDataService` is never constructed [INFO] [stdout] --> src/features/pipe/v1/common/db.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct ThreadDataService { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ThreadData` is never constructed [INFO] [stdout] --> src/features/pipe/v1/common/db.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct ThreadData { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/features/pipe/v1/common/db.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl ThreadDataService { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 23 | pub fn new(pool: PgPool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub async fn fetch_thread_data( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | fn extract_basic_diameters( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | fn extract_tolerances( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | fn extract_basic_dimensions(&self, row: &sqlx::postgres::PgRow) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | fn get_f64(&self, row: &sqlx::postgres::PgRow, name: &str) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | fn get_tolerance(&self, row: &sqlx::postgres::PgRow, name: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TypePipeAdditionalInfo` is never used [INFO] [stdout] --> src/features/pipe/v1/common/enums/type_pipe_additional_info.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum TypePipeAdditionalInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TypePipeDiameter` is never used [INFO] [stdout] --> src/features/pipe/v1/common/enums/type_pipe_diameter.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum TypePipeDiameter { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ModelPipeDiameterBasic` is never constructed [INFO] [stdout] --> src/features/pipe/v1/common/models/model_pipe_diameter_basic.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct ModelPipeDiameterBasic { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ModelPipeOtherDimensions` is never constructed [INFO] [stdout] --> src/features/pipe/v1/common/models/model_pipe_other_dimensions.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct ModelPipeOtherDimensions { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ModelPipeTolerance` is never constructed [INFO] [stdout] --> src/features/pipe/v1/common/models/model_pipe_tolerance.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct ModelPipeTolerance { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `p` is never read [INFO] [stdout] --> src/features/trapezoidal/common/models/model_trapezoidal_other_dimensions.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct ModelTrapezoidalOtherDimensions { [INFO] [stdout] | ------------------------------- field in this struct [INFO] [stdout] 3 | pub p: f64, // Pitch [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `ModelTrapezoidalOtherDimensions` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `ei_d4` is never read [INFO] [stdout] --> src/features/trapezoidal/common/models/model_trapezoidal_tolerance.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct ModelTrapezoidalTolerance { [INFO] [stdout] | ------------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | pub ei_d4: f64, // Lower deviation for Major diameter (female) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ModelTrapezoidalTolerance` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `health_check` is never used [INFO] [stdout] --> src/shared/database/connection.rs:50:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl PostgresConnection { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub async fn health_check(&self) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_pending_migrations` is never used [INFO] [stdout] --> src/shared/database/migrations.rs:55:14 [INFO] [stdout] | [INFO] [stdout] 55 | pub async fn check_pending_migrations(pool: &PgPool) -> Result<(), MigrateError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `error` is never used [INFO] [stdout] --> src/shared/logging/macros.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn error(message: &str) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `warn` is never used [INFO] [stdout] --> src/shared/logging/macros.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn warn(message: &str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `info` is never used [INFO] [stdout] --> src/shared/logging/macros.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn info(message: &str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `debug` is never used [INFO] [stdout] --> src/shared/logging/macros.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn debug(message: &str) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `format` is never read [INFO] [stdout] --> src/shared/setting/models/app_config.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct LogConfig { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 11 | pub level: String, [INFO] [stdout] 12 | pub format: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LogConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_local`, `is_dev`, and `is_prod` are never used [INFO] [stdout] --> src/shared/setting/models/app_env.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl AppEnv { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 25 | pub fn is_local(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn is_dev(&self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn is_prod(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `settings` and `health_service` are never read [INFO] [stdout] --> src/shared/setting/models/app_state.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct AppState { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 15 | pub settings: Arc, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub health_service: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Language` is never used [INFO] [stdout] --> src/shared/utils/language.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum Language { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `code`, `is_russian`, and `is_english` are never used [INFO] [stdout] --> src/shared/utils/language.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Language { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 11 | /// Возвращает код языка [INFO] [stdout] 12 | pub fn code(&self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn is_russian(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn is_english(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LanguageUtils` is never constructed [INFO] [stdout] --> src/shared/utils/language.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct LanguageUtils; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated functions are never used [INFO] [stdout] --> src/shared/utils/language.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 50 | impl LanguageUtils { [INFO] [stdout] | ------------------ associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn extract_from_headers(headers: &HeaderMap) -> Language { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn parse_accept_language(accept_language: &str) -> Language { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn localize_text(language: &Language, ru_text: &str, en_text: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn localize_optional_text(language: &Language, ru_text: Option<&str>, en_text: Option<&str>) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn default() -> Language { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn is_supported(lang_code: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn supported_languages() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 35s [INFO] running `Command { std: "docker" "inspect" "dfeb4e53cf1c7c561185c32b37e17c30a4a7c4ffd07b70f4208dd75e67fad822", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dfeb4e53cf1c7c561185c32b37e17c30a4a7c4ffd07b70f4208dd75e67fad822", kill_on_drop: false }` [INFO] [stdout] dfeb4e53cf1c7c561185c32b37e17c30a4a7c4ffd07b70f4208dd75e67fad822 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] b96e29a8e986f83a3382b2d2c03b43d0cc75735e2185b2d430d44a2433e9a871 [INFO] running `Command { std: "docker" "start" "-a" "b96e29a8e986f83a3382b2d2c03b43d0cc75735e2185b2d430d44a2433e9a871", kill_on_drop: false }` [INFO] [stderr] Compiling thread_api v0.1.19 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `precision` [INFO] [stdout] --> src/features/imperial/v1/info/handler.rs:125:17 [INFO] [stdout] | [INFO] [stdout] 125 | let precision = params.precision; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_precision` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text_options_diameters_avg` [INFO] [stdout] --> src/features/imperial/v1/svg_dimensions/handlers/handler_get_svg_dimensions.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | let text_options_diameters_avg = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_text_options_diameters_avg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pool` [INFO] [stdout] --> src/features/trapezoidal/v1/svg_annotations/handlers/handler_get_svg_annotations.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | Extension(pool): Extension, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_pool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text_options_default` [INFO] [stdout] --> src/features/trapezoidal/v1/svg_dimensions/handlers/handler_get_svg_dimensions.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | let text_options_default = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_text_options_default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text_option_20_90_center_normal` [INFO] [stdout] --> src/features/trapezoidal/v1/svg_dimensions/handlers/handler_get_svg_dimensions.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | let text_option_20_90_center_normal = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_text_option_20_90_center_normal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text_option_40_0_end_bold` [INFO] [stdout] --> src/features/trapezoidal/v1/svg_dimensions/handlers/handler_get_svg_dimensions.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | let text_option_40_0_end_bold = svg_service.text_option_40_0_end_bold(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_text_option_40_0_end_bold` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Executor` [INFO] [stdout] --> src/shared/database/migrations.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | Executor, PgPool, [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 variable: `label_max` [INFO] [stdout] --> src/features/trapezoidal/common/calculators/additional_info.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let label_max = match language { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_label_max` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `basic` is never used [INFO] [stdout] --> src/features/health/entity.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl Health { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn basic(uptime: u64, version: String) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `settings` is never read [INFO] [stdout] --> src/features/health/service.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct HealthServiceImpl { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 18 | settings: Arc, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_major_diam_male` is never used [INFO] [stdout] --> src/features/imperial/v1/info/handler.rs:359:4 [INFO] [stdout] | [INFO] [stdout] 359 | fn calculate_major_diam_male(allowance: f64, d_basic: f64, td: f64) -> (f64, f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_major_diam_female` is never used [INFO] [stdout] --> src/features/imperial/v1/info/handler.rs:367:4 [INFO] [stdout] | [INFO] [stdout] 367 | fn calculate_major_diam_female(d_basic: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_pitch_diam_male` is never used [INFO] [stdout] --> src/features/imperial/v1/info/handler.rs:371:4 [INFO] [stdout] | [INFO] [stdout] 371 | fn calculate_pitch_diam_male(d_max: f64, pitch: f64, d_basic: f64, le: f64) -> (f64, f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_pitch_diam_female` is never used [INFO] [stdout] --> src/features/imperial/v1/info/handler.rs:379:4 [INFO] [stdout] | [INFO] [stdout] 379 | fn calculate_pitch_diam_female(d_basic: f64, pitch: f64, t_d2: f64) -> (f64, f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_minor_diam_female` is never used [INFO] [stdout] --> src/features/imperial/v1/info/handler.rs:397:4 [INFO] [stdout] | [INFO] [stdout] 397 | fn calculate_minor_diam_female(d_basic: f64, pitch: f64) -> (f64, f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `QUERY_IMPERIAL` is never used [INFO] [stdout] --> src/features/imperial/v2/info/handler.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const QUERY_IMPERIAL: &str = " [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ThreadDataService` is never constructed [INFO] [stdout] --> src/features/pipe/v1/common/db.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct ThreadDataService { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ThreadData` is never constructed [INFO] [stdout] --> src/features/pipe/v1/common/db.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct ThreadData { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/features/pipe/v1/common/db.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl ThreadDataService { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 23 | pub fn new(pool: PgPool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub async fn fetch_thread_data( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | fn extract_basic_diameters( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | fn extract_tolerances( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | fn extract_basic_dimensions(&self, row: &sqlx::postgres::PgRow) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | fn get_f64(&self, row: &sqlx::postgres::PgRow, name: &str) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | fn get_tolerance(&self, row: &sqlx::postgres::PgRow, name: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TypePipeAdditionalInfo` is never used [INFO] [stdout] --> src/features/pipe/v1/common/enums/type_pipe_additional_info.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum TypePipeAdditionalInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TypePipeDiameter` is never used [INFO] [stdout] --> src/features/pipe/v1/common/enums/type_pipe_diameter.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum TypePipeDiameter { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ModelPipeDiameterBasic` is never constructed [INFO] [stdout] --> src/features/pipe/v1/common/models/model_pipe_diameter_basic.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct ModelPipeDiameterBasic { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ModelPipeOtherDimensions` is never constructed [INFO] [stdout] --> src/features/pipe/v1/common/models/model_pipe_other_dimensions.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct ModelPipeOtherDimensions { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ModelPipeTolerance` is never constructed [INFO] [stdout] --> src/features/pipe/v1/common/models/model_pipe_tolerance.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct ModelPipeTolerance { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `p` is never read [INFO] [stdout] --> src/features/trapezoidal/common/models/model_trapezoidal_other_dimensions.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct ModelTrapezoidalOtherDimensions { [INFO] [stdout] | ------------------------------- field in this struct [INFO] [stdout] 3 | pub p: f64, // Pitch [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `ModelTrapezoidalOtherDimensions` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `ei_d4` is never read [INFO] [stdout] --> src/features/trapezoidal/common/models/model_trapezoidal_tolerance.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct ModelTrapezoidalTolerance { [INFO] [stdout] | ------------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | pub ei_d4: f64, // Lower deviation for Major diameter (female) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ModelTrapezoidalTolerance` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `health_check` is never used [INFO] [stdout] --> src/shared/database/connection.rs:50:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl PostgresConnection { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub async fn health_check(&self) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_pending_migrations` is never used [INFO] [stdout] --> src/shared/database/migrations.rs:55:14 [INFO] [stdout] | [INFO] [stdout] 55 | pub async fn check_pending_migrations(pool: &PgPool) -> Result<(), MigrateError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `error` is never used [INFO] [stdout] --> src/shared/logging/macros.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn error(message: &str) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `warn` is never used [INFO] [stdout] --> src/shared/logging/macros.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn warn(message: &str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `info` is never used [INFO] [stdout] --> src/shared/logging/macros.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn info(message: &str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `debug` is never used [INFO] [stdout] --> src/shared/logging/macros.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn debug(message: &str) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `format` is never read [INFO] [stdout] --> src/shared/setting/models/app_config.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct LogConfig { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 11 | pub level: String, [INFO] [stdout] 12 | pub format: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LogConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_local`, `is_dev`, and `is_prod` are never used [INFO] [stdout] --> src/shared/setting/models/app_env.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl AppEnv { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 25 | pub fn is_local(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn is_dev(&self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn is_prod(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `settings` and `health_service` are never read [INFO] [stdout] --> src/shared/setting/models/app_state.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct AppState { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 15 | pub settings: Arc, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub health_service: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Language` is never used [INFO] [stdout] --> src/shared/utils/language.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum Language { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `code`, `is_russian`, and `is_english` are never used [INFO] [stdout] --> src/shared/utils/language.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Language { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 11 | /// Возвращает код языка [INFO] [stdout] 12 | pub fn code(&self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn is_russian(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn is_english(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LanguageUtils` is never constructed [INFO] [stdout] --> src/shared/utils/language.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct LanguageUtils; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated functions are never used [INFO] [stdout] --> src/shared/utils/language.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 50 | impl LanguageUtils { [INFO] [stdout] | ------------------ associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn extract_from_headers(headers: &HeaderMap) -> Language { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn parse_accept_language(accept_language: &str) -> Language { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn localize_text(language: &Language, ru_text: &str, en_text: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn localize_optional_text(language: &Language, ru_text: Option<&str>, en_text: Option<&str>) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn default() -> Language { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn is_supported(lang_code: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn supported_languages() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 7.77s [INFO] running `Command { std: "docker" "inspect" "b96e29a8e986f83a3382b2d2c03b43d0cc75735e2185b2d430d44a2433e9a871", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b96e29a8e986f83a3382b2d2c03b43d0cc75735e2185b2d430d44a2433e9a871", kill_on_drop: false }` [INFO] [stdout] b96e29a8e986f83a3382b2d2c03b43d0cc75735e2185b2d430d44a2433e9a871