AK: Use StringView as its own peek type

StringView is already a reference type, and copying it is cheap, so we
should use it as its own peek type.
This commit is contained in:
kleines Filmröllchen 2024-01-25 20:42:53 +01:00 committed by Tim Schumacher
parent b61e670122
commit dfe3cfa0ba

View file

@ -388,6 +388,8 @@ private:
template<>
struct Traits<StringView> : public DefaultTraits<StringView> {
using PeekType = StringView;
using ConstPeekType = StringView;
static unsigned hash(StringView s) { return s.hash(); }
};