about summary refs log tree commit diff
path: root/third_party/nix/src/libutil/types.hh
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/src/libutil/types.hh')
-rw-r--r--third_party/nix/src/libutil/types.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/third_party/nix/src/libutil/types.hh b/third_party/nix/src/libutil/types.hh
index e2ea86fdcf..3d37e4efee 100644
--- a/third_party/nix/src/libutil/types.hh
+++ b/third_party/nix/src/libutil/types.hh
@@ -44,6 +44,8 @@ struct FormatOrString {
 
 inline std::string fmt(const std::string& s) { return s; }
 
+inline std::string fmt(std::string_view s) { return std::string(s); }
+
 inline std::string fmt(const char* s) { return s; }
 
 inline std::string fmt(const FormatOrString& fs) { return fs.s; }