mirror of
https://github.com/NixOS/nix.git
synced 2025-11-14 14:32:42 +01:00
Use designated initializers for DerivationOutputHash
This commit is contained in:
parent
237d88c97e
commit
145d88cb2a
4 changed files with 10 additions and 9 deletions
|
|
@ -124,8 +124,8 @@ static DerivationOutput parseDerivationOutput(const Store & store, istringstream
|
|||
if (hashType == htUnknown)
|
||||
throw Error("unknown hash hashAlgorithm '%s'", hashAlgo);
|
||||
fsh = DerivationOutputHash {
|
||||
std::move(method),
|
||||
Hash(hash, hashType),
|
||||
.method = std::move(method),
|
||||
.hash = Hash(hash, hashType),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -424,8 +424,8 @@ static DerivationOutput readDerivationOutput(Source & in, const Store & store)
|
|||
if (hashType == htUnknown)
|
||||
throw Error("unknown hash hashAlgorithm '%s'", hashAlgo);
|
||||
fsh = DerivationOutputHash {
|
||||
std::move(method),
|
||||
Hash(hash, hashType),
|
||||
.method = std::move(method),
|
||||
.hash = Hash(hash, hashType),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue