[INFO] cloning repository https://github.com/NeuraHals/MEDUSA [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/NeuraHals/MEDUSA" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNeuraHals%2FMEDUSA", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNeuraHals%2FMEDUSA'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 633ac68c44d0cc378e88bbee4afe72b4f077f768 [INFO] checking NeuraHals/MEDUSA against 444dcce484c66c8d626806a8556be3b4d3ef381a for pr-160902 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNeuraHals%2FMEDUSA" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/NeuraHals/MEDUSA [INFO] finished tweaking git repo https://github.com/NeuraHals/MEDUSA [INFO] tweaked toml for git repo https://github.com/NeuraHals/MEDUSA written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/NeuraHals/MEDUSA on toolchain 444dcce484c66c8d626806a8556be3b4d3ef381a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+444dcce484c66c8d626806a8556be3b4d3ef381a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/NeuraHals/MEDUSA 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" "+444dcce484c66c8d626806a8556be3b4d3ef381a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wasm-bindgen v0.2.121 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.121 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.121 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.121 [INFO] [stderr] Downloaded js-sys v0.3.98 [INFO] [stderr] Downloaded opentelemetry v0.22.0 [INFO] [stderr] Downloaded opentelemetry_sdk v0.22.1 [INFO] [stderr] Downloaded tracing-opentelemetry v0.23.0 [INFO] [stderr] Downloaded tokio-retry v0.3.1 [INFO] [stderr] Downloaded tower-http v0.5.2 [INFO] [stderr] Downloaded redis v0.25.5 [INFO] [stderr] Downloaded rdkafka v0.36.2 [INFO] [stderr] Downloaded opentelemetry-otlp v0.15.0 [INFO] [stderr] Downloaded opentelemetry-semantic-conventions v0.14.0 [INFO] [stderr] Downloaded rand_distr v0.4.3 [INFO] [stderr] Downloaded toml_edit v0.25.11+spec-1.1.0 [INFO] [stderr] Downloaded dashmap v5.5.3 [INFO] [stderr] Downloaded config v0.14.1 [INFO] [stderr] Downloaded rust-ini v0.20.0 [INFO] [stderr] Downloaded opentelemetry-proto v0.5.0 [INFO] [stderr] Downloaded yaml-rust2 v0.8.1 [INFO] [stderr] Downloaded tonic-build v0.11.0 [INFO] [stderr] Downloaded prost-build v0.12.6 [INFO] [stderr] Downloaded prost-types v0.12.6 [INFO] [stderr] Downloaded spinning_top v0.3.0 [INFO] [stderr] Downloaded web-sys v0.3.98 [INFO] [stderr] Downloaded futures-timer v3.0.3 [INFO] [stderr] Downloaded governor v0.6.3 [INFO] [stderr] Downloaded nonzero_ext v0.3.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 0392375b1dd15f13e316765a0ec43b090fb580081bc2e1e9c19e91d3caa8f6e8 [INFO] running `Command { std: "docker" "start" "0392375b1dd15f13e316765a0ec43b090fb580081bc2e1e9c19e91d3caa8f6e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0392375b1dd15f13e316765a0ec43b090fb580081bc2e1e9c19e91d3caa8f6e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "0392375b1dd15f13e316765a0ec43b090fb580081bc2e1e9c19e91d3caa8f6e8" "/opt/rustwide/cargo-home/bin/cargo" "+444dcce484c66c8d626806a8556be3b4d3ef381a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0392375b1dd15f13e316765a0ec43b090fb580081bc2e1e9c19e91d3caa8f6e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "0392375b1dd15f13e316765a0ec43b090fb580081bc2e1e9c19e91d3caa8f6e8" "/opt/rustwide/cargo-home/bin/cargo" "+444dcce484c66c8d626806a8556be3b4d3ef381a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling quote v1.0.45 [INFO] [stderr] Checking bytes v1.11.1 [INFO] [stderr] Checking memchr v2.8.0 [INFO] [stderr] Compiling zerocopy v0.8.48 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Checking log v0.4.29 [INFO] [stderr] Compiling cc v1.2.62 [INFO] [stderr] Compiling libc v0.2.186 [INFO] [stderr] Compiling anyhow v1.0.102 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking socket2 v0.6.3 [INFO] [stderr] Checking mio v1.2.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling hashbrown v0.17.1 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling once_cell v1.21.4 [INFO] [stderr] Compiling libm v0.2.16 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking http v1.4.0 [INFO] [stderr] Checking rustls-pki-types v1.14.1 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling winnow v1.0.3 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Checking bitflags v2.11.1 [INFO] [stderr] Compiling toml_datetime v1.1.1+spec-1.1.0 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Compiling getrandom v0.4.2 [INFO] [stderr] Checking urlencoding v2.1.3 [INFO] [stderr] Checking crossbeam-channel v0.5.15 [INFO] [stderr] Compiling pest v2.8.6 [INFO] [stderr] Checking glob v0.3.3 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking regex-syntax v0.8.10 [INFO] [stderr] Checking chacha20 v0.10.0 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking rustls-pemfile v2.2.0 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Compiling indexmap v2.14.0 [INFO] [stderr] Checking winnow v0.7.15 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking unicode-segmentation v1.13.2 [INFO] [stderr] Checking rand v0.10.1 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Compiling getrandom v0.2.17 [INFO] [stderr] Checking ordered-float v4.6.0 [INFO] [stderr] Compiling cmake v0.1.58 [INFO] [stderr] Compiling toml_parser v1.1.2+spec-1.1.0 [INFO] [stderr] Checking arraydeque v0.5.1 [INFO] [stderr] Checking convert_case v0.6.0 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Checking regex-automata v0.4.14 [INFO] [stderr] Checking concurrent-queue v2.5.0 [INFO] [stderr] Checking arc-swap v1.9.1 [INFO] [stderr] Checking serde_path_to_error v0.1.20 [INFO] [stderr] Checking parking v2.2.1 [INFO] [stderr] Checking sha1_smol v1.0.1 [INFO] [stderr] Checking const-random v0.1.18 [INFO] [stderr] Checking dlv-list v0.5.2 [INFO] [stderr] Checking opentelemetry-semantic-conventions v0.14.0 [INFO] [stderr] Checking pathdiff v0.2.3 [INFO] [stderr] Checking event-listener v5.4.1 [INFO] [stderr] Compiling rustix v1.1.4 [INFO] [stderr] Checking uuid v1.23.1 [INFO] [stderr] Compiling toml_edit v0.25.11+spec-1.1.0 [INFO] [stderr] Compiling linux-raw-sys v0.12.1 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling libz-sys v1.1.28 [INFO] [stderr] Compiling rdkafka-sys v4.10.0+2.12.1 [INFO] [stderr] Checking event-listener-strategy v0.5.4 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling fastrand v2.4.1 [INFO] [stderr] Checking typenum v1.20.0 [INFO] [stderr] Compiling petgraph v0.6.5 [INFO] [stderr] Checking async-channel v2.5.0 [INFO] [stderr] Compiling pest_meta v2.8.6 [INFO] [stderr] Compiling multimap v0.10.1 [INFO] [stderr] Compiling protoc-bin-vendored-win32 v3.2.0 [INFO] [stderr] Compiling proc-macro-crate v3.5.0 [INFO] [stderr] Compiling protoc-bin-vendored-macos-aarch_64 v3.2.0 [INFO] [stderr] Compiling protoc-bin-vendored-linux-x86_32 v3.2.0 [INFO] [stderr] Compiling protoc-bin-vendored-linux-ppcle_64 v3.2.0 [INFO] [stderr] Compiling protoc-bin-vendored-macos-x86_64 v3.2.0 [INFO] [stderr] Compiling protoc-bin-vendored-linux-x86_64 v3.2.0 [INFO] [stderr] Compiling protoc-bin-vendored-linux-s390_64 v3.2.0 [INFO] [stderr] Compiling protoc-bin-vendored-linux-aarch_64 v3.2.0 [INFO] [stderr] Compiling portable-atomic v1.13.1 [INFO] [stderr] Checking generic-array v0.14.7 [INFO] [stderr] Compiling protoc-bin-vendored v3.2.0 [INFO] [stderr] Checking raw-cpuid v11.6.0 [INFO] [stderr] Checking spinning_top v0.3.0 [INFO] [stderr] Checking futures-timer v3.0.3 [INFO] [stderr] Checking nonzero_ext v0.3.0 [INFO] [stderr] Checking no-std-compat v0.4.1 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.7 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking ahash v0.8.12 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling pest_generator v2.8.6 [INFO] [stderr] Compiling prettyplease v0.2.37 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling tempfile v3.27.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.6 [INFO] [stderr] Checking hashlink v0.8.4 [INFO] [stderr] Checking ordered-multimap v0.7.3 [INFO] [stderr] Checking dashmap v5.5.3 [INFO] [stderr] Compiling tokio-macros v2.7.0 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling futures-macro v0.3.32 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling zerofrom-derive v0.1.7 [INFO] [stderr] Compiling yoke-derive v0.8.2 [INFO] [stderr] Compiling zerovec-derive v0.11.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling prost-derive v0.12.6 [INFO] [stderr] Compiling pin-project-internal v1.1.13 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking tokio v1.52.3 [INFO] [stderr] Compiling rustls v0.22.4 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling num_enum_derive v0.7.6 [INFO] [stderr] Checking futures-util v0.3.32 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Compiling pest_derive v2.8.6 [INFO] [stderr] Checking yaml-rust2 v0.8.1 [INFO] [stderr] Checking rust-ini v0.20.0 [INFO] [stderr] Compiling regex v1.12.3 [INFO] [stderr] Checking quanta v0.12.6 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Checking pin-project v1.1.13 [INFO] [stderr] Checking zerofrom v0.1.8 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking yoke v0.8.2 [INFO] [stderr] Checking tower-http v0.5.2 [INFO] [stderr] Checking num_enum v0.7.6 [INFO] [stderr] Checking rustls-webpki v0.102.8 [INFO] [stderr] Checking zerovec v0.11.6 [INFO] [stderr] Checking zerotrie v0.2.4 [INFO] [stderr] Checking prost v0.12.6 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking opentelemetry v0.22.0 [INFO] [stderr] Compiling prost-types v0.12.6 [INFO] [stderr] Checking tinystr v0.8.3 [INFO] [stderr] Checking potential_utf v0.1.5 [INFO] [stderr] Checking icu_locale_core v2.2.0 [INFO] [stderr] Checking icu_collections v2.2.0 [INFO] [stderr] Checking futures-executor v0.3.32 [INFO] [stderr] Checking axum-core v0.3.4 [INFO] [stderr] Checking axum-core v0.4.5 [INFO] [stderr] Checking futures v0.3.32 [INFO] [stderr] Checking governor v0.6.3 [INFO] [stderr] Checking icu_provider v2.2.0 [INFO] [stderr] Checking toml_datetime v0.6.11 [INFO] [stderr] Checking icu_normalizer v2.2.0 [INFO] [stderr] Checking icu_properties v2.2.0 [INFO] [stderr] Checking serde_spanned v0.6.9 [INFO] [stderr] Checking tracing-serde v0.2.0 [INFO] [stderr] Checking toml_edit v0.22.27 [INFO] [stderr] Checking ron v0.8.1 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking tracing-subscriber v0.3.23 [INFO] [stderr] Checking json5 v0.4.1 [INFO] [stderr] Checking chrono v0.4.44 [INFO] [stderr] Compiling prost-build v0.12.6 [INFO] [stderr] Checking serde_yaml v0.9.34+deprecated [INFO] [stderr] Compiling tonic-build v0.11.0 [INFO] [stderr] Checking idna_adapter v1.2.2 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Checking toml v0.8.23 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking tokio-stream v0.1.18 [INFO] [stderr] Checking tokio-io-timeout v1.2.1 [INFO] [stderr] Checking tokio-rustls v0.25.0 [INFO] [stderr] Checking hyper v1.9.0 [INFO] [stderr] Checking tower v0.5.3 [INFO] [stderr] Checking tokio-retry v0.3.1 [INFO] [stderr] Checking config v0.14.1 [INFO] [stderr] Compiling allocation-agent v0.1.0 (/opt/rustwide/workdir/services/allocation-agent) [INFO] [stderr] Checking opentelemetry_sdk v0.22.1 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking combine v4.6.7 [INFO] [stderr] Checking hyper-util v0.1.20 [INFO] [stderr] Checking axum v0.7.9 [INFO] [stderr] Checking tracing-opentelemetry v0.23.0 [INFO] [stderr] Checking rdkafka v0.36.2 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking redis v0.25.5 [INFO] [stderr] Checking axum v0.6.20 [INFO] [stderr] Checking hyper-timeout v0.4.1 [INFO] [stderr] Checking tonic v0.11.0 [INFO] [stderr] Checking opentelemetry-proto v0.5.0 [INFO] [stderr] Checking opentelemetry-otlp v0.15.0 [INFO] [stderr] Checking confidence-agent v0.1.0 (/opt/rustwide/workdir/services/confidence-agent) [INFO] [stderr] Checking correlation-agent v0.1.0 (/opt/rustwide/workdir/services/correlation-agent) [INFO] [stderr] Checking simulation-agent v1.0.0 (/opt/rustwide/workdir/services/simulation-agent) [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> services/correlation-agent/src/health/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> services/correlation-agent/src/kafka/producer.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> services/simulation-agent/src/montecarlo/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> services/simulation-agent/src/simulation/mod.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | use tracing::{error, info, instrument}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> services/confidence-agent/src/kafka/producer.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> services/confidence-agent/src/kafka/producer.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [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: `ResourceStatus` and `ResourceType` [INFO] [stdout] --> services/allocation-agent/src/allocation/engine.rs:5:52 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::models::resource_state::{ResourceState, ResourceStatus, ResourceType}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::models::resource_state::ResourceType` [INFO] [stdout] --> services/allocation-agent/src/allocation/opportunity_cost.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::models::resource_state::ResourceType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Request`, `Response`, and `Status` [INFO] [stdout] --> services/allocation-agent/src/grpc/server.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use tonic::{Request, Response, Status}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing::info` [INFO] [stdout] --> services/allocation-agent/src/grpc/server.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | use tracing::info; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> services/correlation-agent/src/health/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> services/correlation-agent/src/kafka/producer.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> services/simulation-agent/src/montecarlo/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> services/simulation-agent/src/simulation/mod.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | use tracing::{error, info, instrument}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ResourceStatus` and `ResourceType` [INFO] [stdout] --> services/allocation-agent/src/allocation/engine.rs:5:52 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::models::resource_state::{ResourceState, ResourceStatus, ResourceType}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::models::resource_state::ResourceType` [INFO] [stdout] --> services/allocation-agent/src/allocation/opportunity_cost.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::models::resource_state::ResourceType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Request`, `Response`, and `Status` [INFO] [stdout] --> services/allocation-agent/src/grpc/server.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use tonic::{Request, Response, Status}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing::info` [INFO] [stdout] --> services/allocation-agent/src/grpc/server.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | use tracing::info; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `topic` [INFO] [stdout] --> services/simulation-agent/src/kafka/mod.rs:138:13 [INFO] [stdout] | [INFO] [stdout] 138 | let topic = cfg.input_topic.clone(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_topic` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `health` [INFO] [stdout] --> services/correlation-agent/src/kafka/consumer.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | health: Arc, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_health` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ACTION_THRESHOLD` is never used [INFO] [stdout] --> services/confidence-agent/src/classification/scoring.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const ACTION_THRESHOLD: f64 = 0.72; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CONTRADICTION_CACHE_PREFIX` is never used [INFO] [stdout] --> services/confidence-agent/src/classification/scoring.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const CONTRADICTION_CACHE_PREFIX: &str = "contradiction:"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CONTRADICTION_CACHE_TTL` is never used [INFO] [stdout] --> services/confidence-agent/src/classification/scoring.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const CONTRADICTION_CACHE_TTL: usize = 300; // 5 minutes [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `redis` and `contradiction_decay` are never read [INFO] [stdout] --> services/confidence-agent/src/classification/scoring.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct ConfidenceScorer { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 17 | redis: Arc, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 18 | contradiction_decay: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `score`, `get_signal_reliabilities`, and `check_contradictions` are never used [INFO] [stdout] --> services/confidence-agent/src/classification/scoring.rs:28:18 [INFO] [stdout] | [INFO] [stdout] 21 | impl ConfidenceScorer { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub async fn score(&self, event: &CrisisEvent) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | fn get_signal_reliabilities(&self, event: &CrisisEvent) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | async fn check_contradictions( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SourceWeights` is never constructed [INFO] [stdout] --> services/confidence-agent/src/classification/weights.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct SourceWeights; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `reliability` is never used [INFO] [stdout] --> services/confidence-agent/src/classification/weights.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl SourceWeights { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 8 | pub fn reliability(source: &str) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SeverityWeights` is never constructed [INFO] [stdout] --> services/confidence-agent/src/classification/weights.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct SeverityWeights; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `weight` is never used [INFO] [stdout] --> services/confidence-agent/src/classification/weights.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl SeverityWeights { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 26 | pub fn weight(severity: &Severity) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CrisisLabels` is never constructed [INFO] [stdout] --> services/confidence-agent/src/classification/weights.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct CrisisLabels; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `label` is never used [INFO] [stdout] --> services/confidence-agent/src/classification/weights.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl CrisisLabels { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 40 | pub fn label(ct: &CrisisType) -> &'static str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kafka_input_topic`, `kafka_output_topic`, `kafka_consumer_group`, `kafka_worker_pool_size`, and `schema_version` are never read [INFO] [stdout] --> services/confidence-agent/src/config.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Settings { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | pub kafka_input_topic: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | pub kafka_output_topic: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | pub kafka_dlq_topic: String, [INFO] [stdout] 13 | pub kafka_consumer_group: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | pub kafka_worker_pool_size: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub schema_version: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Settings` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `producer` and `dlq_topic` are never read [INFO] [stdout] --> services/confidence-agent/src/kafka/producer.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct DlqProducer { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 8 | producer: FutureProducer, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 9 | dlq_topic: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `publish` and `publish_to_topic` are never used [INFO] [stdout] --> services/confidence-agent/src/kafka/producer.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl DlqProducer { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub async fn publish(&self, payload: &[u8], error_code: &str) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub async fn publish_to_topic( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `with_retry` is never used [INFO] [stdout] --> services/confidence-agent/src/middleware/retry.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | pub async fn with_retry(action: F, context: &str) -> Result [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CircuitState` is never used [INFO] [stdout] --> services/confidence-agent/src/middleware/circuit_breaker.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum CircuitState { Closed, Open, HalfOpen } [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CircuitBreaker` is never constructed [INFO] [stdout] --> services/confidence-agent/src/middleware/circuit_breaker.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct CircuitBreaker { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `is_open`, `record_failure`, and `record_success` are never used [INFO] [stdout] --> services/confidence-agent/src/middleware/circuit_breaker.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl CircuitBreaker { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 18 | pub fn new(failure_threshold: u32, recovery_timeout_secs: u64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub async fn is_open(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub async fn record_failure(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub async fn record_success(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CrisisEvent` is never constructed [INFO] [stdout] --> services/confidence-agent/src/models/crisis_event.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct CrisisEvent { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CrisisType` is never used [INFO] [stdout] --> services/confidence-agent/src/models/crisis_event.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum CrisisType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Severity` is never used [INFO] [stdout] --> services/confidence-agent/src/models/crisis_event.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | pub enum Severity { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConfidenceResult` is never constructed [INFO] [stdout] --> services/confidence-agent/src/models/confidence_result.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct ConfidenceResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `manager` is never read [INFO] [stdout] --> services/confidence-agent/src/redis/client.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct RedisClient { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 6 | manager: ConnectionManager, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_str`, `set_ex`, and `exists` are never used [INFO] [stdout] --> services/confidence-agent/src/redis/client.rs:10:18 [INFO] [stdout] | [INFO] [stdout] 9 | impl RedisClient { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 10 | pub async fn get_str(&self, key: &str) -> Result> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub async fn set_ex(&self, key: &str, value: &str, ttl_secs: u64) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub async fn exists(&self, key: &str) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IdempotencyCache` is never constructed [INFO] [stdout] --> services/confidence-agent/src/state/cache.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct IdempotencyCache { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `check_and_insert` are never used [INFO] [stdout] --> services/confidence-agent/src/state/cache.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl IdempotencyCache { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 9 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn check_and_insert(&self, key: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `health` [INFO] [stdout] --> services/correlation-agent/src/kafka/consumer.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | health: Arc, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_health` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `schema_version` is never read [INFO] [stdout] --> services/correlation-agent/src/config.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Settings { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 19 | pub schema_version: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Settings` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `redis` is never read [INFO] [stdout] --> services/correlation-agent/src/correlation/engine.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct CorrelationEngine { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | redis: Arc, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CircuitState` is never used [INFO] [stdout] --> services/correlation-agent/src/middleware/circuit_breaker.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum CircuitState { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CircuitBreaker` is never constructed [INFO] [stdout] --> services/correlation-agent/src/middleware/circuit_breaker.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct CircuitBreaker { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `is_open`, `record_failure`, and `record_success` are never used [INFO] [stdout] --> services/correlation-agent/src/middleware/circuit_breaker.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl CircuitBreaker { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 22 | pub fn new(failure_threshold: u32, recovery_timeout_secs: u64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub async fn is_open(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub async fn record_failure(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub async fn record_success(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `with_retry` is never used [INFO] [stdout] --> services/correlation-agent/src/middleware/retry.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | pub async fn with_retry(action: F, context: &str) -> Result [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `manager` is never read [INFO] [stdout] --> services/correlation-agent/src/redis/client.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct RedisClient { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 7 | manager: ConnectionManager, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_str`, `set_ex`, and `exists` are never used [INFO] [stdout] --> services/correlation-agent/src/redis/client.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 10 | impl RedisClient { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 11 | pub async fn get_str(&self, key: &str) -> Result> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub async fn set_ex(&self, key: &str, value: &str, ttl_secs: u64) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub async fn exists(&self, key: &str) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IdempotencyCache` is never constructed [INFO] [stdout] --> services/correlation-agent/src/state/cache.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct IdempotencyCache { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `check_and_insert` are never used [INFO] [stdout] --> services/correlation-agent/src/state/cache.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl IdempotencyCache { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn check_and_insert(&self, key: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BayesianUpdater` is never constructed [INFO] [stdout] --> services/confidence-agent/src/classification/bayesian.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct BayesianUpdater { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update`, and `run` are never used [INFO] [stdout] --> services/confidence-agent/src/classification/bayesian.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl BayesianUpdater { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 14 | pub fn new(prior: f64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn update(&self, posterior: f64, likelihood: f64, false_positive_rate: f64) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn run(&self, signal_reliabilities: &[f64]) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ACTION_THRESHOLD` is never used [INFO] [stdout] --> services/confidence-agent/src/classification/scoring.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const ACTION_THRESHOLD: f64 = 0.72; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CONTRADICTION_CACHE_PREFIX` is never used [INFO] [stdout] --> services/confidence-agent/src/classification/scoring.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const CONTRADICTION_CACHE_PREFIX: &str = "contradiction:"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CONTRADICTION_CACHE_TTL` is never used [INFO] [stdout] --> services/confidence-agent/src/classification/scoring.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const CONTRADICTION_CACHE_TTL: usize = 300; // 5 minutes [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `redis` and `contradiction_decay` are never read [INFO] [stdout] --> services/confidence-agent/src/classification/scoring.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct ConfidenceScorer { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 17 | redis: Arc, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 18 | contradiction_decay: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `score`, `get_signal_reliabilities`, and `check_contradictions` are never used [INFO] [stdout] --> services/confidence-agent/src/classification/scoring.rs:28:18 [INFO] [stdout] | [INFO] [stdout] 21 | impl ConfidenceScorer { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub async fn score(&self, event: &CrisisEvent) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | fn get_signal_reliabilities(&self, event: &CrisisEvent) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | async fn check_contradictions( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SourceWeights` is never constructed [INFO] [stdout] --> services/confidence-agent/src/classification/weights.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct SourceWeights; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `reliability` is never used [INFO] [stdout] --> services/confidence-agent/src/classification/weights.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl SourceWeights { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 8 | pub fn reliability(source: &str) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SeverityWeights` is never constructed [INFO] [stdout] --> services/confidence-agent/src/classification/weights.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct SeverityWeights; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `weight` is never used [INFO] [stdout] --> services/confidence-agent/src/classification/weights.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl SeverityWeights { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 26 | pub fn weight(severity: &Severity) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CrisisLabels` is never constructed [INFO] [stdout] --> services/confidence-agent/src/classification/weights.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct CrisisLabels; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `label` is never used [INFO] [stdout] --> services/confidence-agent/src/classification/weights.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl CrisisLabels { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 40 | pub fn label(ct: &CrisisType) -> &'static str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kafka_input_topic`, `kafka_output_topic`, `kafka_consumer_group`, `kafka_worker_pool_size`, and `schema_version` are never read [INFO] [stdout] --> services/confidence-agent/src/config.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Settings { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | pub kafka_input_topic: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | pub kafka_output_topic: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | pub kafka_dlq_topic: String, [INFO] [stdout] 13 | pub kafka_consumer_group: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | pub kafka_worker_pool_size: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub schema_version: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Settings` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `producer` and `dlq_topic` are never read [INFO] [stdout] --> services/confidence-agent/src/kafka/producer.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct DlqProducer { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 8 | producer: FutureProducer, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 9 | dlq_topic: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `publish` and `publish_to_topic` are never used [INFO] [stdout] --> services/confidence-agent/src/kafka/producer.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl DlqProducer { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub async fn publish(&self, payload: &[u8], error_code: &str) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub async fn publish_to_topic( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `with_retry` is never used [INFO] [stdout] --> services/confidence-agent/src/middleware/retry.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | pub async fn with_retry(action: F, context: &str) -> Result [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CircuitState` is never used [INFO] [stdout] --> services/confidence-agent/src/middleware/circuit_breaker.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum CircuitState { Closed, Open, HalfOpen } [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CircuitBreaker` is never constructed [INFO] [stdout] --> services/confidence-agent/src/middleware/circuit_breaker.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct CircuitBreaker { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `is_open`, `record_failure`, and `record_success` are never used [INFO] [stdout] --> services/confidence-agent/src/middleware/circuit_breaker.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl CircuitBreaker { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 18 | pub fn new(failure_threshold: u32, recovery_timeout_secs: u64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub async fn is_open(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub async fn record_failure(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub async fn record_success(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CrisisEvent` is never constructed [INFO] [stdout] --> services/confidence-agent/src/models/crisis_event.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct CrisisEvent { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CrisisType` is never used [INFO] [stdout] --> services/confidence-agent/src/models/crisis_event.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum CrisisType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Severity` is never used [INFO] [stdout] --> services/confidence-agent/src/models/crisis_event.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | pub enum Severity { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConfidenceResult` is never constructed [INFO] [stdout] --> services/confidence-agent/src/models/confidence_result.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct ConfidenceResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `manager` is never read [INFO] [stdout] --> services/confidence-agent/src/redis/client.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct RedisClient { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 6 | manager: ConnectionManager, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_str`, `set_ex`, and `exists` are never used [INFO] [stdout] --> services/confidence-agent/src/redis/client.rs:10:18 [INFO] [stdout] | [INFO] [stdout] 9 | impl RedisClient { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 10 | pub async fn get_str(&self, key: &str) -> Result> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub async fn set_ex(&self, key: &str, value: &str, ttl_secs: u64) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub async fn exists(&self, key: &str) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IdempotencyCache` is never constructed [INFO] [stdout] --> services/confidence-agent/src/state/cache.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct IdempotencyCache { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `check_and_insert` are never used [INFO] [stdout] --> services/confidence-agent/src/state/cache.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl IdempotencyCache { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 9 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn check_and_insert(&self, key: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `topic` [INFO] [stdout] --> services/simulation-agent/src/kafka/mod.rs:138:13 [INFO] [stdout] | [INFO] [stdout] 138 | let topic = cfg.input_topic.clone(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_topic` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cascade_failure_prob` [INFO] [stdout] --> services/simulation-agent/src/montecarlo/mod.rs:155:13 [INFO] [stdout] | [INFO] [stdout] 155 | let cascade_failure_prob = failure_count / total; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cascade_failure_prob` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `schema_version` is never read [INFO] [stdout] --> services/correlation-agent/src/config.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Settings { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 19 | pub schema_version: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Settings` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `redis` is never read [INFO] [stdout] --> services/correlation-agent/src/correlation/engine.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct CorrelationEngine { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | redis: Arc, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CircuitState` is never used [INFO] [stdout] --> services/correlation-agent/src/middleware/circuit_breaker.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum CircuitState { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CircuitBreaker` is never constructed [INFO] [stdout] --> services/correlation-agent/src/middleware/circuit_breaker.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct CircuitBreaker { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `is_open`, `record_failure`, and `record_success` are never used [INFO] [stdout] --> services/correlation-agent/src/middleware/circuit_breaker.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl CircuitBreaker { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 22 | pub fn new(failure_threshold: u32, recovery_timeout_secs: u64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub async fn is_open(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub async fn record_failure(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub async fn record_success(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `with_retry` is never used [INFO] [stdout] --> services/correlation-agent/src/middleware/retry.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | pub async fn with_retry(action: F, context: &str) -> Result [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `manager` is never read [INFO] [stdout] --> services/correlation-agent/src/redis/client.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct RedisClient { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 7 | manager: ConnectionManager, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_str`, `set_ex`, and `exists` are never used [INFO] [stdout] --> services/correlation-agent/src/redis/client.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 10 | impl RedisClient { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 11 | pub async fn get_str(&self, key: &str) -> Result> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub async fn set_ex(&self, key: &str, value: &str, ttl_secs: u64) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub async fn exists(&self, key: &str) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IdempotencyCache` is never constructed [INFO] [stdout] --> services/correlation-agent/src/state/cache.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct IdempotencyCache { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `check_and_insert` are never used [INFO] [stdout] --> services/correlation-agent/src/state/cache.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl IdempotencyCache { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn check_and_insert(&self, key: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cascade_failure_prob` [INFO] [stdout] --> services/simulation-agent/src/montecarlo/mod.rs:155:13 [INFO] [stdout] | [INFO] [stdout] 155 | let cascade_failure_prob = failure_count / total; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cascade_failure_prob` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `worker_threads` is never read [INFO] [stdout] --> services/simulation-agent/src/config.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct SimulationConfig { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 40 | pub worker_threads: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SimulationConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `run_id` is never read [INFO] [stdout] --> services/simulation-agent/src/models/mod.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 93 | pub struct MonteCarloRun { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 94 | pub run_id: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MonteCarloRun` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChaosEvent` is never constructed [INFO] [stdout] --> services/simulation-agent/src/models/mod.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 104 | pub struct ChaosEvent { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ReplayEvent` is never constructed [INFO] [stdout] --> services/simulation-agent/src/models/mod.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct ReplayEvent { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `generate_chaos_events` is never used [INFO] [stdout] --> services/simulation-agent/src/montecarlo/mod.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl MonteCarloEngine { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn generate_chaos_events(&self, resource_ids: &[&str]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `speed_factor` is never read [INFO] [stdout] --> services/simulation-agent/src/replay/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct ReplayEngine { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 12 | /// Speedup factor: 10.0 = replay 10x faster than real-time [INFO] [stdout] 13 | pub speed_factor: f64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `execute` and `apply_event` are never used [INFO] [stdout] --> services/simulation-agent/src/replay/mod.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 16 | impl ReplayEngine { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub async fn execute(&self, events: &[ReplayEvent], scenario: &SimulationScenario) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | async fn apply_event(&self, event: &ReplayEvent) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `replay_engine` is never read [INFO] [stdout] --> services/simulation-agent/src/simulation/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct SimulationOrchestrator { [INFO] [stdout] | ---------------------- field in this struct [INFO] [stdout] 19 | mc_engine: MonteCarloEngine, [INFO] [stdout] 20 | replay_engine: ReplayEngine, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SimGraph` is never constructed [INFO] [stdout] --> services/simulation-agent/src/graph/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct SimGraph { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SimNode` is never constructed [INFO] [stdout] --> services/simulation-agent/src/graph/mod.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct SimNode { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_node`, `aggregate_pressure`, `snapshot`, and `apply_load` are never used [INFO] [stdout] --> services/simulation-agent/src/graph/mod.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl SimGraph { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 21 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn add_node(&mut self, node: SimNode) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn aggregate_pressure(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn snapshot(&self) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn apply_load(&mut self, resource_id: &str, additional_load: u32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `worker_threads` is never read [INFO] [stdout] --> services/simulation-agent/src/config.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct SimulationConfig { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 40 | pub worker_threads: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SimulationConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `run_id` is never read [INFO] [stdout] --> services/simulation-agent/src/models/mod.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 93 | pub struct MonteCarloRun { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 94 | pub run_id: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MonteCarloRun` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChaosEvent` is never constructed [INFO] [stdout] --> services/simulation-agent/src/models/mod.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 104 | pub struct ChaosEvent { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ReplayEvent` is never constructed [INFO] [stdout] --> services/simulation-agent/src/models/mod.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct ReplayEvent { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `generate_chaos_events` is never used [INFO] [stdout] --> services/simulation-agent/src/montecarlo/mod.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl MonteCarloEngine { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn generate_chaos_events(&self, resource_ids: &[&str]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `speed_factor` is never read [INFO] [stdout] --> services/simulation-agent/src/replay/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct ReplayEngine { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 12 | /// Speedup factor: 10.0 = replay 10x faster than real-time [INFO] [stdout] 13 | pub speed_factor: f64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `execute` and `apply_event` are never used [INFO] [stdout] --> services/simulation-agent/src/replay/mod.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 16 | impl ReplayEngine { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub async fn execute(&self, events: &[ReplayEvent], scenario: &SimulationScenario) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | async fn apply_event(&self, event: &ReplayEvent) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `replay_engine` is never read [INFO] [stdout] --> services/simulation-agent/src/simulation/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct SimulationOrchestrator { [INFO] [stdout] | ---------------------- field in this struct [INFO] [stdout] 19 | mc_engine: MonteCarloEngine, [INFO] [stdout] 20 | replay_engine: ReplayEngine, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SimGraph` is never constructed [INFO] [stdout] --> services/simulation-agent/src/graph/mod.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct SimGraph { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SimNode` is never constructed [INFO] [stdout] --> services/simulation-agent/src/graph/mod.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct SimNode { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_node`, `aggregate_pressure`, `snapshot`, and `apply_load` are never used [INFO] [stdout] --> services/simulation-agent/src/graph/mod.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl SimGraph { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 21 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn add_node(&mut self, node: SimNode) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn aggregate_pressure(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn snapshot(&self) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn apply_load(&mut self, resource_id: &str, additional_load: u32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> services/allocation-agent/src/allocation/engine.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | let mut undo_actions: Vec = blueprint [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target_api` [INFO] [stdout] --> services/allocation-agent/src/grpc/approval_client.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | target_api: &str, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_api` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `trace_id` [INFO] [stdout] --> services/allocation-agent/src/grpc/approval_client.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | trace_id: &str, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_trace_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> services/allocation-agent/src/allocation/engine.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | let mut undo_actions: Vec = blueprint [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target_api` [INFO] [stdout] --> services/allocation-agent/src/grpc/approval_client.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | target_api: &str, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_api` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `trace_id` [INFO] [stdout] --> services/allocation-agent/src/grpc/approval_client.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | trace_id: &str, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_trace_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `max_graph_depth` is never read [INFO] [stdout] --> services/allocation-agent/src/allocation/engine.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct AllocationEngine { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | max_graph_depth: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> services/allocation-agent/src/allocation/optimizer.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl BlueprintOptimizer { [INFO] [stdout] | ----------------------- associated function in this implementation [INFO] [stdout] 9 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OpportunityCostCalculator` is never constructed [INFO] [stdout] --> services/allocation-agent/src/allocation/opportunity_cost.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct OpportunityCostCalculator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `calculate` and `type_weight` are never used [INFO] [stdout] --> services/allocation-agent/src/allocation/opportunity_cost.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl OpportunityCostCalculator { [INFO] [stdout] | ------------------------------ associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn calculate( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | fn type_weight(resource_type: &str) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AllocationConstraints` is never constructed [INFO] [stdout] --> services/allocation-agent/src/allocation/constraints.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct AllocationConstraints; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `is_allocatable` and `min_capacity_required` are never used [INFO] [stdout] --> services/allocation-agent/src/allocation/constraints.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl AllocationConstraints { [INFO] [stdout] | -------------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 9 | pub fn is_allocatable(resource_type: &ResourceType, status: &ResourceStatus) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn min_capacity_required(resource_type: &ResourceType) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `schema_version`, `hoa_grpc_endpoint`, and `approval_timeout_secs` are never read [INFO] [stdout] --> services/allocation-agent/src/config.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Settings { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | pub schema_version: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub hoa_grpc_endpoint: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | /// Approval timeout in seconds [INFO] [stdout] 27 | pub approval_timeout_secs: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Settings` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AllocationGrpcServer` is never constructed [INFO] [stdout] --> services/allocation-agent/src/grpc/server.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct AllocationGrpcServer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> services/allocation-agent/src/grpc/server.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 10 | impl AllocationGrpcServer { [INFO] [stdout] | ------------------------- associated function in this implementation [INFO] [stdout] 11 | pub fn new() -> Self { Self } [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HoaApprovalClient` is never constructed [INFO] [stdout] --> services/allocation-agent/src/grpc/approval_client.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct HoaApprovalClient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `request_approval` are never used [INFO] [stdout] --> services/allocation-agent/src/grpc/approval_client.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 12 | impl HoaApprovalClient { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(endpoint: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub async fn request_approval( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `with_retry` is never used [INFO] [stdout] --> services/allocation-agent/src/middleware/retry.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | pub async fn with_retry(action: F, context: &str) -> Result [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CircuitState` is never used [INFO] [stdout] --> services/allocation-agent/src/middleware/circuit_breaker.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum CircuitState { Closed, Open, HalfOpen } [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CircuitBreaker` is never constructed [INFO] [stdout] --> services/allocation-agent/src/middleware/circuit_breaker.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct CircuitBreaker { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `is_open`, `record_failure`, and `record_success` are never used [INFO] [stdout] --> services/allocation-agent/src/middleware/circuit_breaker.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl CircuitBreaker { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 18 | pub fn new(failure_threshold: u32, recovery_timeout_secs: u64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub async fn is_open(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub async fn record_failure(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub async fn record_success(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_str` is never used [INFO] [stdout] --> services/allocation-agent/src/redis/client.rs:10:18 [INFO] [stdout] | [INFO] [stdout] 9 | impl RedisClient { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 10 | pub async fn get_str(&self, key: &str) -> Result> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IdempotencyCache` is never constructed [INFO] [stdout] --> services/allocation-agent/src/state/cache.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct IdempotencyCache { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `check_and_insert` are never used [INFO] [stdout] --> services/allocation-agent/src/state/cache.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl IdempotencyCache { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 9 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn check_and_insert(&self, key: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ResourceGraph` is never constructed [INFO] [stdout] --> services/allocation-agent/src/state/resource_graph.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct ResourceGraph; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `available_resources_query` and `resource_status_query` are never used [INFO] [stdout] --> services/allocation-agent/src/state/resource_graph.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl ResourceGraph { [INFO] [stdout] | ------------------ associated functions in this implementation [INFO] [stdout] 7 | /// Returns the Cypher query string for available resources in a hospital. [INFO] [stdout] 8 | pub fn available_resources_query(hospital_id: &str, max_depth: u32) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn resource_status_query(resource_id: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `max_graph_depth` is never read [INFO] [stdout] --> services/allocation-agent/src/allocation/engine.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct AllocationEngine { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | max_graph_depth: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> services/allocation-agent/src/allocation/optimizer.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl BlueprintOptimizer { [INFO] [stdout] | ----------------------- associated function in this implementation [INFO] [stdout] 9 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OpportunityCostCalculator` is never constructed [INFO] [stdout] --> services/allocation-agent/src/allocation/opportunity_cost.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct OpportunityCostCalculator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `calculate` and `type_weight` are never used [INFO] [stdout] --> services/allocation-agent/src/allocation/opportunity_cost.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl OpportunityCostCalculator { [INFO] [stdout] | ------------------------------ associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn calculate( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | fn type_weight(resource_type: &str) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AllocationConstraints` is never constructed [INFO] [stdout] --> services/allocation-agent/src/allocation/constraints.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct AllocationConstraints; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `is_allocatable` and `min_capacity_required` are never used [INFO] [stdout] --> services/allocation-agent/src/allocation/constraints.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl AllocationConstraints { [INFO] [stdout] | -------------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 9 | pub fn is_allocatable(resource_type: &ResourceType, status: &ResourceStatus) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn min_capacity_required(resource_type: &ResourceType) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `schema_version`, `hoa_grpc_endpoint`, and `approval_timeout_secs` are never read [INFO] [stdout] --> services/allocation-agent/src/config.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Settings { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 17 | pub schema_version: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub hoa_grpc_endpoint: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 26 | /// Approval timeout in seconds [INFO] [stdout] 27 | pub approval_timeout_secs: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Settings` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AllocationGrpcServer` is never constructed [INFO] [stdout] --> services/allocation-agent/src/grpc/server.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct AllocationGrpcServer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> services/allocation-agent/src/grpc/server.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 10 | impl AllocationGrpcServer { [INFO] [stdout] | ------------------------- associated function in this implementation [INFO] [stdout] 11 | pub fn new() -> Self { Self } [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HoaApprovalClient` is never constructed [INFO] [stdout] --> services/allocation-agent/src/grpc/approval_client.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct HoaApprovalClient { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `request_approval` are never used [INFO] [stdout] --> services/allocation-agent/src/grpc/approval_client.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 12 | impl HoaApprovalClient { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(endpoint: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub async fn request_approval( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `with_retry` is never used [INFO] [stdout] --> services/allocation-agent/src/middleware/retry.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | pub async fn with_retry(action: F, context: &str) -> Result [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CircuitState` is never used [INFO] [stdout] --> services/allocation-agent/src/middleware/circuit_breaker.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum CircuitState { Closed, Open, HalfOpen } [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CircuitBreaker` is never constructed [INFO] [stdout] --> services/allocation-agent/src/middleware/circuit_breaker.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct CircuitBreaker { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `is_open`, `record_failure`, and `record_success` are never used [INFO] [stdout] --> services/allocation-agent/src/middleware/circuit_breaker.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl CircuitBreaker { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 18 | pub fn new(failure_threshold: u32, recovery_timeout_secs: u64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub async fn is_open(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub async fn record_failure(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub async fn record_success(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_str` is never used [INFO] [stdout] --> services/allocation-agent/src/redis/client.rs:10:18 [INFO] [stdout] | [INFO] [stdout] 9 | impl RedisClient { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 10 | pub async fn get_str(&self, key: &str) -> Result> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IdempotencyCache` is never constructed [INFO] [stdout] --> services/allocation-agent/src/state/cache.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct IdempotencyCache { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `check_and_insert` are never used [INFO] [stdout] --> services/allocation-agent/src/state/cache.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl IdempotencyCache { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 9 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn check_and_insert(&self, key: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ResourceGraph` is never constructed [INFO] [stdout] --> services/allocation-agent/src/state/resource_graph.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct ResourceGraph; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `available_resources_query` and `resource_status_query` are never used [INFO] [stdout] --> services/allocation-agent/src/state/resource_graph.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl ResourceGraph { [INFO] [stdout] | ------------------ associated functions in this implementation [INFO] [stdout] 7 | /// Returns the Cypher query string for available resources in a hospital. [INFO] [stdout] 8 | pub fn available_resources_query(hospital_id: &str, max_depth: u32) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn resource_status_query(resource_id: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 51s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: redis v0.25.5 [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" "0392375b1dd15f13e316765a0ec43b090fb580081bc2e1e9c19e91d3caa8f6e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0392375b1dd15f13e316765a0ec43b090fb580081bc2e1e9c19e91d3caa8f6e8", kill_on_drop: false }` [INFO] [stdout] 0392375b1dd15f13e316765a0ec43b090fb580081bc2e1e9c19e91d3caa8f6e8