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:
parent
77ffaea4fa
commit
bd10a07d17
3 changed files with 31 additions and 25 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue