hasPrefix -> starts_with

hasPrefix was removed in lix commit 61e21b25576f7f3491f6a837bf59d8b44c6897a0
This commit is contained in:
Linus Heckemann 2024-04-15 19:28:36 +02:00
parent 733f3051b1
commit a2bd945259

View file

@ -106,7 +106,7 @@ void worker(nix::ref<nix::EvalState> state, nix::Bindings &autoArgs,
if (s == "exit") {
break;
}
if (!nix::hasPrefix(s, "do ")) {
if (!s.starts_with("do ")) {
fprintf(stderr, "worker error: received invalid command '%s'\n",
s.data());
abort();