fix(workspace): resolve all cargo check warnings across workspace
Remove unused imports and add #[allow(dead_code)] annotations to intentionally retained fields/methods. Also add deploy/.server.yaml to .gitignore to prevent accidental credential exposure.
This commit is contained in:
parent
2a7c8f0ff2
commit
4e2a39a5c0
3
.gitignore
vendored
3
.gitignore
vendored
@ -25,4 +25,5 @@ package-lock.json
|
||||
yarn.lock
|
||||
.gemini
|
||||
.omg
|
||||
/.sqry
|
||||
/.sqry
|
||||
deploy/.server.yaml
|
||||
@ -111,6 +111,7 @@ impl Reconciler {
|
||||
/// The Secret watcher stores the cert at key `tls:<secretName>`.
|
||||
/// We already map secretName → host in ingress_watcher, so this is a no-op
|
||||
/// when the ingress_watcher uses correct key mapping.
|
||||
#[allow(dead_code)]
|
||||
pub fn cross_reference_tls(&self) -> HashMap<String, TlsCert> {
|
||||
let mut host_certs: HashMap<String, TlsCert> = HashMap::new();
|
||||
|
||||
|
||||
@ -43,7 +43,6 @@ fn compute_etag(data: &[u8]) -> String {
|
||||
// ── Asset collection ─────────────────────────────────────────────────────
|
||||
|
||||
struct Asset {
|
||||
path: String,
|
||||
data: Vec<u8>,
|
||||
etag: String,
|
||||
brotli: Option<Vec<u8>>,
|
||||
@ -71,7 +70,6 @@ fn collect_assets(dist_dir: &Path) -> BTreeMap<String, Asset> {
|
||||
assets.insert(
|
||||
path_str.clone(),
|
||||
Asset {
|
||||
path: path_str,
|
||||
data,
|
||||
etag,
|
||||
brotli: brotli_data,
|
||||
|
||||
@ -17,6 +17,7 @@ pub mod skill;
|
||||
pub mod user;
|
||||
|
||||
// Auto-generated frontend module (from build.rs) serving embedded dist/ assets
|
||||
#[allow(dead_code)]
|
||||
mod frontend;
|
||||
|
||||
pub use error::{api_success, ApiError, ApiResponse};
|
||||
|
||||
@ -7,7 +7,6 @@
|
||||
use super::{FilterContext, PostFilter, PreFilter};
|
||||
use crate::config::{ConfigStore, HeaderOp};
|
||||
use pingora::proxy::Session;
|
||||
use std::sync::Arc;
|
||||
|
||||
pub struct HeaderInjectFilter {
|
||||
store: ConfigStore,
|
||||
|
||||
@ -9,7 +9,6 @@ pub mod real_ip;
|
||||
pub mod session_sticky;
|
||||
pub mod ws_upgrade;
|
||||
|
||||
use http::HeaderMap;
|
||||
use pingora::proxy::Session;
|
||||
|
||||
/// Context passed through the filter chain for a single request.
|
||||
|
||||
@ -8,6 +8,7 @@ use pingora::proxy::Session;
|
||||
|
||||
pub struct RealIpFilter {
|
||||
/// Whether to trust Proxy Protocol headers (TCP-level).
|
||||
#[allow(dead_code)]
|
||||
trust_proxy_protocol: bool,
|
||||
/// Maximum number of trusted proxy hops.
|
||||
trusted_hops: usize,
|
||||
|
||||
@ -14,8 +14,10 @@ pub struct HealthChecker {
|
||||
#[allow(dead_code)]
|
||||
interval: std::time::Duration,
|
||||
/// Failure threshold for passive health checks.
|
||||
#[allow(dead_code)]
|
||||
passive_fail_threshold: u32,
|
||||
/// Success threshold for recovery.
|
||||
#[allow(dead_code)]
|
||||
passive_success_threshold: u32,
|
||||
}
|
||||
|
||||
|
||||
@ -4,8 +4,6 @@
|
||||
//! configuration changes without dropping active connections.
|
||||
|
||||
use crate::config::ConfigStore;
|
||||
use std::sync::Arc;
|
||||
use tokio::sync::watch;
|
||||
|
||||
/// Hot-reload watcher that listens for config changes.
|
||||
pub struct HotReloadWatcher {
|
||||
|
||||
@ -5,12 +5,8 @@
|
||||
|
||||
use crate::config::ConfigStore;
|
||||
use anyhow::Context;
|
||||
use rustls::pki_types::CertificateDer;
|
||||
use rustls::pki_types::PrivateKeyDer;
|
||||
use rustls::pki_types::PrivatePkcs8KeyDer;
|
||||
use rustls::server::ResolvesServerCert;
|
||||
use rustls::sign::CertifiedKey;
|
||||
use rustls::sign::SigningKey;
|
||||
use rustls::ServerConfig;
|
||||
use std::collections::HashMap;
|
||||
use std::fmt;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user