1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-06 00:51:47 +02: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;
};