From 7da5076191d4037b9a0cfb5c818d64eb2822d9d0 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 26 Aug 2022 18:40:55 +0300 Subject: refactor(tvix/eval): rename Value::NotFound & OpAttrOrNotFound grfn suggested clearer naming for these in cl/6166. Change-Id: I83164bf1d1902ebd42272e9d5d63819a0f6a72c5 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6277 Reviewed-by: grfn Tested-by: BuildkiteCI --- tvix/eval/src/value/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tvix/eval/src/value') diff --git a/tvix/eval/src/value/mod.rs b/tvix/eval/src/value/mod.rs index 3db6a00e4df6..1210e0f9a7e9 100644 --- a/tvix/eval/src/value/mod.rs +++ b/tvix/eval/src/value/mod.rs @@ -33,7 +33,7 @@ pub enum Value { // Internal values that, while they technically exist at runtime, // are never returned to or created directly by users. AttrPath(Vec), - NotFound, + AttrNotFound, } impl Value { @@ -54,7 +54,7 @@ impl Value { Value::Closure(_) | Value::Builtin(_) => "lambda", // Internal types - Value::AttrPath(_) | Value::NotFound => "internal", + Value::AttrPath(_) | Value::AttrNotFound => "internal", } } @@ -140,7 +140,7 @@ impl Display for Value { // internal types Value::AttrPath(path) => write!(f, "internal[attrpath({})]", path.len()), - Value::NotFound => f.write_str("internal[not found]"), + Value::AttrNotFound => f.write_str("internal[not found]"), } } } -- cgit 1.4.1