From cf6980848bce11c148fb8fc29070d58cdffaf6e8 Mon Sep 17 00:00:00 2001 From: asynts Date: Thu, 8 Oct 2020 14:09:38 +0200 Subject: [PATCH] AK: Add formatter for LexcialPath. --- AK/LexicalPath.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/AK/LexicalPath.h b/AK/LexicalPath.h index 5789b2ca2a..f198f8c2fb 100644 --- a/AK/LexicalPath.h +++ b/AK/LexicalPath.h @@ -64,6 +64,14 @@ private: bool m_is_absolute { false }; }; +template<> +struct Formatter : Formatter { + void format(TypeErasedFormatParams& params, FormatBuilder& builder, const LexicalPath& value) + { + Formatter::format(params, builder, value.string()); + } +}; + }; using AK::LexicalPath;