mirror of
https://github.com/NixOS/nix.git
synced 2025-11-21 09:49:36 +01:00
Fix JSON_IMPL macro to avoid extraneous copies
Should take the thing we're serializing by reference.
This commit is contained in:
parent
d9de675357
commit
af71a9dbd9
7 changed files with 17 additions and 17 deletions
|
|
@ -165,7 +165,7 @@ Realisation adl_serializer<Realisation>::from_json(const json & json0)
|
|||
};
|
||||
}
|
||||
|
||||
void adl_serializer<Realisation>::to_json(json & json, Realisation r)
|
||||
void adl_serializer<Realisation>::to_json(json & json, const Realisation & r)
|
||||
{
|
||||
auto jsonDependentRealisations = nlohmann::json::object();
|
||||
for (auto & [depId, depOutPath] : r.dependentRealisations)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue