From a2bd94525953ffab62348c6c5eed7e69c154125c Mon Sep 17 00:00:00 2001 From: Linus Heckemann Date: Mon, 15 Apr 2024 19:28:36 +0200 Subject: [PATCH] hasPrefix -> starts_with hasPrefix was removed in lix commit 61e21b25576f7f3491f6a837bf59d8b44c6897a0 --- src/worker.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();