From 947116513200c9523c3c7e7334cc12f3e1d1a325 Mon Sep 17 00:00:00 2001 From: dualfroz Date: Wed, 2 Sep 2026 10:08:05 +0200 Subject: [PATCH] test(header): assert HeaderMap types are Sync in test_bounds The check_bounds helper used a duplicated Send bound (Send + Send), so the intended Sync assertion was never enforced and the test silently checked Send only. Use Send + Sync so the test fails to compile if any of the HeaderMap iterator or entry types ever stops being Sync. Refs https://github.com/hyperium/http/issues/783 --- src/header/map.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/header/map.rs b/src/header/map.rs index 531da72..08a1b8b 100644 --- a/src/header/map.rs +++ b/src/header/map.rs @@ -4026,7 +4026,7 @@ mod as_header_name { #[test] fn test_bounds() { - fn check_bounds() {} + fn check_bounds() {} check_bounds::>(); check_bounds::>();