[INFO] cloning repository https://github.com/ModernEinstien/Rust-AI-Marketing-Agent
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ModernEinstien/Rust-AI-Marketing-Agent" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FModernEinstien%2FRust-AI-Marketing-Agent", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FModernEinstien%2FRust-AI-Marketing-Agent'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 6241eeb5ec6e71e6d3d7e1ac1642de7a442c5bb5
[INFO] checking ModernEinstien/Rust-AI-Marketing-Agent/6241eeb5ec6e71e6d3d7e1ac1642de7a442c5bb5 against c9ff496891c278ad660bc0ab85c1f0b72059464a for pr-160491
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FModernEinstien%2FRust-AI-Marketing-Agent" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/ModernEinstien/Rust-AI-Marketing-Agent
[INFO] finished tweaking git repo https://github.com/ModernEinstien/Rust-AI-Marketing-Agent
[INFO] tweaked toml for git repo https://github.com/ModernEinstien/Rust-AI-Marketing-Agent written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/ModernEinstien/Rust-AI-Marketing-Agent on toolchain c9ff496891c278ad660bc0ab85c1f0b72059464a
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c9ff496891c278ad660bc0ab85c1f0b72059464a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/ModernEinstien/Rust-AI-Marketing-Agent 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" "+c9ff496891c278ad660bc0ab85c1f0b72059464a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded redox_syscall v0.5.15
[INFO] [stderr]   Downloaded prettyplease v0.2.36
[INFO] [stderr]   Downloaded rdkafka v0.38.0
[INFO] [stderr]   Downloaded ngrok v0.16.1
[INFO] [stderr]   Downloaded awaitdrop v0.1.2
[INFO] [stderr]   Downloaded proxy-protocol v0.5.0
[INFO] [stderr]   Downloaded snafu-derive v0.6.10
[INFO] [stderr]   Downloaded snafu v0.6.10
[INFO] [stderr]   Downloaded muxado v0.5.2
[INFO] [stderr]   Downloaded generational-arena v0.2.9
[INFO] [stderr]   Downloaded hyper-http-proxy v1.1.0
[INFO] [stderr]   Downloaded rdkafka-sys v4.9.0+2.10.0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:00c5645b54fe3ce5dae1417175e3c7fb6a6646c021d554ecd63a097b8b9f3602" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] ae3d7cedefb38c48eeacfd43bc521e1f238044d1b7984f50a1c585d2d8ed1143
[INFO] running `Command { std: "docker" "start" "ae3d7cedefb38c48eeacfd43bc521e1f238044d1b7984f50a1c585d2d8ed1143", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "ae3d7cedefb38c48eeacfd43bc521e1f238044d1b7984f50a1c585d2d8ed1143", 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" "ae3d7cedefb38c48eeacfd43bc521e1f238044d1b7984f50a1c585d2d8ed1143" "/opt/rustwide/cargo-home/bin/cargo" "+c9ff496891c278ad660bc0ab85c1f0b72059464a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "ae3d7cedefb38c48eeacfd43bc521e1f238044d1b7984f50a1c585d2d8ed1143", 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" "ae3d7cedefb38c48eeacfd43bc521e1f238044d1b7984f50a1c585d2d8ed1143" "/opt/rustwide/cargo-home/bin/cargo" "+c9ff496891c278ad660bc0ab85c1f0b72059464a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]     Checking futures-core v0.3.31
[INFO] [stderr]     Checking log v0.4.27
[INFO] [stderr]    Compiling libc v0.2.174
[INFO] [stderr]     Checking futures-io v0.3.31
[INFO] [stderr]     Checking futures-task v0.3.31
[INFO] [stderr]     Checking hashbrown v0.15.4
[INFO] [stderr]    Compiling syn v2.0.104
[INFO] [stderr]     Checking http-body v1.0.1
[INFO] [stderr]    Compiling rustversion v1.0.21
[INFO] [stderr]    Compiling serde_json v1.0.142
[INFO] [stderr]    Compiling openssl v0.10.73
[INFO] [stderr]     Checking encoding_rs v0.8.35
[INFO] [stderr]     Checking chrono v0.4.41
[INFO] [stderr]    Compiling aws-lc-rs v1.13.3
[INFO] [stderr]    Compiling rustls v0.23.29
[INFO] [stderr]    Compiling doc-comment v0.3.3
[INFO] [stderr]     Checking futures-channel v0.3.31
[INFO] [stderr]     Checking sync_wrapper v1.0.2
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]     Checking sha1 v0.10.6
[INFO] [stderr]     Checking headers-core v0.3.0
[INFO] [stderr]     Checking generational-arena v0.2.9
[INFO] [stderr]     Checking regex-automata v0.4.9
[INFO] [stderr]     Checking rustls-native-certs v0.7.3
[INFO] [stderr]     Checking http-body-util v0.1.3
[INFO] [stderr]     Checking matchit v0.8.4
[INFO] [stderr]     Checking arc-swap v1.7.1
[INFO] [stderr]     Checking headers v0.4.1
[INFO] [stderr]     Checking indexmap v2.10.0
[INFO] [stderr]    Compiling jobserver v0.1.33
[INFO] [stderr]     Checking parking_lot_core v0.9.11
[INFO] [stderr]     Checking signal-hook-registry v1.4.5
[INFO] [stderr]     Checking mio v1.0.4
[INFO] [stderr]     Checking socket2 v0.6.0
[INFO] [stderr]     Checking socket2 v0.5.10
[INFO] [stderr]     Checking getrandom v0.3.3
[INFO] [stderr]     Checking getrandom v0.2.16
[INFO] [stderr]     Checking hostname v0.3.1
[INFO] [stderr]    Compiling cc v1.2.30
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]     Checking parking_lot v0.12.4
[INFO] [stderr]     Checking uuid v1.17.0
[INFO] [stderr]     Checking rand_core v0.9.3
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking rand_chacha v0.9.0
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]     Checking rand v0.9.2
[INFO] [stderr]    Compiling cmake v0.1.54
[INFO] [stderr]    Compiling openssl-sys v0.9.109
[INFO] [stderr]    Compiling libz-sys v1.1.22
[INFO] [stderr]    Compiling rdkafka-sys v4.9.0+2.10.0
[INFO] [stderr]    Compiling aws-lc-sys v0.30.0
[INFO] [stderr]    Compiling native-tls v0.2.14
[INFO] [stderr]     Checking regex v1.11.1
[INFO] [stderr]    Compiling snafu-derive v0.6.10
[INFO] [stderr]    Compiling synstructure v0.13.2
[INFO] [stderr]     Checking snafu v0.6.10
[INFO] [stderr]     Checking proxy-protocol v0.5.0
[INFO] [stderr]    Compiling tokio-macros v2.5.0
[INFO] [stderr]    Compiling futures-macro v0.3.31
[INFO] [stderr]    Compiling zerofrom-derive v0.1.6
[INFO] [stderr]    Compiling tracing-attributes v0.1.30
[INFO] [stderr]    Compiling yoke-derive v0.8.0
[INFO] [stderr]    Compiling zerovec-derive v0.11.1
[INFO] [stderr]    Compiling displaydoc v0.2.5
[INFO] [stderr]    Compiling serde_derive v1.0.219
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]     Checking tokio v1.47.1
[INFO] [stderr]    Compiling num_enum_derive v0.7.4
[INFO] [stderr]    Compiling async-stream-impl v0.3.6
[INFO] [stderr]     Checking futures-util v0.3.31
[INFO] [stderr]    Compiling pin-project-internal v1.1.10
[INFO] [stderr]    Compiling async-trait v0.1.88
[INFO] [stderr]    Compiling thiserror-impl v2.0.12
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]     Checking async-stream v0.3.6
[INFO] [stderr]     Checking tracing v0.1.41
[INFO] [stderr]     Checking zerofrom v0.1.6
[INFO] [stderr]     Checking axum-core v0.5.2
[INFO] [stderr]     Checking yoke v0.8.0
[INFO] [stderr]     Checking num_enum v0.7.4
[INFO] [stderr]     Checking zerovec v0.11.2
[INFO] [stderr]     Checking zerotrie v0.2.2
[INFO] [stderr]     Checking pin-project v1.1.10
[INFO] [stderr]     Checking thiserror v1.0.69
[INFO] [stderr]     Checking thiserror v2.0.12
[INFO] [stderr]     Checking tinystr v0.8.1
[INFO] [stderr]     Checking potential_utf v0.1.2
[INFO] [stderr]     Checking icu_collections v2.0.0
[INFO] [stderr]     Checking icu_locale_core v2.0.0
[INFO] [stderr]     Checking icu_provider v2.0.0
[INFO] [stderr]     Checking futures-executor v0.3.31
[INFO] [stderr]     Checking icu_properties v2.0.1
[INFO] [stderr]     Checking icu_normalizer v2.0.0
[INFO] [stderr]     Checking axum-core v0.4.5
[INFO] [stderr]     Checking futures v0.3.31
[INFO] [stderr]     Checking awaitdrop v0.1.2
[INFO] [stderr]     Checking serde v1.0.219
[INFO] [stderr]     Checking idna_adapter v1.2.1
[INFO] [stderr]     Checking idna v1.0.3
[INFO] [stderr]     Checking url v2.5.4
[INFO] [stderr]     Checking tokio-util v0.7.15
[INFO] [stderr]     Checking tower v0.5.2
[INFO] [stderr]     Checking tokio-native-tls v0.3.1
[INFO] [stderr]     Checking tokio-stream v0.1.17
[INFO] [stderr]     Checking tokio-retry v0.3.0
[INFO] [stderr]     Checking tokio-socks v0.5.2
[INFO] [stderr]     Checking h2 v0.4.11
[INFO] [stderr]     Checking muxado v0.5.2
[INFO] [stderr]     Checking tokio-test v0.4.4
[INFO] [stderr]     Checking tower-http v0.6.6
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking serde_path_to_error v0.1.17
[INFO] [stderr]     Checking rustls-webpki v0.103.4
[INFO] [stderr]     Checking rdkafka v0.38.0
[INFO] [stderr]     Checking hyper v1.6.0
[INFO] [stderr]     Checking tokio-rustls v0.26.2
[INFO] [stderr]     Checking futures-rustls v0.26.0
[INFO] [stderr]     Checking hyper-util v0.1.15
[INFO] [stderr]     Checking hyper-tls v0.6.0
[INFO] [stderr]     Checking hyper-rustls v0.27.7
[INFO] [stderr]     Checking axum v0.7.9
[INFO] [stderr]     Checking axum v0.8.4
[INFO] [stderr]     Checking reqwest v0.12.22
[INFO] [stderr]     Checking hyper-http-proxy v1.1.0
[INFO] [stderr]     Checking shared_models v0.1.0 (/opt/rustwide/workdir/shared_models)
[INFO] [stdout] warning: unused import: `File`
[INFO] [stdout]  --> shared_models/src/lib.rs:2:28
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::fs::{OpenOptions, File};
[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: `SeekFrom` and `Seek`
[INFO] [stdout]  --> shared_models/src/lib.rs:3:44
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::io::{BufReader, BufWriter, Write, Seek, SeekFrom};
[INFO] [stdout]   |                                            ^^^^  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `File`
[INFO] [stdout]  --> shared_models/src/lib.rs:2:28
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::fs::{OpenOptions, File};
[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: `SeekFrom` and `Seek`
[INFO] [stdout]  --> shared_models/src/lib.rs:3:44
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::io::{BufReader, BufWriter, Write, Seek, SeekFrom};
[INFO] [stdout]   |                                            ^^^^  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Checking content_generator v0.1.0 (/opt/rustwide/workdir/content_generator)
[INFO] [stderr]     Checking approval_service v0.1.0 (/opt/rustwide/workdir/approval_service)
[INFO] [stderr]     Checking idea_ingestor v0.1.0 (/opt/rustwide/workdir/idea_ingestor)
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]  --> content_generator/src/ai.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::env;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Checking post_scheduler v0.1.0 (/opt/rustwide/workdir/post_scheduler)
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]  --> content_generator/src/ai.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::env;
[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::env`
[INFO] [stdout]  --> content_generator/src/ai.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::env;
[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: `approval_service::*`
[INFO] [stdout]  --> approval_service/tests/integration_test_approval.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use approval_service::*;
[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: `super::*`
[INFO] [stdout]    --> approval_service/tests/integration_test_approval.rs:310:9
[INFO] [stdout]     |
[INFO] [stdout] 310 |     use super::*;
[INFO] [stdout]     |         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ai_init`
[INFO] [stdout]  --> content_generator/tests/integration_test_generator.rs:2:44
[INFO] [stdout]   |
[INFO] [stdout] 2 | use content_generator::ai::{generate_post, ai_init}; // Replace with your actual crate name
[INFO] [stdout]   |                                            ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `generate_post` is never used
[INFO] [stdout]  --> content_generator/src/ai.rs:6:14
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub async fn generate_post(topic: &str) -> Result<String> {
[INFO] [stdout]   |              ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self`
[INFO] [stdout]  --> post_scheduler/src/main.rs:3:24
[INFO] [stdout]   |
[INFO] [stdout] 3 | use rdkafka::message::{self, Message};
[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: `InstagramAttachment`, `InstagramConversation`, `InstagramMessage`, `InstagramUser`, `log_post`, and `logger_init`
[INFO] [stdout]  --> post_scheduler/src/main.rs:5:21
[INFO] [stdout]   |
[INFO] [stdout] 5 | ...::{logger_init, log_post, log_message, ApprovedContent, PostResult, InstagramUser, InstagramAttachment, InstagramMessage, InstagramConversation, T...
[INFO] [stdout]   |       ^^^^^^^^^^^  ^^^^^^^^                                            ^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::error::Error`
[INFO] [stdout]   --> post_scheduler/src/main.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::error::Error;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]  --> content_generator/src/ai.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::env;
[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: `self`
[INFO] [stdout]  --> post_scheduler/src/main.rs:3:24
[INFO] [stdout]   |
[INFO] [stdout] 3 | use rdkafka::message::{self, Message};
[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: `InstagramAttachment`, `InstagramConversation`, `InstagramMessage`, `InstagramUser`, `log_post`, and `logger_init`
[INFO] [stdout]  --> post_scheduler/src/main.rs:5:21
[INFO] [stdout]   |
[INFO] [stdout] 5 | ...::{logger_init, log_post, log_message, ApprovedContent, PostResult, InstagramUser, InstagramAttachment, InstagramMessage, InstagramConversation, T...
[INFO] [stdout]   |       ^^^^^^^^^^^  ^^^^^^^^                                            ^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::error::Error`
[INFO] [stdout]   --> post_scheduler/src/main.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::error::Error;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `generate_post` is never used
[INFO] [stdout]  --> content_generator/src/ai.rs:6:14
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub async fn generate_post(topic: &str) -> Result<String> {
[INFO] [stdout]   |              ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> post_scheduler/src/api_clients.rs:176:13
[INFO] [stdout]     |
[INFO] [stdout] 176 |         let mut last_message_id = String::new();
[INFO] [stdout]     |             ----^^^^^^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> post_scheduler/src/api_clients.rs:176:13
[INFO] [stdout]     |
[INFO] [stdout] 176 |         let mut last_message_id = String::new();
[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: `last_message_id`
[INFO] [stdout]    --> post_scheduler/src/api_clients.rs:176:13
[INFO] [stdout]     |
[INFO] [stdout] 176 |         let mut last_message_id = String::new();
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_message_id`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `last_message`
[INFO] [stdout]    --> post_scheduler/src/api_clients.rs:215:25
[INFO] [stdout]     |
[INFO] [stdout] 215 |             if let Some(last_message) = messages.first() {
[INFO] [stdout]     |                         ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_message`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `reply` is never read
[INFO] [stdout]    --> post_scheduler/src/api_clients.rs:194:25
[INFO] [stdout]     |
[INFO] [stdout] 194 |         let mut reply = String::new();
[INFO] [stdout]     |                         ^^^^^^^^^^^^^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 206 |             reply = generate_post(&combined).await?;
[INFO] [stdout]     |             ----- `reply` is overwritten here before the previous value is read
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `found_business_message` is never read
[INFO] [stdout]    --> post_scheduler/src/api_clients.rs:289:17
[INFO] [stdout]     |
[INFO] [stdout] 289 |                 found_business_message = true;
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `last_message_id`
[INFO] [stdout]    --> post_scheduler/src/api_clients.rs:176:13
[INFO] [stdout]     |
[INFO] [stdout] 176 |         let mut last_message_id = String::new();
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_message_id`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `last_message`
[INFO] [stdout]    --> post_scheduler/src/api_clients.rs:215:25
[INFO] [stdout]     |
[INFO] [stdout] 215 |             if let Some(last_message) = messages.first() {
[INFO] [stdout]     |                         ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_message`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `reply` is never read
[INFO] [stdout]    --> post_scheduler/src/api_clients.rs:194:25
[INFO] [stdout]     |
[INFO] [stdout] 194 |         let mut reply = String::new();
[INFO] [stdout]     |                         ^^^^^^^^^^^^^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 206 |             reply = generate_post(&combined).await?;
[INFO] [stdout]     |             ----- `reply` is overwritten here before the previous value is read
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `found_business_message` is never read
[INFO] [stdout]    --> post_scheduler/src/api_clients.rs:289:17
[INFO] [stdout]     |
[INFO] [stdout] 289 |                 found_business_message = true;
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `scheduled_post`
[INFO] [stdout]    --> post_scheduler/src/main.rs:285:32
[INFO] [stdout]     |
[INFO] [stdout] 285 | async fn request_fresh_content(scheduled_post: &ScheduledPost) -> Option<ApprovedContent> {
[INFO] [stdout]     |                                ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scheduled_post`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ConsecutiveSenderInfo` is never constructed
[INFO] [stdout]  --> post_scheduler/src/api_clients.rs:9:12
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub struct ConsecutiveSenderInfo {
[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 `ConversationMessages` is never constructed
[INFO] [stdout]   --> post_scheduler/src/api_clients.rs:15:12
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub struct ConversationMessages {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `SendMessageResponse` is never constructed
[INFO] [stdout]   --> post_scheduler/src/api_clients.rs:23:12
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub struct SendMessageResponse {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `api_clients_init` is never used
[INFO] [stdout]   --> post_scheduler/src/api_clients.rs:28:8
[INFO] [stdout]    |
[INFO] [stdout] 28 | pub fn api_clients_init() {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `ig_upload_photo` is never used
[INFO] [stdout]   --> post_scheduler/src/api_clients.rs:32:14
[INFO] [stdout]    |
[INFO] [stdout] 32 | pub async fn ig_upload_photo(image_url: &str, caption: &str) -> Result<String, Box<dyn std::error::Error>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `ig_get_conversations` is never used
[INFO] [stdout]   --> post_scheduler/src/api_clients.rs:79:14
[INFO] [stdout]    |
[INFO] [stdout] 79 | pub async fn ig_get_conversations(limit: Option<u32>) -> Result<Vec<InstagramConversation>, Box<dyn std::error::Error>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `ig_get_messages` is never used
[INFO] [stdout]    --> post_scheduler/src/api_clients.rs:124:14
[INFO] [stdout]     |
[INFO] [stdout] 124 | pub async fn ig_get_messages(conversation_id: &str, limit: Option<u32>) -> Result<Vec<InstagramMessage>, Box<dyn std::error::Error>> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `handle_instagram_messages` is never used
[INFO] [stdout]    --> post_scheduler/src/api_clients.rs:166:14
[INFO] [stdout]     |
[INFO] [stdout] 166 | pub async fn handle_instagram_messages() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_consecutive_sender_messages` is never used
[INFO] [stdout]    --> post_scheduler/src/api_clients.rs:245:14
[INFO] [stdout]     |
[INFO] [stdout] 245 | pub async fn get_consecutive_sender_messages(conversation_id: &str) -> Result<Vec<InstagramMessage>, Box<dyn std::error::Error>> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_consecutive_sender_messages_with_info` is never used
[INFO] [stdout]    --> post_scheduler/src/api_clients.rs:272:14
[INFO] [stdout]     |
[INFO] [stdout] 272 | pub async fn get_consecutive_sender_messages_with_info(conversation_id: &str) -> Result<ConsecutiveSenderInfo, Box<dyn std::error::...
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_unanswered_messages_from_all_conversations` is never used
[INFO] [stdout]    --> post_scheduler/src/api_clients.rs:308:14
[INFO] [stdout]     |
[INFO] [stdout] 308 | pub async fn get_unanswered_messages_from_all_conversations() -> Result<Vec<ConversationMessages>, Box<dyn std::error::Error>> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `ig_reply_to_message` is never used
[INFO] [stdout]    --> post_scheduler/src/api_clients.rs:331:14
[INFO] [stdout]     |
[INFO] [stdout] 331 | pub async fn ig_reply_to_message(recipient_id: &str, message_text: &str) -> Result<SendMessageResponse, Box<dyn std::error::Error>> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `parse_conversation` is never used
[INFO] [stdout]    --> post_scheduler/src/api_clients.rs:371:4
[INFO] [stdout]     |
[INFO] [stdout] 371 | fn parse_conversation(data: &Value) -> Result<InstagramConversation, Box<dyn std::error::Error>> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `parse_message` is never used
[INFO] [stdout]    --> post_scheduler/src/api_clients.rs:392:4
[INFO] [stdout]     |
[INFO] [stdout] 392 | fn parse_message(data: &Value) -> Result<InstagramMessage, Box<dyn std::error::Error>> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `combine_sender_messages` is never used
[INFO] [stdout]    --> post_scheduler/src/api_clients.rs:432:8
[INFO] [stdout]     |
[INFO] [stdout] 432 | pub fn combine_sender_messages(messages: &[InstagramMessage]) -> String {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_recipient_id_or_error` is never used
[INFO] [stdout]    --> post_scheduler/src/api_clients.rs:441:4
[INFO] [stdout]     |
[INFO] [stdout] 441 | fn get_recipient_id_or_error(conversation: &InstagramConversation, business_id: &str) -> Result<String, &'static str> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `scheduled_post`
[INFO] [stdout]    --> post_scheduler/src/main.rs:285:32
[INFO] [stdout]     |
[INFO] [stdout] 285 | async fn request_fresh_content(scheduled_post: &ScheduledPost) -> Option<ApprovedContent> {
[INFO] [stdout]     |                                ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scheduled_post`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ConsecutiveSenderInfo` is never constructed
[INFO] [stdout]  --> post_scheduler/src/api_clients.rs:9:12
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub struct ConsecutiveSenderInfo {
[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 `ConversationMessages` is never constructed
[INFO] [stdout]   --> post_scheduler/src/api_clients.rs:15:12
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub struct ConversationMessages {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `SendMessageResponse` is never constructed
[INFO] [stdout]   --> post_scheduler/src/api_clients.rs:23:12
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub struct SendMessageResponse {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `api_clients_init` is never used
[INFO] [stdout]   --> post_scheduler/src/api_clients.rs:28:8
[INFO] [stdout]    |
[INFO] [stdout] 28 | pub fn api_clients_init() {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `ig_upload_photo` is never used
[INFO] [stdout]   --> post_scheduler/src/api_clients.rs:32:14
[INFO] [stdout]    |
[INFO] [stdout] 32 | pub async fn ig_upload_photo(image_url: &str, caption: &str) -> Result<String, Box<dyn std::error::Error>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `ig_get_conversations` is never used
[INFO] [stdout]   --> post_scheduler/src/api_clients.rs:79:14
[INFO] [stdout]    |
[INFO] [stdout] 79 | pub async fn ig_get_conversations(limit: Option<u32>) -> Result<Vec<InstagramConversation>, Box<dyn std::error::Error>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `ig_get_messages` is never used
[INFO] [stdout]    --> post_scheduler/src/api_clients.rs:124:14
[INFO] [stdout]     |
[INFO] [stdout] 124 | pub async fn ig_get_messages(conversation_id: &str, limit: Option<u32>) -> Result<Vec<InstagramMessage>, Box<dyn std::error::Error>> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `handle_instagram_messages` is never used
[INFO] [stdout]    --> post_scheduler/src/api_clients.rs:166:14
[INFO] [stdout]     |
[INFO] [stdout] 166 | pub async fn handle_instagram_messages() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_consecutive_sender_messages` is never used
[INFO] [stdout]    --> post_scheduler/src/api_clients.rs:245:14
[INFO] [stdout]     |
[INFO] [stdout] 245 | pub async fn get_consecutive_sender_messages(conversation_id: &str) -> Result<Vec<InstagramMessage>, Box<dyn std::error::Error>> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_consecutive_sender_messages_with_info` is never used
[INFO] [stdout]    --> post_scheduler/src/api_clients.rs:272:14
[INFO] [stdout]     |
[INFO] [stdout] 272 | pub async fn get_consecutive_sender_messages_with_info(conversation_id: &str) -> Result<ConsecutiveSenderInfo, Box<dyn std::error::...
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_unanswered_messages_from_all_conversations` is never used
[INFO] [stdout]    --> post_scheduler/src/api_clients.rs:308:14
[INFO] [stdout]     |
[INFO] [stdout] 308 | pub async fn get_unanswered_messages_from_all_conversations() -> Result<Vec<ConversationMessages>, Box<dyn std::error::Error>> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `ig_reply_to_message` is never used
[INFO] [stdout]    --> post_scheduler/src/api_clients.rs:331:14
[INFO] [stdout]     |
[INFO] [stdout] 331 | pub async fn ig_reply_to_message(recipient_id: &str, message_text: &str) -> Result<SendMessageResponse, Box<dyn std::error::Error>> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `parse_conversation` is never used
[INFO] [stdout]    --> post_scheduler/src/api_clients.rs:371:4
[INFO] [stdout]     |
[INFO] [stdout] 371 | fn parse_conversation(data: &Value) -> Result<InstagramConversation, Box<dyn std::error::Error>> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `parse_message` is never used
[INFO] [stdout]    --> post_scheduler/src/api_clients.rs:392:4
[INFO] [stdout]     |
[INFO] [stdout] 392 | fn parse_message(data: &Value) -> Result<InstagramMessage, Box<dyn std::error::Error>> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `combine_sender_messages` is never used
[INFO] [stdout]    --> post_scheduler/src/api_clients.rs:432:8
[INFO] [stdout]     |
[INFO] [stdout] 432 | pub fn combine_sender_messages(messages: &[InstagramMessage]) -> String {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_recipient_id_or_error` is never used
[INFO] [stdout]    --> post_scheduler/src/api_clients.rs:441:4
[INFO] [stdout]     |
[INFO] [stdout] 441 | fn get_recipient_id_or_error(conversation: &InstagramConversation, business_id: &str) -> Result<String, &'static str> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Checking ngrok v0.16.1
[INFO] [stderr]     Checking message_handler v0.1.0 (/opt/rustwide/workdir/message_handler)
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]  --> message_handler/src/utilities.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::env;
[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: `rdkafka::message`
[INFO] [stdout]  --> message_handler/src/message_monitor.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use rdkafka::message;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `sleep`
[INFO] [stdout]  --> message_handler/src/message_monitor.rs:2:19
[INFO] [stdout]   |
[INFO] [stdout] 2 | use tokio::time::{sleep, Duration, Instant};
[INFO] [stdout]   |                   ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Serialize`
[INFO] [stdout]   --> message_handler/src/message_monitor.rs:12:26
[INFO] [stdout]    |
[INFO] [stdout] 12 | use serde::{Deserialize, Serialize};
[INFO] [stdout]    |                          ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `log_post`
[INFO] [stdout]   --> message_handler/src/message_monitor.rs:15:21
[INFO] [stdout]    |
[INFO] [stdout] 15 | use shared_models::{log_post, log_message};
[INFO] [stdout]    |                     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `get_recipient_id_or_error`
[INFO] [stdout]   --> message_handler/src/message_monitor.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout] 22 |     get_recipient_id_or_error,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]  --> message_handler/src/utilities.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::env;
[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: `rdkafka::message`
[INFO] [stdout]  --> message_handler/src/message_monitor.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use rdkafka::message;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `sleep`
[INFO] [stdout]  --> message_handler/src/message_monitor.rs:2:19
[INFO] [stdout]   |
[INFO] [stdout] 2 | use tokio::time::{sleep, Duration, Instant};
[INFO] [stdout]   |                   ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Serialize`
[INFO] [stdout]   --> message_handler/src/message_monitor.rs:12:26
[INFO] [stdout]    |
[INFO] [stdout] 12 | use serde::{Deserialize, Serialize};
[INFO] [stdout]    |                          ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `log_post`
[INFO] [stdout]   --> message_handler/src/message_monitor.rs:15:21
[INFO] [stdout]    |
[INFO] [stdout] 15 | use shared_models::{log_post, log_message};
[INFO] [stdout]    |                     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `get_recipient_id_or_error`
[INFO] [stdout]   --> message_handler/src/message_monitor.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout] 22 |     get_recipient_id_or_error,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `messages`
[INFO] [stdout]   --> message_handler/src/utilities.rs:38:13
[INFO] [stdout]    |
[INFO] [stdout] 38 |         let messages = ig_get_messages(&conversation.id, Some(10)).await?;
[INFO] [stdout]    |             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_messages`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `reply` is never read
[INFO] [stdout]   --> message_handler/src/utilities.rs:56:25
[INFO] [stdout]    |
[INFO] [stdout] 56 |         let mut reply = String::new();
[INFO] [stdout]    |                         ^^^^^^^^^^^^^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 68 |             reply = generate_post(&combined).await?;
[INFO] [stdout]    |             ----- `reply` is overwritten here before the previous value is read
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `found_business_message` is never read
[INFO] [stdout]    --> message_handler/src/utilities.rs:236:17
[INFO] [stdout]     |
[INFO] [stdout] 236 |                 found_business_message = true;
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `conversation_id`
[INFO] [stdout]    --> message_handler/src/message_monitor.rs:307:57
[INFO] [stdout]     |
[INFO] [stdout] 307 |     async fn send_reply_webhook(&self, sender_id: &str, conversation_id: &str) -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout]     |                                                         ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_conversation_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `message_id`
[INFO] [stdout]    --> message_handler/src/message_monitor.rs:204:9
[INFO] [stdout]     |
[INFO] [stdout] 204 |         message_id: &str,
[INFO] [stdout]     |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `messages`
[INFO] [stdout]   --> message_handler/src/utilities.rs:38:13
[INFO] [stdout]    |
[INFO] [stdout] 38 |         let messages = ig_get_messages(&conversation.id, Some(10)).await?;
[INFO] [stdout]    |             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_messages`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `reply` is never read
[INFO] [stdout]   --> message_handler/src/utilities.rs:56:25
[INFO] [stdout]    |
[INFO] [stdout] 56 |         let mut reply = String::new();
[INFO] [stdout]    |                         ^^^^^^^^^^^^^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 68 |             reply = generate_post(&combined).await?;
[INFO] [stdout]    |             ----- `reply` is overwritten here before the previous value is read
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `found_business_message` is never read
[INFO] [stdout]    --> message_handler/src/utilities.rs:236:17
[INFO] [stdout]     |
[INFO] [stdout] 236 |                 found_business_message = true;
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `object` is never read
[INFO] [stdout]   --> message_handler/src/message_monitor.rs:41:5
[INFO] [stdout]    |
[INFO] [stdout] 40 | struct WebhookPayload {
[INFO] [stdout]    |        -------------- field in this struct
[INFO] [stdout] 41 |     object: String,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `WebhookPayload` has a derived impl for the trait `Debug`, but this is 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: fields `id` and `time` are never read
[INFO] [stdout]   --> message_handler/src/message_monitor.rs:47:5
[INFO] [stdout]    |
[INFO] [stdout] 46 | struct WebhookEntry {
[INFO] [stdout]    |        ------------ fields in this struct
[INFO] [stdout] 47 |     id: String,
[INFO] [stdout]    |     ^^
[INFO] [stdout] 48 |     time: u64,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `WebhookEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `read_event` is never read
[INFO] [stdout]   --> message_handler/src/message_monitor.rs:60:5
[INFO] [stdout]    |
[INFO] [stdout] 54 | pub struct MessagingEvent {
[INFO] [stdout]    |            -------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 60 |     read_event: Option<ReadEvent>,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `MessagingEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `attachments` is never read
[INFO] [stdout]   --> message_handler/src/message_monitor.rs:72:5
[INFO] [stdout]    |
[INFO] [stdout] 69 | struct WebhookMessage {
[INFO] [stdout]    |        -------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 72 |     attachments: Option<Vec<WebhookAttachment>>,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `WebhookMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `attachment_type` and `payload` are never read
[INFO] [stdout]   --> message_handler/src/message_monitor.rs:78:5
[INFO] [stdout]    |
[INFO] [stdout] 76 | struct WebhookAttachment {
[INFO] [stdout]    |        ----------------- fields in this struct
[INFO] [stdout] 77 |     #[serde(rename = "type")]
[INFO] [stdout] 78 |     attachment_type: String,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 79 |     payload: serde_json::Value,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `WebhookAttachment` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `mid` is never read
[INFO] [stdout]   --> message_handler/src/message_monitor.rs:84:5
[INFO] [stdout]    |
[INFO] [stdout] 83 | struct ReadEvent {
[INFO] [stdout]    |        --------- field in this struct
[INFO] [stdout] 84 |     mid: String,
[INFO] [stdout]    |     ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ReadEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `conversation_id`
[INFO] [stdout]    --> message_handler/src/message_monitor.rs:307:57
[INFO] [stdout]     |
[INFO] [stdout] 307 |     async fn send_reply_webhook(&self, sender_id: &str, conversation_id: &str) -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout]     |                                                         ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_conversation_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `message_id`
[INFO] [stdout]    --> message_handler/src/message_monitor.rs:204:9
[INFO] [stdout]     |
[INFO] [stdout] 204 |         message_id: &str,
[INFO] [stdout]     |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `object` is never read
[INFO] [stdout]   --> message_handler/src/message_monitor.rs:41:5
[INFO] [stdout]    |
[INFO] [stdout] 40 | struct WebhookPayload {
[INFO] [stdout]    |        -------------- field in this struct
[INFO] [stdout] 41 |     object: String,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `WebhookPayload` has a derived impl for the trait `Debug`, but this is 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: fields `id` and `time` are never read
[INFO] [stdout]   --> message_handler/src/message_monitor.rs:47:5
[INFO] [stdout]    |
[INFO] [stdout] 46 | struct WebhookEntry {
[INFO] [stdout]    |        ------------ fields in this struct
[INFO] [stdout] 47 |     id: String,
[INFO] [stdout]    |     ^^
[INFO] [stdout] 48 |     time: u64,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `WebhookEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `read_event` is never read
[INFO] [stdout]   --> message_handler/src/message_monitor.rs:60:5
[INFO] [stdout]    |
[INFO] [stdout] 54 | pub struct MessagingEvent {
[INFO] [stdout]    |            -------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 60 |     read_event: Option<ReadEvent>,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `MessagingEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `attachments` is never read
[INFO] [stdout]   --> message_handler/src/message_monitor.rs:72:5
[INFO] [stdout]    |
[INFO] [stdout] 69 | struct WebhookMessage {
[INFO] [stdout]    |        -------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 72 |     attachments: Option<Vec<WebhookAttachment>>,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `WebhookMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `attachment_type` and `payload` are never read
[INFO] [stdout]   --> message_handler/src/message_monitor.rs:78:5
[INFO] [stdout]    |
[INFO] [stdout] 76 | struct WebhookAttachment {
[INFO] [stdout]    |        ----------------- fields in this struct
[INFO] [stdout] 77 |     #[serde(rename = "type")]
[INFO] [stdout] 78 |     attachment_type: String,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 79 |     payload: serde_json::Value,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `WebhookAttachment` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `mid` is never read
[INFO] [stdout]   --> message_handler/src/message_monitor.rs:84:5
[INFO] [stdout]    |
[INFO] [stdout] 83 | struct ReadEvent {
[INFO] [stdout]    |        --------- field in this struct
[INFO] [stdout] 84 |     mid: String,
[INFO] [stdout]    |     ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ReadEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `rdkafka::message`
[INFO] [stdout]  --> message_handler/src/message_monitor.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use rdkafka::message;
[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: `sleep`
[INFO] [stdout]  --> message_handler/src/message_monitor.rs:2:19
[INFO] [stdout]   |
[INFO] [stdout] 2 | use tokio::time::{sleep, Duration, Instant};
[INFO] [stdout]   |                   ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Serialize`
[INFO] [stdout]   --> message_handler/src/message_monitor.rs:12:26
[INFO] [stdout]    |
[INFO] [stdout] 12 | use serde::{Deserialize, Serialize};
[INFO] [stdout]    |                          ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `log_post`
[INFO] [stdout]   --> message_handler/src/message_monitor.rs:15:21
[INFO] [stdout]    |
[INFO] [stdout] 15 | use shared_models::{log_post, log_message};
[INFO] [stdout]    |                     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `get_recipient_id_or_error`
[INFO] [stdout]   --> message_handler/src/message_monitor.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout] 22 |     get_recipient_id_or_error,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]  --> message_handler/src/utilities.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::env;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `rdkafka::message`
[INFO] [stdout]  --> message_handler/src/message_monitor.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use rdkafka::message;
[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: `sleep`
[INFO] [stdout]  --> message_handler/src/message_monitor.rs:2:19
[INFO] [stdout]   |
[INFO] [stdout] 2 | use tokio::time::{sleep, Duration, Instant};
[INFO] [stdout]   |                   ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Serialize`
[INFO] [stdout]   --> message_handler/src/message_monitor.rs:12:26
[INFO] [stdout]    |
[INFO] [stdout] 12 | use serde::{Deserialize, Serialize};
[INFO] [stdout]    |                          ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `log_post`
[INFO] [stdout]   --> message_handler/src/message_monitor.rs:15:21
[INFO] [stdout]    |
[INFO] [stdout] 15 | use shared_models::{log_post, log_message};
[INFO] [stdout]    |                     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `get_recipient_id_or_error`
[INFO] [stdout]   --> message_handler/src/message_monitor.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout] 22 |     get_recipient_id_or_error,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]  --> message_handler/src/utilities.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::env;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `conversation_id`
[INFO] [stdout]    --> message_handler/src/message_monitor.rs:307:57
[INFO] [stdout]     |
[INFO] [stdout] 307 |     async fn send_reply_webhook(&self, sender_id: &str, conversation_id: &str) -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout]     |                                                         ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_conversation_id`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `found_business_message` is never read
[INFO] [stdout]    --> message_handler/src/utilities.rs:236:17
[INFO] [stdout]     |
[INFO] [stdout] 236 |                 found_business_message = true;
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `message_id`
[INFO] [stdout]    --> message_handler/src/message_monitor.rs:204:9
[INFO] [stdout]     |
[INFO] [stdout] 204 |         message_id: &str,
[INFO] [stdout]     |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `messages`
[INFO] [stdout]   --> message_handler/src/utilities.rs:38:13
[INFO] [stdout]    |
[INFO] [stdout] 38 |         let messages = ig_get_messages(&conversation.id, Some(10)).await?;
[INFO] [stdout]    |             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_messages`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `reply` is never read
[INFO] [stdout]   --> message_handler/src/utilities.rs:56:25
[INFO] [stdout]    |
[INFO] [stdout] 56 |         let mut reply = String::new();
[INFO] [stdout]    |                         ^^^^^^^^^^^^^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 68 |             reply = generate_post(&combined).await?;
[INFO] [stdout]    |             ----- `reply` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `conversation_id`
[INFO] [stdout]    --> message_handler/src/message_monitor.rs:307:57
[INFO] [stdout]     |
[INFO] [stdout] 307 |     async fn send_reply_webhook(&self, sender_id: &str, conversation_id: &str) -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout]     |                                                         ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_conversation_id`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `object` is never read
[INFO] [stdout]   --> message_handler/src/message_monitor.rs:41:5
[INFO] [stdout]    |
[INFO] [stdout] 40 | struct WebhookPayload {
[INFO] [stdout]    |        -------------- field in this struct
[INFO] [stdout] 41 |     object: String,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `WebhookPayload` has a derived impl for the trait `Debug`, but this is 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: fields `id` and `time` are never read
[INFO] [stdout]   --> message_handler/src/message_monitor.rs:47:5
[INFO] [stdout]    |
[INFO] [stdout] 46 | struct WebhookEntry {
[INFO] [stdout]    |        ------------ fields in this struct
[INFO] [stdout] 47 |     id: String,
[INFO] [stdout]    |     ^^
[INFO] [stdout] 48 |     time: u64,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `WebhookEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `read_event` is never read
[INFO] [stdout]   --> message_handler/src/message_monitor.rs:60:5
[INFO] [stdout]    |
[INFO] [stdout] 54 | pub struct MessagingEvent {
[INFO] [stdout]    |            -------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 60 |     read_event: Option<ReadEvent>,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `MessagingEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `attachments` is never read
[INFO] [stdout]   --> message_handler/src/message_monitor.rs:72:5
[INFO] [stdout]    |
[INFO] [stdout] 69 | struct WebhookMessage {
[INFO] [stdout]    |        -------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 72 |     attachments: Option<Vec<WebhookAttachment>>,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `WebhookMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `found_business_message` is never read
[INFO] [stdout]    --> message_handler/src/utilities.rs:236:17
[INFO] [stdout]     |
[INFO] [stdout] 236 |                 found_business_message = true;
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `attachment_type` and `payload` are never read
[INFO] [stdout]   --> message_handler/src/message_monitor.rs:78:5
[INFO] [stdout]    |
[INFO] [stdout] 76 | struct WebhookAttachment {
[INFO] [stdout]    |        ----------------- fields in this struct
[INFO] [stdout] 77 |     #[serde(rename = "type")]
[INFO] [stdout] 78 |     attachment_type: String,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 79 |     payload: serde_json::Value,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `WebhookAttachment` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `mid` is never read
[INFO] [stdout]   --> message_handler/src/message_monitor.rs:84:5
[INFO] [stdout]    |
[INFO] [stdout] 83 | struct ReadEvent {
[INFO] [stdout]    |        --------- field in this struct
[INFO] [stdout] 84 |     mid: String,
[INFO] [stdout]    |     ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ReadEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `conversation_id` is never read
[INFO] [stdout]    --> message_handler/src/message_monitor.rs:101:9
[INFO] [stdout]     |
[INFO] [stdout]  94 | pub struct ConversationState {
[INFO] [stdout]     |            ----------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 101 |     pub conversation_id: String,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ConversationState` 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: associated items `with_config`, `get_conversation_states`, and `stop_monitoring` are never used
[INFO] [stdout]    --> message_handler/src/message_monitor.rs:127:12
[INFO] [stdout]     |
[INFO] [stdout] 112 | impl InstagramWebhookMonitor {
[INFO] [stdout]     | ---------------------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 127 |     pub fn with_config(
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 427 |     pub fn get_conversation_states(&self) -> HashMap<String, ConversationState> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 433 |     pub fn stop_monitoring(&self) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `start_instagram_webhook_monitoring_with_config` is never used
[INFO] [stdout]    --> message_handler/src/message_monitor.rs:537:14
[INFO] [stdout]     |
[INFO] [stdout] 537 | pub async fn start_instagram_webhook_monitoring_with_config(
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `last_business_message` is never read
[INFO] [stdout]   --> message_handler/src/utilities.rs:12:9
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub struct ConsecutiveSenderInfo {
[INFO] [stdout]    |            --------------------- field in this struct
[INFO] [stdout] 11 |     pub sender_messages: Vec<InstagramMessage>,
[INFO] [stdout] 12 |     pub last_business_message: Option<InstagramMessage>,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ConsecutiveSenderInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ConversationMessages` is never constructed
[INFO] [stdout]   --> message_handler/src/utilities.rs:16:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub struct ConversationMessages {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `handle_instagram_messages` is never used
[INFO] [stdout]   --> message_handler/src/utilities.rs:29:14
[INFO] [stdout]    |
[INFO] [stdout] 29 | pub async fn handle_instagram_messages() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_consecutive_sender_messages` is never used
[INFO] [stdout]    --> message_handler/src/utilities.rs:192:14
[INFO] [stdout]     |
[INFO] [stdout] 192 | pub async fn get_consecutive_sender_messages(conversation_id: &str) -> Result<Vec<InstagramMessage>, Box<dyn std::error::Error>> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_unanswered_messages_from_all_conversations` is never used
[INFO] [stdout]    --> message_handler/src/utilities.rs:255:14
[INFO] [stdout]     |
[INFO] [stdout] 255 | pub async fn get_unanswered_messages_from_all_conversations() -> Result<Vec<ConversationMessages>, Box<dyn std::error::Error>> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_recipient_id_or_error` is never used
[INFO] [stdout]    --> message_handler/src/utilities.rs:386:8
[INFO] [stdout]     |
[INFO] [stdout] 386 | pub fn get_recipient_id_or_error(conversation: &InstagramConversation, business_id: &str) -> Result<String, &'static str> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `message_id`
[INFO] [stdout]    --> message_handler/src/message_monitor.rs:204:9
[INFO] [stdout]     |
[INFO] [stdout] 204 |         message_id: &str,
[INFO] [stdout]     |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `messages`
[INFO] [stdout]   --> message_handler/src/utilities.rs:38:13
[INFO] [stdout]    |
[INFO] [stdout] 38 |         let messages = ig_get_messages(&conversation.id, Some(10)).await?;
[INFO] [stdout]    |             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_messages`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `reply` is never read
[INFO] [stdout]   --> message_handler/src/utilities.rs:56:25
[INFO] [stdout]    |
[INFO] [stdout] 56 |         let mut reply = String::new();
[INFO] [stdout]    |                         ^^^^^^^^^^^^^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 68 |             reply = generate_post(&combined).await?;
[INFO] [stdout]    |             ----- `reply` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `object` is never read
[INFO] [stdout]   --> message_handler/src/message_monitor.rs:41:5
[INFO] [stdout]    |
[INFO] [stdout] 40 | struct WebhookPayload {
[INFO] [stdout]    |        -------------- field in this struct
[INFO] [stdout] 41 |     object: String,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `WebhookPayload` has a derived impl for the trait `Debug`, but this is 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: fields `id` and `time` are never read
[INFO] [stdout]   --> message_handler/src/message_monitor.rs:47:5
[INFO] [stdout]    |
[INFO] [stdout] 46 | struct WebhookEntry {
[INFO] [stdout]    |        ------------ fields in this struct
[INFO] [stdout] 47 |     id: String,
[INFO] [stdout]    |     ^^
[INFO] [stdout] 48 |     time: u64,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `WebhookEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `read_event` is never read
[INFO] [stdout]   --> message_handler/src/message_monitor.rs:60:5
[INFO] [stdout]    |
[INFO] [stdout] 54 | pub struct MessagingEvent {
[INFO] [stdout]    |            -------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 60 |     read_event: Option<ReadEvent>,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `MessagingEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `attachments` is never read
[INFO] [stdout]   --> message_handler/src/message_monitor.rs:72:5
[INFO] [stdout]    |
[INFO] [stdout] 69 | struct WebhookMessage {
[INFO] [stdout]    |        -------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 72 |     attachments: Option<Vec<WebhookAttachment>>,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `WebhookMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `attachment_type` and `payload` are never read
[INFO] [stdout]   --> message_handler/src/message_monitor.rs:78:5
[INFO] [stdout]    |
[INFO] [stdout] 76 | struct WebhookAttachment {
[INFO] [stdout]    |        ----------------- fields in this struct
[INFO] [stdout] 77 |     #[serde(rename = "type")]
[INFO] [stdout] 78 |     attachment_type: String,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 79 |     payload: serde_json::Value,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `WebhookAttachment` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `mid` is never read
[INFO] [stdout]   --> message_handler/src/message_monitor.rs:84:5
[INFO] [stdout]    |
[INFO] [stdout] 83 | struct ReadEvent {
[INFO] [stdout]    |        --------- field in this struct
[INFO] [stdout] 84 |     mid: String,
[INFO] [stdout]    |     ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ReadEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `conversation_id` is never read
[INFO] [stdout]    --> message_handler/src/message_monitor.rs:101:9
[INFO] [stdout]     |
[INFO] [stdout]  94 | pub struct ConversationState {
[INFO] [stdout]     |            ----------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 101 |     pub conversation_id: String,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ConversationState` 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: associated items `with_config`, `get_conversation_states`, and `stop_monitoring` are never used
[INFO] [stdout]    --> message_handler/src/message_monitor.rs:127:12
[INFO] [stdout]     |
[INFO] [stdout] 112 | impl InstagramWebhookMonitor {
[INFO] [stdout]     | ---------------------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 127 |     pub fn with_config(
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 427 |     pub fn get_conversation_states(&self) -> HashMap<String, ConversationState> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 433 |     pub fn stop_monitoring(&self) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `start_instagram_webhook_monitoring_with_config` is never used
[INFO] [stdout]    --> message_handler/src/message_monitor.rs:537:14
[INFO] [stdout]     |
[INFO] [stdout] 537 | pub async fn start_instagram_webhook_monitoring_with_config(
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `last_business_message` is never read
[INFO] [stdout]   --> message_handler/src/utilities.rs:12:9
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub struct ConsecutiveSenderInfo {
[INFO] [stdout]    |            --------------------- field in this struct
[INFO] [stdout] 11 |     pub sender_messages: Vec<InstagramMessage>,
[INFO] [stdout] 12 |     pub last_business_message: Option<InstagramMessage>,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ConsecutiveSenderInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ConversationMessages` is never constructed
[INFO] [stdout]   --> message_handler/src/utilities.rs:16:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub struct ConversationMessages {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `handle_instagram_messages` is never used
[INFO] [stdout]   --> message_handler/src/utilities.rs:29:14
[INFO] [stdout]    |
[INFO] [stdout] 29 | pub async fn handle_instagram_messages() -> Result<(), Box<dyn std::error::Error>> {
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_consecutive_sender_messages` is never used
[INFO] [stdout]    --> message_handler/src/utilities.rs:192:14
[INFO] [stdout]     |
[INFO] [stdout] 192 | pub async fn get_consecutive_sender_messages(conversation_id: &str) -> Result<Vec<InstagramMessage>, Box<dyn std::error::Error>> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_unanswered_messages_from_all_conversations` is never used
[INFO] [stdout]    --> message_handler/src/utilities.rs:255:14
[INFO] [stdout]     |
[INFO] [stdout] 255 | pub async fn get_unanswered_messages_from_all_conversations() -> Result<Vec<ConversationMessages>, Box<dyn std::error::Error>> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_recipient_id_or_error` is never used
[INFO] [stdout]    --> message_handler/src/utilities.rs:386:8
[INFO] [stdout]     |
[INFO] [stdout] 386 | pub fn get_recipient_id_or_error(conversation: &InstagramConversation, business_id: &str) -> Result<String, &'static str> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 43s
[INFO] running `Command { std: "docker" "inspect" "ae3d7cedefb38c48eeacfd43bc521e1f238044d1b7984f50a1c585d2d8ed1143", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ae3d7cedefb38c48eeacfd43bc521e1f238044d1b7984f50a1c585d2d8ed1143", kill_on_drop: false }`
[INFO] [stdout] ae3d7cedefb38c48eeacfd43bc521e1f238044d1b7984f50a1c585d2d8ed1143
