diff --git a/AK/URL.h b/AK/URL.h index 3b7d2d247f..2b7c42c65c 100644 --- a/AK/URL.h +++ b/AK/URL.h @@ -102,6 +102,14 @@ inline const LogStream& operator<<(const LogStream& stream, const URL& value) return stream << value.to_string(); } +template<> +struct Formatter : Formatter { + void format(TypeErasedFormatParams& params, FormatBuilder& builder, const URL& value) + { + Formatter::format(params, builder, value.to_string()); + } +}; + template<> struct Traits : public GenericTraits { static unsigned hash(const URL& url) { return url.to_string().hash(); }