aboutsummaryrefslogtreecommitdiff
path: root/src/nix/edit.cc
diff options
context:
space:
mode:
authorzimbatm <zimbatm@zimbatm.com>2019-10-28 21:22:38 +0100
committerzimbatm <zimbatm@zimbatm.com>2019-10-28 21:29:54 +0100
commitec448f8bb694b6f9546e49fe6a79b86ff2b2f90a (patch)
treefc4179397140249009ec6e6203d86f40884a9360 /src/nix/edit.cc
parent59c72497696eaafa294c34699795788d24d68c68 (diff)
libexpr: findDerivationFilename return Pos instead of tuple
Diffstat (limited to 'src/nix/edit.cc')
-rw-r--r--src/nix/edit.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nix/edit.cc b/src/nix/edit.cc
index a4aa40bed..d0607747d 100644
--- a/src/nix/edit.cc
+++ b/src/nix/edit.cc
@@ -36,9 +36,9 @@ struct CmdEdit : InstallableCommand
auto v = installable->toValue(*state);
- std::string filename;
- int lineno;
- std::tie(filename, lineno) = findDerivationFilename(*state, *v, installable->what());
+ Pos pos = findDerivationFilename(*state, *v, installable->what());
+ std::string filename(pos.file);
+ int lineno(pos.line);
stopProgressBar();