diff --git a/src/worker.cc b/src/worker.cc index 9e8ea2b..ef7b100 100644 --- a/src/worker.cc +++ b/src/worker.cc @@ -106,7 +106,7 @@ void worker(nix::ref 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();