1
0
mirror of https://github.com/CCC-MF/bwhc-kafka-rest-proxy.git synced 2025-07-02 08:22:54 +00:00

feat: remove use of lazy_static

This commit is contained in:
2025-04-07 20:16:43 +02:00
parent 21f0c515a0
commit 2a6e4a5c8c
2 changed files with 3 additions and 8 deletions

View File

@ -6,8 +6,8 @@ use axum::response::{IntoResponse, Response};
use axum::routing::{delete, post};
use axum::{Extension, Router};
use clap::Parser;
use lazy_static::lazy_static;
use serde::{Deserialize, Serialize};
use std::sync::LazyLock;
#[cfg(debug_assertions)]
use tower_http::trace::TraceLayer;
@ -54,9 +54,7 @@ impl IntoResponse for AppResponse<'_> {
}
}
lazy_static! {
static ref CONFIG: Cli = Cli::parse();
}
static CONFIG: LazyLock<Cli> = LazyLock::new(Cli::parse);
#[tokio::main]
async fn main() -> Result<(), ()> {