mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-21 10:05:32 +00:00
AK: Add formatter for LexcialPath.
This commit is contained in:
parent
7ae530fbc7
commit
cf6980848b
|
@ -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…
Reference in a new issue