mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:07:34 +00:00
AK: Add formatter for LexcialPath.
This commit is contained in:
parent
7ae530fbc7
commit
cf6980848b
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue