mirror of
https://github.com/NixOS/nix
synced 2025-06-28 22:01:15 +02:00
Use more std::visit to prepare for new variant
N.B. not using `std::visit` for fetchurl because there is no attempt to handle all the cases (e.g. no `else`) and lambda complicates early return.
This commit is contained in:
parent
ffc18583b1
commit
fedfc913ad
3 changed files with 32 additions and 18 deletions
|
@ -25,7 +25,10 @@ struct DerivationOutputFixed
|
|||
|
||||
struct DerivationOutput
|
||||
{
|
||||
std::variant<DerivationOutputInputAddressed, DerivationOutputFixed> output;
|
||||
std::variant<
|
||||
DerivationOutputInputAddressed,
|
||||
DerivationOutputFixed
|
||||
> output;
|
||||
StorePath path(const Store & store, std::string_view drvName) const;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue