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::{
|
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 {
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
@@ -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)]
|
||||||
|
|||||||
Reference in New Issue
Block a user