mirror of
https://github.com/NixOS/nix.git
synced 2025-11-25 03:39:36 +01:00
Cleanup: Remove singleton()
This commit is contained in:
parent
0d4a10e910
commit
6c75cf69c3
9 changed files with 23 additions and 35 deletions
|
|
@ -222,8 +222,7 @@ void switchLink(Path link, Path target)
|
|||
|
||||
void lockProfile(PathLocks & lock, const Path & profile)
|
||||
{
|
||||
lock.lockPaths(singleton<PathSet>(profile),
|
||||
(format("waiting for lock on profile ‘%1%’") % profile).str());
|
||||
lock.lockPaths({profile}, (format("waiting for lock on profile ‘%1%’") % profile).str());
|
||||
lock.setDeletion(true);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue