1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-06 00:51:00 +01:00

Registry: Use a struct instead of a tuple for entries

This commit is contained in:
Eelco Dolstra 2020-04-01 23:03:27 +02:00
parent 77ffaea4fa
commit bd10a07d17
3 changed files with 31 additions and 25 deletions

View file

@ -18,13 +18,14 @@ struct Registry
RegistryType type;
std::vector<
std::tuple<
std::shared_ptr<const Input>, // from
std::shared_ptr<const Input>, // to
Attrs // extra attributes
>
> entries;
struct Entry
{
std::shared_ptr<const Input> from;
std::shared_ptr<const Input> to;
Attrs extraAttrs;
};
std::vector<Entry> entries;
Registry(RegistryType type)
: type(type)