Fix P1 Rust: remove unused imports (clippy -D warnings)
Some checks failed
CI — P1 Route (Rust) / test (push) Failing after 6m10s

This commit is contained in:
2026-03-01 16:47:24 +00:00
parent 7db364716c
commit c1faed7c73
3 changed files with 3 additions and 7 deletions

View File

@@ -2,20 +2,18 @@ use anyhow::Result;
use axum::{ use axum::{
body::Body, body::Body,
extract::State, extract::State,
http::{HeaderMap, Request, StatusCode}, http::{HeaderMap, StatusCode},
response::{IntoResponse, Response, Sse}, response::{IntoResponse, Response},
routing::post, routing::post,
Router, Router,
}; };
use std::sync::Arc; use std::sync::Arc;
use tokio::sync::mpsc; use tokio::sync::mpsc;
use tracing::{info, warn};
use super::middleware;
use crate::auth::AuthProvider; use crate::auth::AuthProvider;
use crate::config::AppConfig; use crate::config::AppConfig;
use crate::data::{EventQueue, TelemetryEvent}; use crate::data::TelemetryEvent;
use crate::router::RouterBrain; use crate::router::RouterBrain;
pub struct ProxyState { pub struct ProxyState {

View File

@@ -1,6 +1,5 @@
// Proxy middleware — API key redaction in error traces // Proxy middleware — API key redaction in error traces
use axum::http::HeaderMap; use axum::http::HeaderMap;
use tracing::warn;
/// Redact any Bearer tokens or API keys from a string. /// Redact any Bearer tokens or API keys from a string.
/// Used in panic handlers and error logging to prevent key leakage. /// Used in panic handlers and error logging to prevent key leakage.

View File

@@ -1,5 +1,4 @@
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use crate::auth::AuthContext;
/// Routing decision made by the Router Brain /// Routing decision made by the Router Brain
#[derive(Debug, Clone, Serialize)] #[derive(Debug, Clone, Serialize)]