LibURL: Make URL::serialized_host() infallible

This can no longer fail, so update the return type to match.

This makes a few more methods now unable to return errors, but one thing
at a time. 😅
This commit is contained in:
Sam Atkins 2024-11-28 14:32:07 +00:00 committed by Andreas Kling
commit 900c131178
Notes: github-actions[bot] 2024-11-30 11:23:28 +00:00
13 changed files with 47 additions and 51 deletions

View file

@ -84,7 +84,7 @@ public:
String const& username() const { return m_data->username; }
String const& password() const { return m_data->password; }
Optional<Host> const& host() const { return m_data->host; }
ErrorOr<String> serialized_host() const;
String serialized_host() const;
ByteString basename() const;
Optional<String> const& query() const { return m_data->query; }
Optional<String> const& fragment() const { return m_data->fragment; }