From 96d869923a13eab14d2bb111500a59f775967d9a Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Sun, 18 Sep 2022 13:21:39 -0400 Subject: 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 Tested-by: BuildkiteCI Reviewed-by: tazjin --- tvix/eval/src/value/mod.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'tvix') 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, -- cgit 1.4.1