mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
inline the usage of nix::renameFile
use `std::filesystem::rename` everywhere and remove `nix::renameFile`
This commit is contained in:
parent
87ab3c0ea4
commit
4537663740
8 changed files with 11 additions and 18 deletions
|
@ -1779,7 +1779,7 @@ void LocalStore::addBuildLog(const StorePath & drvPath, std::string_view log)
|
|||
|
||||
writeFile(tmpFile, compress("bzip2", log));
|
||||
|
||||
renameFile(tmpFile, logPath);
|
||||
std::filesystem::rename(tmpFile, logPath);
|
||||
}
|
||||
|
||||
std::optional<std::string> LocalStore::getVersion()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue