nixos-options: don't use references for string_views

This commit is contained in:
Jörg Thalheim 2024-11-18 17:29:10 +01:00
parent cf11719258
commit b7ea84f900
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@
// NOLINTBEGIN
// From nix/src/nix/repl.cc
bool isVarName(const std::string_view & s)
bool isVarName(std::string_view s)
{
if (s.size() == 0) return false;
if (nix::isReservedKeyword(s)) return false;

View File

@ -2,4 +2,4 @@
#include <string_view>
bool isVarName(const std::string_view & s);
bool isVarName(std::string_view s);