diff options
author | Griffin Smith <root@gws.fyi> | 2022-09-18T17·21-0400 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2022-09-18T17·55+0000 |
commit | 96d869923a13eab14d2bb111500a59f775967d9a (patch) | |
tree | 4a1f424c1cd133ccb02f12c42150c630a1192f44 /tvix/eval/src/value | |
parent | 78d19ff3e91a3cb712ac32a984d6dd7959daa96b (diff) |
fix(tvix/value): Properly match on Path for PartialEq r/4904
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>
Diffstat (limited to 'tvix/eval/src/value')
-rw-r--r-- | tvix/eval/src/value/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tvix/eval/src/value/mod.rs b/tvix/eval/src/value/mod.rs index 9805af7f4bb2..85abbcd3eece 100644 --- a/tvix/eval/src/value/mod.rs +++ b/tvix/eval/src/value/mod.rs @@ -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, |