merge std.Uri.ParseError and os/hostname error sets

pull/7029/head
Kristófer R 2025-06-07 22:12:26 -04:00
parent e4a175d24a
commit 73e5f7e5d6
No known key found for this signature in database
1 changed files with 1 additions and 4 deletions

View File

@ -7,12 +7,9 @@ pub const HostnameParsingError = error{
NoSpaceLeft, NoSpaceLeft,
}; };
pub const UrlParsingError = error{ pub const UrlParsingError = std.Uri.ParseError || error{
HostnameIsNotMacAddress, HostnameIsNotMacAddress,
InvalidFormat,
InvalidPort,
NoSchemeProvided, NoSchemeProvided,
UnexpectedCharacter,
}; };
fn isUriPathSeparator(c: u8) bool { fn isUriPathSeparator(c: u8) bool {