mirror of
https://github.com/NixOS/nix
synced 2025-06-27 04:21:16 +02:00
Use template structs instead of phantoms
This commit is contained in:
parent
3d8240c32e
commit
9ab07e99f5
8 changed files with 148 additions and 156 deletions
|
@ -45,7 +45,7 @@ void Store::exportPath(const StorePath & path, Sink & sink)
|
|||
teeSink
|
||||
<< exportMagic
|
||||
<< printStorePath(path);
|
||||
nix::worker_proto::write(*this, teeSink, info->references);
|
||||
WorkerProto<StorePathSet>::write(*this, teeSink, info->references);
|
||||
teeSink
|
||||
<< (info->deriver ? printStorePath(*info->deriver) : "")
|
||||
<< 0;
|
||||
|
@ -73,7 +73,7 @@ StorePaths Store::importPaths(Source & source, CheckSigsFlag checkSigs)
|
|||
|
||||
//Activity act(*logger, lvlInfo, format("importing path '%s'") % info.path);
|
||||
|
||||
info.references = nix::worker_proto::read(*this, source, Phantom<StorePathSet> {});
|
||||
info.references = WorkerProto<StorePathSet>::read(*this, source);
|
||||
|
||||
auto deriver = readString(source);
|
||||
if (deriver != "")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue