1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-13 14:02:42 +01:00

Remove the visit machinery in RealisedPath

In addition to being some ugly template trickery, it was also totally
useless as it was used in only one place where I could replace it by
just a few extra characters
This commit is contained in:
regnat 2021-02-04 15:15:22 +01:00
parent d2091af231
commit e69cfdebb0
2 changed files with 1 additions and 14 deletions

View file

@ -47,7 +47,7 @@ Realisation Realisation::fromJSON(
}
StorePath RealisedPath::path() const {
return visit([](auto && arg) { return arg.getPath(); });
return std::visit([](auto && arg) { return arg.getPath(); }, raw);
}
void RealisedPath::closure(