Remove warning about temporary values being used

This commit is contained in:
Adrian Conlon 2024-01-06 12:17:15 +00:00
parent 349bada9cc
commit 48369f0e98

View File

@ -10,5 +10,5 @@ class cycle_t final : public byte_t {
public:
cycle_t(simdjson::dom::array input) noexcept;
[[nodiscard]] auto action() const noexcept { return std::string_view(at(2)); }
[[nodiscard]] auto action() const noexcept { return std::string(std::string_view(at(2))); }
};