From 6046dd199c7c1df5cd27d72aaea55f76ee29ff67 Mon Sep 17 00:00:00 2001 From: Echo Date: Mon, 18 May 2026 00:35:45 +0000 Subject: [PATCH] fix: rustfmt formatting for tracing::warn! macro in enrollment.rs --- crates/pm-web/src/routes/enrollment.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/pm-web/src/routes/enrollment.rs b/crates/pm-web/src/routes/enrollment.rs index 8f454c6..a0ef426 100644 --- a/crates/pm-web/src/routes/enrollment.rs +++ b/crates/pm-web/src/routes/enrollment.rs @@ -47,7 +47,9 @@ async fn enroll_host( .and_then(|h| h.split(',').next()) .and_then(|h| h.trim().parse::().ok()) .unwrap_or_else(|| { - tracing::warn!("No X-Forwarded-For header found for enrollment request from public endpoint"); + tracing::warn!( + "No X-Forwarded-For header found for enrollment request from public endpoint" + ); // Default to a placeholder IP since we can't extract the socket addr without the ConnectInfo layer "0.0.0.0".parse().unwrap() });