From 06220a71c1430c97bfcd8012b00530a987e40e97 Mon Sep 17 00:00:00 2001 From: eldritch horrors Date: Sat, 23 Mar 2024 00:47:16 +0100 Subject: libstore: convert dumpPath to a generator Change-Id: Ic4cf5562504aa29130304469936f958c0426e5ef --- src/nix/add-to-store.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nix/add-to-store.cc') diff --git a/src/nix/add-to-store.cc b/src/nix/add-to-store.cc index 7dbbbcc56..f7e3212be 100644 --- a/src/nix/add-to-store.cc +++ b/src/nix/add-to-store.cc @@ -30,7 +30,7 @@ struct CmdAddToStore : MixDryRun, StoreCommand if (!namePart) namePart = baseNameOf(path); StringSink sink; - dumpPath(path, sink); + sink << dumpPath(path); auto narHash = hashString(htSHA256, sink.s); -- cgit v1.2.3