From 91ae151548fa382433975abff752462b53b24517 Mon Sep 17 00:00:00 2001 From: fettpl <38704082+fettpl@users.noreply.github.com> Date: Mon, 16 Feb 2026 17:35:30 +0100 Subject: [PATCH] style: fix rustfmt formatting in SSRF tests Co-Authored-By: Claude Opus 4.6 --- src/tools/http_request.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/tools/http_request.rs b/src/tools/http_request.rs index 1b0514f..d5fa716 100644 --- a/src/tools/http_request.rs +++ b/src/tools/http_request.rs @@ -582,9 +582,9 @@ mod tests { #[test] fn blocks_documentation_ranges() { - assert!(is_private_or_local_host("192.0.2.1")); // TEST-NET-1 + assert!(is_private_or_local_host("192.0.2.1")); // TEST-NET-1 assert!(is_private_or_local_host("198.51.100.1")); // TEST-NET-2 - assert!(is_private_or_local_host("203.0.113.1")); // TEST-NET-3 + assert!(is_private_or_local_host("203.0.113.1")); // TEST-NET-3 } #[test] @@ -630,7 +630,12 @@ mod tests { #[test] fn allows_public_ipv6() { - assert!(!is_private_or_local_host("2001:db8::1").to_string().is_empty() || true); + assert!( + !is_private_or_local_host("2001:db8::1") + .to_string() + .is_empty() + || true + ); // 2001:db8::/32 is documentation range for IPv6 but not currently blocked // since it's not practically exploitable. Public IPv6 addresses pass: assert!(!is_private_or_local_host("2607:f8b0:4004:800::200e"));