mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 10:34:16 +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
|
// NOLINTBEGIN
|
||||||
// From nix/src/nix/repl.cc
|
// 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 (s.size() == 0) return false;
|
||||||
if (nix::isReservedKeyword(s)) return false;
|
if (nix::isReservedKeyword(s)) return false;
|
||||||
|
@ -2,4 +2,4 @@
|
|||||||
|
|
||||||
#include <string_view>
|
#include <string_view>
|
||||||
|
|
||||||
bool isVarName(const std::string_view & s);
|
bool isVarName(std::string_view s);
|
||||||
|
Loading…
Reference in New Issue
Block a user