style: apply rustfmt to login-lockout code merged in #326

Same whitespace-only reformat as branch claude/jolly-johnson-yso7z7:
PR #326 landed three files that fail cargo fmt --check and its CI run
skipped the Rustfmt job, breaking the check for every later Rust PR.

https://claude.ai/code/session_01GpprjxjtXFYLfXNkoKnHuL
This commit is contained in:
Claude
2026-06-10 11:51:56 +00:00
parent 26ff8f2ac9
commit d73065e06b
2 changed files with 2 additions and 7 deletions
+1 -3
View File
@@ -158,9 +158,7 @@ pub fn client_ip_from_parts(
if let Some(peer_addr) = peer {
if is_trusted_proxy(peer_addr.ip()) {
// Try X-Forwarded-For first (leftmost = original client)
if let Some(xff) = headers
.get("x-forwarded-for")
.and_then(|v| v.to_str().ok())
if let Some(xff) = headers.get("x-forwarded-for").and_then(|v| v.to_str().ok())
&& let Some(ip) = xff
.split(',')
.next()