1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 09:31:16 +02:00

Drop some moves that would happen anyway but forbid NRVO where appicable

This commit is contained in:
Jacek Galowicz 2023-10-16 21:48:02 +01:00
parent abf7df2b37
commit 54b350d517
3 changed files with 3 additions and 3 deletions

View file

@ -2290,7 +2290,7 @@ BackedStringView EvalState::coerceToString(
&& (!v2->isList() || v2->listSize() != 0))
result += " ";
}
return std::move(result);
return result;
}
}

View file

@ -4,7 +4,7 @@ namespace nix {
SourcePath EvalState::rootPath(CanonPath path)
{
return std::move(path);
return path;
}
}