aboutsummaryrefslogtreecommitdiff
path: root/src/nix-store
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2023-03-03 10:22:11 +0100
committerGitHub <noreply@github.com>2023-03-03 10:22:11 +0100
commitf0908f592cd9d464368339618ffce952a532b3ec (patch)
tree869c0d7df9e5ee777132bdb21fed6ea5890f84b4 /src/nix-store
parent28c3e4eb1d2609079a7efd72c39ed70fac7e614a (diff)
parent29abc8e7647cd9ec6ef5a1df3fcb1dcf4a4495a2 (diff)
Merge pull request #7942 from edolstra/remove-format
Remove FormatOrString and remaining uses of format()
Diffstat (limited to 'src/nix-store')
-rw-r--r--src/nix-store/nix-store.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-store/nix-store.cc b/src/nix-store/nix-store.cc
index 587882883..2f754c961 100644
--- a/src/nix-store/nix-store.cc
+++ b/src/nix-store/nix-store.cc
@@ -460,7 +460,7 @@ static void opPrintEnv(Strings opFlags, Strings opArgs)
/* Print each environment variable in the derivation in a format
* that can be sourced by the shell. */
for (auto & i : drv.env)
- cout << format("export %1%; %1%=%2%\n") % i.first % shellEscape(i.second);
+ logger->cout("export %1%; %1%=%2%\n", i.first, shellEscape(i.second));
/* Also output the arguments. This doesn't preserve whitespace in
arguments. */