    Checking chat_server v0.2.0 (/home/senke/Documents/veza/veza-chat-server)
warning: unused imports: `Pool` and `Postgres`
 --> src/config.rs:2:20
  |
2 | use sqlx::{PgPool, Pool, Postgres};
  |                    ^^^^  ^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default

warning: unused import: `error`
 --> src/config.rs:5:22
  |
5 | use tracing::{debug, error, info, warn};
  |                      ^^^^^

warning: unused imports: `Error as LapinError`, `ExchangeKind`, and `options::ExchangeDeclareOptions`
 --> src/event_bus.rs:2:5
  |
2 |     options::ExchangeDeclareOptions, types::FieldTable, Channel, Connection, ConnectionProperties,
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3 |     Error as LapinError, ExchangeKind,
  |     ^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^

warning: unused import: `warn`
 --> src/typing_indicator.rs:5:40
  |
5 | use tracing::{info, debug, instrument, warn};
  |                                        ^^^^

warning: variable does not need to be mutable
  --> src/delivered_status.rs:57:21
   |
57 |         if let Some(mut status) = existing {
   |                     ----^^^^^^
   |                     |
   |                     help: remove this `mut`
   |
   = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default

warning: variable does not need to be mutable
  --> src/read_receipts.rs:86:21
   |
86 |         if let Some(mut receipt) = existing {
   |                     ----^^^^^^^
   |                     |
   |                     help: remove this `mut`

error[E0599]: no method named `get_all_metrics` found for reference `&ChatMetrics` in the current scope
   --> src/monitoring.rs:269:36
    |
269 |         let metrics_data = metrics.get_all_metrics().await;
    |                                    ^^^^^^^^^^^^^^^
    |
help: one of the expressions' fields has a method of the same name
    |
269 |         let metrics_data = metrics.collector.get_all_metrics().await;
    |                                    ++++++++++
help: there is a method `get_system_metrics` with a similar name
    |
269 -         let metrics_data = metrics.get_all_metrics().await;
269 +         let metrics_data = metrics.get_system_metrics().await;
    |

warning: unreachable expression
   --> src/config.rs:201:9
    |
194 | /             panic!(
195 | |                 "SecurityConfig::default() cannot be used in production. \
196 | |                  Create SecurityConfig manually with require_env_min_length(\"JWT_SECRET\", 32)"
197 | |             );
    | |_____________- any code following this expression is unreachable
...
201 | /         Self {
202 | |             jwt_secret: "test_jwt_secret_minimum_32_characters_long".to_string(),
203 | |             jwt_access_duration: Duration::from_secs(900), // 15 min
204 | |             jwt_refresh_duration: Duration::from_secs(86400 * 30), // 30 days
...   |
212 | |             bcrypt_cost: 12,
213 | |         }
    | |_________^ unreachable expression
    |
    = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default

warning: unused variable: `user_id`
  --> src/security/permission.rs:54:17
   |
54 |                 user_id,
   |                 ^^^^^^^ help: try ignoring the field: `user_id: _`
   |
   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default

For more information about this error, try `rustc --explain E0599`.
warning: `chat_server` (lib) generated 8 warnings
error: could not compile `chat_server` (lib) due to 1 previous error; 8 warnings emitted
