Browse Source

AK: Add formatter for LexcialPath.

asynts 4 years ago
parent
commit
cf6980848b
1 changed files with 8 additions and 0 deletions
  1. 8 0
      AK/LexicalPath.h

+ 8 - 0
AK/LexicalPath.h

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