TagPrint: use std::string_view
This commit is contained in:
@@ -21,7 +21,6 @@
|
||||
#include "tag/Tag.hxx"
|
||||
#include "tag/Settings.hxx"
|
||||
#include "client/Response.hxx"
|
||||
#include "util/StringView.hxx"
|
||||
|
||||
#include <fmt/format.h>
|
||||
|
||||
@@ -35,7 +34,7 @@ tag_print_types(Response &r) noexcept
|
||||
}
|
||||
|
||||
void
|
||||
tag_print(Response &r, TagType type, StringView value) noexcept
|
||||
tag_print(Response &r, TagType type, std::string_view value) noexcept
|
||||
{
|
||||
r.Fmt(FMT_STRING("{}: {}\n"), tag_item_names[type], value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user