1
Fork 0
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:
asynts 2020-10-08 14:09:38 +02:00 committed by Andreas Kling
parent 7ae530fbc7
commit cf6980848b

View file

@ -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;