1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-11 13:06:01 +01:00

lookupInFlakeCache(): Fix O(n) time lookup

This commit is contained in:
Eelco Dolstra 2024-12-10 15:30:55 +01:00
parent d1f20e3510
commit d2e1d4916a
4 changed files with 18 additions and 17 deletions

View file

@ -43,10 +43,9 @@ template<typename T>
struct Explicit {
T t;
bool operator ==(const Explicit<T> & other) const
{
return t == other.t;
}
bool operator ==(const Explicit<T> & other) const = default;
auto operator <=>(const Explicit<T> & other) const = default;
};