mirror of
https://github.com/NixOS/nix
synced 2025-06-30 03:23:16 +02:00
Make EvalState::inputAccessors keyed by the accessor number
This commit is contained in:
parent
f95c425db1
commit
30be6445e6
3 changed files with 7 additions and 11 deletions
|
@ -11,7 +11,7 @@ SourcePath EvalState::rootPath(const Path & path)
|
|||
|
||||
void EvalState::registerAccessor(ref<InputAccessor> accessor)
|
||||
{
|
||||
inputAccessors.emplace(&*accessor, accessor);
|
||||
inputAccessors.emplace(accessor->number, accessor);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue