Fix P1 Rust: remove unused imports (clippy -D warnings)
Some checks failed
CI — P1 Route (Rust) / test (push) Failing after 6m10s
Some checks failed
CI — P1 Route (Rust) / test (push) Failing after 6m10s
This commit is contained in:
@@ -2,20 +2,18 @@ use anyhow::Result;
|
||||
use axum::{
|
||||
body::Body,
|
||||
extract::State,
|
||||
http::{HeaderMap, Request, StatusCode},
|
||||
response::{IntoResponse, Response, Sse},
|
||||
http::{HeaderMap, StatusCode},
|
||||
response::{IntoResponse, Response},
|
||||
routing::post,
|
||||
Router,
|
||||
};
|
||||
use std::sync::Arc;
|
||||
use tokio::sync::mpsc;
|
||||
use tracing::{info, warn};
|
||||
|
||||
use super::middleware;
|
||||
|
||||
use crate::auth::AuthProvider;
|
||||
use crate::config::AppConfig;
|
||||
use crate::data::{EventQueue, TelemetryEvent};
|
||||
use crate::data::TelemetryEvent;
|
||||
use crate::router::RouterBrain;
|
||||
|
||||
pub struct ProxyState {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// Proxy middleware — API key redaction in error traces
|
||||
use axum::http::HeaderMap;
|
||||
use tracing::warn;
|
||||
|
||||
/// Redact any Bearer tokens or API keys from a string.
|
||||
/// Used in panic handlers and error logging to prevent key leakage.
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
use serde::{Deserialize, Serialize};
|
||||
use crate::auth::AuthContext;
|
||||
|
||||
/// Routing decision made by the Router Brain
|
||||
#[derive(Debug, Clone, Serialize)]
|
||||
|
||||
Reference in New Issue
Block a user