mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
Fix moves that accidentally copy anyway
This commit is contained in:
parent
aa4f41d796
commit
abf7df2b37
4 changed files with 5 additions and 5 deletions
|
@ -539,7 +539,7 @@ EvalState::EvalState(
|
|||
auto r = resolveSearchPathPath(i.path);
|
||||
if (!r) continue;
|
||||
|
||||
auto path = *std::move(r);
|
||||
auto path = std::move(*r);
|
||||
|
||||
if (store->isInStore(path)) {
|
||||
try {
|
||||
|
@ -1035,7 +1035,7 @@ std::string EvalState::mkOutputStringRaw(
|
|||
/* In practice, this is testing for the case of CA derivations, or
|
||||
dynamic derivations. */
|
||||
return optStaticOutputPath
|
||||
? store->printStorePath(*std::move(optStaticOutputPath))
|
||||
? store->printStorePath(std::move(*optStaticOutputPath))
|
||||
/* Downstream we would substitute this for an actual path once
|
||||
we build the floating CA derivation */
|
||||
: DownstreamPlaceholder::fromSingleDerivedPathBuilt(b, xpSettings).render();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue