about summary refs log tree commit diff
path: root/tvix/eval/src/eval.rs
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-08-13T23·51+0300
committertazjin <tazjin@tvl.su>2022-08-30T16·53+0000
commitab9407bded75d184ed694afe3564230fd09578ed (patch)
tree0492d451f8c8a78fb4c3dbf3f59ed2f6e763a57e /tvix/eval/src/eval.rs
parentc4f73eecdca23ea3adaed5584224046ffdd99b4c (diff)
fix(tvix/eval): address various clippy lints r/4537
Change-Id: I3ea0f51475e80948adfeb5d1620c1f2665cc39bc
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6201
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'tvix/eval/src/eval.rs')
-rw-r--r--tvix/eval/src/eval.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/eval/src/eval.rs b/tvix/eval/src/eval.rs
index 456f2575ca..d8037ea143 100644
--- a/tvix/eval/src/eval.rs
+++ b/tvix/eval/src/eval.rs
@@ -12,7 +12,7 @@ pub fn interpret(code: &str, location: Option<PathBuf>) -> EvalResult<Value> {
         todo!()
     }
 
-    if let Ok(_) = std::env::var("TVIX_DISPLAY_AST") {
+    if std::env::var("TVIX_DISPLAY_AST").is_ok() {
         println!("{}", ast.root().dump());
     }