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:
parent
d1f20e3510
commit
d2e1d4916a
4 changed files with 18 additions and 17 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue