Fix P1 Rust clippy: unused variable _auth_ctx, _jwt_secret, derive Default for RouterBrain
Some checks failed
CI — P1 Route (Rust) / test (push) Failing after 4m22s

This commit is contained in:
2026-03-01 16:56:24 +00:00
parent 1af409ad7e
commit d5a10d9266
3 changed files with 5 additions and 4 deletions

View File

@@ -34,12 +34,12 @@ pub trait AuthProvider: Send + Sync {
/// Local auth — bcrypt passwords + HS256 JWT (self-hosted mode)
pub struct LocalAuthProvider {
pool: sqlx::PgPool,
jwt_secret: String,
_jwt_secret: String,
redis: deadpool_redis::Pool,
}
impl LocalAuthProvider {
pub fn new(pool: sqlx::PgPool, jwt_secret: String, redis: deadpool_redis::Pool) -> Self {
pub fn new(pool: sqlx::PgPool, _jwt_secret: String, redis: deadpool_redis::Pool) -> Self {
Self { pool, jwt_secret, redis }
}
}