From 4331ba0fb2c40934afe12b72b02e2bfebb721ac6 Mon Sep 17 00:00:00 2001 From: Ryan Liptak Date: Fri, 10 Jul 2026 16:06:13 -0700 Subject: [PATCH] Uri: fix compile errors from botched merge --- lib/std/Uri.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/std/Uri.zig b/lib/std/Uri.zig index 416a5cf16150e421759290f2c73c56bf163774f4..1dbb8cc043a7fc1354197a89a080af87e2789a48 100644 --- a/lib/std/Uri.zig +++ b/lib/std/Uri.zig @@ -239,7 +239,7 @@ pub fn parseAfterScheme(scheme: []const u8, text: []const u8) ParseError!Uri { if (start_of_host >= end_of_host) return error.InvalidFormat; const host = authority[start_of_host..end_of_host]; - if (host.len > HostName.max_len) return error.InvalidHostName; + if (host.len > std.Io.net.HostName.max_len) return error.InvalidHostName; uri.host = .{ .percent_encoded = host }; } @@ -559,7 +559,7 @@ test "should fail gracefully" { } test "parse name too long" { - const uri = "http://" ++ @as([HostName.max_len + 1]u8, @splat('Z')); + const uri = "http://" ++ @as([std.Io.net.HostName.max_len + 1]u8, @splat('Z')); try std.testing.expectError(error.InvalidHostName, parse(uri)); } -- 2.54.0