mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
nixos-options: don't use references for string_views
This commit is contained in:
parent
cf11719258
commit
b7ea84f900
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user