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

This commit is contained in:
Kristófer R
2025-06-07 22:12:26 -04:00
parent e4a175d24a
commit 73e5f7e5d6

View File

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