mirror of
https://github.com/NixOS/nix.git
synced 2025-12-13 04:21:04 +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
|
|
@ -509,7 +509,7 @@ fetchers::PublicKey adl_serializer<fetchers::PublicKey>::from_json(const json &
|
|||
return res;
|
||||
}
|
||||
|
||||
void adl_serializer<fetchers::PublicKey>::to_json(json & json, fetchers::PublicKey p)
|
||||
void adl_serializer<fetchers::PublicKey>::to_json(json & json, const fetchers::PublicKey & p)
|
||||
{
|
||||
json["type"] = p.type;
|
||||
json["key"] = p.key;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue