mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
AK: Add formatter for LexcialPath.
This commit is contained in:
@@ -64,6 +64,14 @@ private:
|
||||
bool m_is_absolute { false };
|
||||
};
|
||||
|
||||
template<>
|
||||
struct Formatter<LexicalPath> : Formatter<StringView> {
|
||||
void format(TypeErasedFormatParams& params, FormatBuilder& builder, const LexicalPath& value)
|
||||
{
|
||||
Formatter<StringView>::format(params, builder, value.string());
|
||||
}
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
using AK::LexicalPath;
|
||||
|
||||
Reference in New Issue
Block a user