nixos-options: don't use references for string_views
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
#include <string_view>
|
||||
|
||||
bool isVarName(const std::string_view & s);
|
||||
bool isVarName(std::string_view s);
|
||||
|
||||
Reference in New Issue
Block a user