libexpr: findDerivationFilename return Pos instead of tuple

This commit is contained in:
zimbatm
2019-10-28 21:29:54 +01:00
parent 59c7249769
commit ec448f8bb6
4 changed files with 13 additions and 11 deletions
+3 -3
View File
@@ -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();