1
0
Fork 0
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:
Eelco Dolstra 2022-08-29 15:35:35 +02:00
parent f95c425db1
commit 30be6445e6
3 changed files with 7 additions and 11 deletions

View file

@ -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);
}
}