hasPrefix -> starts_with
hasPrefix was removed in lix commit 61e21b25576f7f3491f6a837bf59d8b44c6897a0
This commit is contained in:
parent
733f3051b1
commit
a2bd945259
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue