aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libstore/derivations.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/libstore/derivations.cc b/src/libstore/derivations.cc
index cc04119c3..1c695de82 100644
--- a/src/libstore/derivations.cc
+++ b/src/libstore/derivations.cc
@@ -222,11 +222,9 @@ static DerivationOutput parseDerivationOutput(const Store & store,
if (hash == "impure") {
settings.requireExperimentalFeature(Xp::ImpureDerivations);
assert(pathS == "");
- return DerivationOutput {
- .output = DerivationOutputImpure {
- .method = std::move(method),
- .hashType = std::move(hashType),
- },
+ return DerivationOutput::Impure {
+ .method = std::move(method),
+ .hashType = std::move(hashType),
};
} else if (hash != "") {
validatePath(pathS);