[INFO] cloning repository https://github.com/ObraztsovOleg/consultant-bot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ObraztsovOleg/consultant-bot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FObraztsovOleg%2Fconsultant-bot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FObraztsovOleg%2Fconsultant-bot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a8a784148a41932f3a9b45e787d75beceaa96521 [INFO] testing ObraztsovOleg/consultant-bot against 1.99.0-beta.1+cargoflags=--release for beta-release-1.99-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FObraztsovOleg%2Fconsultant-bot" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ObraztsovOleg/consultant-bot [INFO] finished tweaking git repo https://github.com/ObraztsovOleg/consultant-bot [INFO] tweaked toml for git repo https://github.com/ObraztsovOleg/consultant-bot written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ObraztsovOleg/consultant-bot on toolchain 1.99.0-beta.1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.99.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ObraztsovOleg/consultant-bot 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" "+1.99.0-beta.1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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] a7eff45f4c9f1644888fc79f1e5652099dceda4c1916d3b91f86979f8e081205 [INFO] running `Command { std: "docker" "start" "a7eff45f4c9f1644888fc79f1e5652099dceda4c1916d3b91f86979f8e081205", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a7eff45f4c9f1644888fc79f1e5652099dceda4c1916d3b91f86979f8e081205", 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" "a7eff45f4c9f1644888fc79f1e5652099dceda4c1916d3b91f86979f8e081205" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a7eff45f4c9f1644888fc79f1e5652099dceda4c1916d3b91f86979f8e081205", 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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "a7eff45f4c9f1644888fc79f1e5652099dceda4c1916d3b91f86979f8e081205" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.1" "build" "--frozen" "--message-format=json" "--release", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.103 [INFO] [stderr] Compiling unicode-ident v1.0.22 [INFO] [stderr] Compiling quote v1.0.42 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling libc v0.2.177 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling icu_properties_data v2.1.1 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling find-msvc-tools v0.1.4 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling cc v1.2.45 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Compiling syn v2.0.109 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling socket2 v0.6.1 [INFO] [stderr] Compiling mio v1.1.0 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling hashbrown v0.16.0 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Compiling indexmap v2.12.0 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling crypto-common v0.1.7 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling unicase v2.8.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling object v0.32.2 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling darling_core v0.21.3 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling iri-string v0.7.9 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling icu_properties v2.1.1 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling ar_archive_writer v0.2.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling psm v0.1.28 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling darling_macro v0.21.3 [INFO] [stderr] Compiling event-listener v5.4.1 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling crc v3.3.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rustls-pki-types v1.13.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling erasable v1.3.0 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling sqlx-core v0.8.6 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling darling v0.21.3 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling stacker v0.1.22 [INFO] [stderr] Compiling aho-corasick v1.1.4 [INFO] [stderr] Compiling anyhow v1.0.100 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling regex-syntax v0.8.8 [INFO] [stderr] Compiling tokio-util v0.7.17 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling h2 v0.4.12 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling derive_more-impl v1.0.0 [INFO] [stderr] Compiling sqlx-postgres v0.8.6 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling serde_with_macros v3.15.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling include_dir_macros v0.7.4 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling bytemuck v1.24.0 [INFO] [stderr] Compiling anstyle-parse v0.2.7 [INFO] [stderr] Compiling rgb v0.8.52 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling include_dir v0.7.4 [INFO] [stderr] Compiling regex v1.12.2 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling sqlx-macros-core v0.8.6 [INFO] [stderr] Compiling uuid v1.18.1 [INFO] [stderr] Compiling rc-box v1.3.0 [INFO] [stderr] Compiling derive_more v1.0.0 [INFO] [stderr] Compiling serde_with v3.15.1 [INFO] [stderr] Compiling hyper-util v0.1.17 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling reqwest v0.12.24 [INFO] [stderr] Compiling colored v3.0.0 [INFO] [stderr] Compiling takecell v0.1.1 [INFO] [stderr] Compiling anstyle v1.0.13 [INFO] [stderr] Compiling anstyle-query v1.1.4 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.2 [INFO] [stderr] Compiling winnow v0.7.13 [INFO] [stderr] Compiling colorchoice v1.0.4 [INFO] [stderr] Compiling toml_write v0.1.2 [INFO] [stderr] Compiling take_mut v0.2.2 [INFO] [stderr] Compiling dptree v0.5.1 [INFO] [stderr] Compiling anstream v0.6.21 [INFO] [stderr] Compiling aquamarine v0.6.0 [INFO] [stderr] Compiling sqlx-macros v0.8.6 [INFO] [stderr] Compiling reqwest-middleware v0.4.2 [INFO] [stderr] Compiling teloxide-core v0.13.0 [INFO] [stderr] Compiling env_filter v0.1.4 [INFO] [stderr] Compiling retry-policies v0.4.0 [INFO] [stderr] Compiling teloxide-macros v0.10.0 [INFO] [stderr] Compiling jiff v0.2.16 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling reqwest-retry v0.7.0 [INFO] [stderr] Compiling secrecy v0.8.0 [INFO] [stderr] Compiling env_logger v0.11.8 [INFO] [stderr] Compiling sqlx v0.8.6 [INFO] [stderr] Compiling toml v0.8.23 [INFO] [stderr] Compiling teloxide v0.17.0 [INFO] [stderr] Compiling consultant-bot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `DateTime` and `Utc` [INFO] [stdout] --> src/bot_state.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | use chrono::{DateTime, Utc}; [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: `std::fs` [INFO] [stdout] --> src/llm/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/llm/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/llm/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `escape_markdown_v2` [INFO] [stdout] --> src/handlers/messages.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | escape_markdown_v2, main_menu_keyboard, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `send_ai_message` [INFO] [stdout] --> src/handlers/callbacks.rs:13:31 [INFO] [stdout] | [INFO] [stdout] 13 | make_time_slots_keyboard, send_ai_message [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `teloxide::prelude::*` [INFO] [stdout] --> src/handlers/mod.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use teloxide::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Bot` and `prelude::Requester` [INFO] [stdout] --> src/handlers/mod.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | use teloxide::{Bot, prelude::Requester}; [INFO] [stdout] | ^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_consultant_price_by_id` and `get_time_slots` are never used [INFO] [stdout] --> src/bot_state.rs:314:18 [INFO] [stdout] | [INFO] [stdout] 52 | impl BotState { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 314 | pub async fn get_consultant_price_by_id(&self, assistant_id: i32) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 452 | pub async fn get_time_slots(&self) -> Result, BotStateError> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ServiceEmbeddingRequest` is never constructed [INFO] [stdout] --> src/llm/config.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct ServiceEmbeddingRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ServiceEmbeddingResponse` is never constructed [INFO] [stdout] --> src/llm/config.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct ServiceEmbeddingResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/models/ai_assistants.rs:70:18 [INFO] [stdout] | [INFO] [stdout] 19 | impl AIAssistant { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 70 | pub async fn get_model_by_id(state: &BotState, id: i32) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub async fn find_by_model_with_price(state: &BotState, model: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | pub async fn find_by_model(state: &BotState, model: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub async fn find_by_id(state: &BotState, id: i32) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | pub fn calculate_price(&self, duration_minutes: u32) -> (f64, u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | pub async fn update_assistant(state: &BotState, assistant: &AIAssistant) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 158 | pub async fn deactivate_assistant(state: &BotState, id: i32) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub async fn find_all_by_model(state: &BotState, model: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `provider_token` is never read [INFO] [stdout] --> src/models/payment_config.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct PaymentConfig { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 3 | pub provider_token: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PaymentConfig` 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: function `make_session_management_keyboard` is never used [INFO] [stdout] --> src/handlers/utils.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn make_session_management_keyboard(user_state: &UserState) -> InlineKeyboardMarkup { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_user_temperature` is never used [INFO] [stdout] --> src/handlers/utils.rs:133:14 [INFO] [stdout] | [INFO] [stdout] 133 | pub async fn get_user_temperature(chat_id: ChatId, state: &BotState) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `release` profile [optimized] target(s) in 5m 17s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: proc-macro-error2 v2.0.1 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "a7eff45f4c9f1644888fc79f1e5652099dceda4c1916d3b91f86979f8e081205", 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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "a7eff45f4c9f1644888fc79f1e5652099dceda4c1916d3b91f86979f8e081205" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.1" "test" "--frozen" "--no-run" "--message-format=json" "--release", kill_on_drop: false }` [INFO] [stderr] Compiling consultant-bot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `DateTime` and `Utc` [INFO] [stdout] --> src/bot_state.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | use chrono::{DateTime, Utc}; [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: `std::fs` [INFO] [stdout] --> src/llm/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/llm/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/llm/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `escape_markdown_v2` [INFO] [stdout] --> src/handlers/messages.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | escape_markdown_v2, main_menu_keyboard, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `send_ai_message` [INFO] [stdout] --> src/handlers/callbacks.rs:13:31 [INFO] [stdout] | [INFO] [stdout] 13 | make_time_slots_keyboard, send_ai_message [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `teloxide::prelude::*` [INFO] [stdout] --> src/handlers/mod.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use teloxide::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Bot` and `prelude::Requester` [INFO] [stdout] --> src/handlers/mod.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | use teloxide::{Bot, prelude::Requester}; [INFO] [stdout] | ^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_consultant_price_by_id` and `get_time_slots` are never used [INFO] [stdout] --> src/bot_state.rs:314:18 [INFO] [stdout] | [INFO] [stdout] 52 | impl BotState { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 314 | pub async fn get_consultant_price_by_id(&self, assistant_id: i32) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 452 | pub async fn get_time_slots(&self) -> Result, BotStateError> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ServiceEmbeddingRequest` is never constructed [INFO] [stdout] --> src/llm/config.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct ServiceEmbeddingRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ServiceEmbeddingResponse` is never constructed [INFO] [stdout] --> src/llm/config.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct ServiceEmbeddingResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/models/ai_assistants.rs:70:18 [INFO] [stdout] | [INFO] [stdout] 19 | impl AIAssistant { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 70 | pub async fn get_model_by_id(state: &BotState, id: i32) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub async fn find_by_model_with_price(state: &BotState, model: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | pub async fn find_by_model(state: &BotState, model: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub async fn find_by_id(state: &BotState, id: i32) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | pub fn calculate_price(&self, duration_minutes: u32) -> (f64, u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | pub async fn update_assistant(state: &BotState, assistant: &AIAssistant) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 158 | pub async fn deactivate_assistant(state: &BotState, id: i32) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub async fn find_all_by_model(state: &BotState, model: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `provider_token` is never read [INFO] [stdout] --> src/models/payment_config.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct PaymentConfig { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 3 | pub provider_token: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PaymentConfig` 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: function `make_session_management_keyboard` is never used [INFO] [stdout] --> src/handlers/utils.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn make_session_management_keyboard(user_state: &UserState) -> InlineKeyboardMarkup { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_user_temperature` is never used [INFO] [stdout] --> src/handlers/utils.rs:133:14 [INFO] [stdout] | [INFO] [stdout] 133 | pub async fn get_user_temperature(chat_id: ChatId, state: &BotState) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `release` profile [optimized] target(s) in 15.96s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: proc-macro-error2 v2.0.1 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "a7eff45f4c9f1644888fc79f1e5652099dceda4c1916d3b91f86979f8e081205", 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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "a7eff45f4c9f1644888fc79f1e5652099dceda4c1916d3b91f86979f8e081205" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.1" "test" "--frozen" "--release", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `DateTime` and `Utc` [INFO] [stderr] --> src/bot_state.rs:8:14 [INFO] [stderr] | [INFO] [stderr] 8 | use chrono::{DateTime, Utc}; [INFO] [stderr] | ^^^^^^^^ ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::fs` [INFO] [stderr] --> src/llm/mod.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use std::fs; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::io` [INFO] [stderr] --> src/llm/mod.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use std::io; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::path::Path` [INFO] [stderr] --> src/llm/mod.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use std::path::Path; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `escape_markdown_v2` [INFO] [stderr] --> src/handlers/messages.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | escape_markdown_v2, main_menu_keyboard, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `send_ai_message` [INFO] [stderr] --> src/handlers/callbacks.rs:13:31 [INFO] [stderr] | [INFO] [stderr] 13 | make_time_slots_keyboard, send_ai_message [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `teloxide::prelude::*` [INFO] [stderr] --> src/handlers/mod.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | use teloxide::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Bot` and `prelude::Requester` [INFO] [stderr] --> src/handlers/mod.rs:15:16 [INFO] [stderr] | [INFO] [stderr] 15 | use teloxide::{Bot, prelude::Requester}; [INFO] [stderr] | ^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `get_consultant_price_by_id` and `get_time_slots` are never used [INFO] [stderr] --> src/bot_state.rs:314:18 [INFO] [stderr] | [INFO] [stderr] 52 | impl BotState { [INFO] [stderr] | ------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 314 | pub async fn get_consultant_price_by_id(&self, assistant_id: i32) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 452 | pub async fn get_time_slots(&self) -> Result, BotStateError> { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: struct `ServiceEmbeddingRequest` is never constructed [INFO] [stderr] --> src/llm/config.rs:14:12 [INFO] [stderr] | [INFO] [stderr] 14 | pub struct ServiceEmbeddingRequest { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ServiceEmbeddingResponse` is never constructed [INFO] [stderr] --> src/llm/config.rs:26:12 [INFO] [stderr] | [INFO] [stderr] 26 | pub struct ServiceEmbeddingResponse { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple associated items are never used [INFO] [stderr] --> src/models/ai_assistants.rs:70:18 [INFO] [stderr] | [INFO] [stderr] 19 | impl AIAssistant { [INFO] [stderr] | ---------------- associated items in this implementation [INFO] [stderr] ... [INFO] [stderr] 70 | pub async fn get_model_by_id(state: &BotState, id: i32) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 89 | pub async fn find_by_model_with_price(state: &BotState, model: &str) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 112 | pub async fn find_by_model(state: &BotState, model: &str) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 116 | pub async fn find_by_id(state: &BotState, id: i32) -> Option { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 120 | pub fn calculate_price(&self, duration_minutes: u32) -> (f64, u32) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 127 | pub async fn update_assistant(state: &BotState, assistant: &AIAssistant) -> Result<(), Box> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 158 | pub async fn deactivate_assistant(state: &BotState, id: i32) -> Result<(), Box> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 170 | pub async fn find_all_by_model(state: &BotState, model: &str) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `provider_token` is never read [INFO] [stderr] --> src/models/payment_config.rs:3:9 [INFO] [stderr] | [INFO] [stderr] 2 | pub struct PaymentConfig { [INFO] [stderr] | ------------- field in this struct [INFO] [stderr] 3 | pub provider_token: Option, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `PaymentConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: function `make_session_management_keyboard` is never used [INFO] [stderr] --> src/handlers/utils.rs:115:8 [INFO] [stderr] | [INFO] [stderr] 115 | pub fn make_session_management_keyboard(user_state: &UserState) -> InlineKeyboardMarkup { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_user_temperature` is never used [INFO] [stderr] --> src/handlers/utils.rs:133:14 [INFO] [stderr] | [INFO] [stderr] 133 | pub async fn get_user_temperature(chat_id: ChatId, state: &BotState) -> f32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `consultant-bot` (bin "consultant-bot" test) generated 15 warnings (run `cargo fix --bin "consultant-bot" -p consultant-bot --tests` to apply 8 suggestions) [INFO] [stderr] Finished `release` profile [optimized] target(s) in 0.28s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: proc-macro-error2 v2.0.1 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/release/deps/consultant_bot-15ffaf221a313046) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "a7eff45f4c9f1644888fc79f1e5652099dceda4c1916d3b91f86979f8e081205", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a7eff45f4c9f1644888fc79f1e5652099dceda4c1916d3b91f86979f8e081205", kill_on_drop: false }` [INFO] [stdout] a7eff45f4c9f1644888fc79f1e5652099dceda4c1916d3b91f86979f8e081205