Get rid of some unneeded temporaries
This commit is contained in:
parent
1dfcbebc95
commit
16c98bf57c
1 changed files with 2 additions and 4 deletions
|
@ -60,14 +60,12 @@ void writeStorePathCAMap(const Store & store, Sink & out, const StorePathCAMap &
|
||||||
|
|
||||||
StorePath read(const Store & store, Source & from, Proxy<StorePath> _)
|
StorePath read(const Store & store, Source & from, Proxy<StorePath> _)
|
||||||
{
|
{
|
||||||
auto path = readString(from);
|
return store.parseStorePath(readString(from));
|
||||||
return store.parseStorePath(path);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void write(const Store & store, Sink & out, const StorePath & storePath)
|
void write(const Store & store, Sink & out, const StorePath & storePath)
|
||||||
{
|
{
|
||||||
auto path = store.printStorePath(storePath);
|
out << store.printStorePath(storePath);
|
||||||
out << path;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue