Private
Public Access
1
0

style: fix cargo fmt compliance for mtls.rs closure and packages matches!

This commit is contained in:
2026-05-02 21:52:39 +00:00
parent 7a9fb1ac55
commit bbc052947e
2 changed files with 7 additions and 2 deletions

View File

@ -81,7 +81,9 @@ impl MtlsMiddleware {
let config = ServerConfig::builder()
.with_protocol_versions(&[&TLS13])
.map_err(|e| MtlsError::ServerConfigError(format!("Failed to set TLS 1.3 only: {}", e)))?
.map_err(|e| {
MtlsError::ServerConfigError(format!("Failed to set TLS 1.3 only: {}", e))
})?
.with_client_cert_verifier(client_verifier)
.with_single_cert(server_cert, server_key)
.map_err(|e| MtlsError::ServerConfigError(e.to_string()))?;