diff --git a/AK/StringImpl.h b/AK/StringImpl.h index 1b9360c8f0..e91c7fb4e6 100644 --- a/AK/StringImpl.h +++ b/AK/StringImpl.h @@ -130,6 +130,14 @@ inline constexpr u32 string_hash(const char* characters, size_t length) return hash; } +template<> +struct Formatter : Formatter { + void format(TypeErasedFormatParams& params, FormatBuilder& builder, const StringImpl& value) + { + Formatter::format(params, builder, { value.characters(), value.length() }); + } +}; + } using AK::Chomp;