diff options
Diffstat (limited to 'tvix/eval/src/value')
-rw-r--r-- | tvix/eval/src/value/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tvix/eval/src/value/mod.rs b/tvix/eval/src/value/mod.rs index 0c9042dbfe25..4a343797480e 100644 --- a/tvix/eval/src/value/mod.rs +++ b/tvix/eval/src/value/mod.rs @@ -52,9 +52,9 @@ impl Value { } } - pub fn as_bool(self) -> EvalResult<bool> { + pub fn as_bool(&self) -> EvalResult<bool> { match self { - Value::Bool(b) => Ok(b), + Value::Bool(b) => Ok(*b), other => Err(Error::TypeError { expected: "bool", actual: other.type_of(), |