mirror of
https://github.com/NixOS/nix.git
synced 2025-11-14 06:22:42 +01:00
Drop some moves that would happen anyway but forbid NRVO where appicable
This commit is contained in:
parent
abf7df2b37
commit
54b350d517
3 changed files with 3 additions and 3 deletions
|
|
@ -83,7 +83,7 @@ static std::pair<ContentAddressMethod, HashType> parseContentAddressMethodPrefix
|
|||
if (!hashTypeRaw)
|
||||
throw UsageError("content address hash must be in form '<algo>:<hash>', but found: %s", wholeInput);
|
||||
HashType hashType = parseHashType(*hashTypeRaw);
|
||||
return std::move(hashType);
|
||||
return hashType;
|
||||
};
|
||||
|
||||
// Switch on prefix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue