fix(tvix/value): Properly match on Path for PartialEq
this was found by proptests! Change-Id: I16d6a6ece3b20cdddd6f78c94cc87befb1b651e6 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6647 Autosubmit: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
This commit is contained in:
parent
78d19ff3e9
commit
96d869923a
1 changed files with 1 additions and 0 deletions
|
@ -299,6 +299,7 @@ impl PartialEq for Value {
|
|||
(Value::Bool(b1), Value::Bool(b2)) => b1 == b2,
|
||||
(Value::List(l1), Value::List(l2)) => l1 == l2,
|
||||
(Value::String(s1), Value::String(s2)) => s1 == s2,
|
||||
(Value::Path(p1), Value::Path(p2)) => p1 == p2,
|
||||
|
||||
// Numerical comparisons (they work between float & int)
|
||||
(Value::Integer(i1), Value::Integer(i2)) => i1 == i2,
|
||||
|
|
Loading…
Reference in a new issue