From ab9407bded75d184ed694afe3564230fd09578ed Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 14 Aug 2022 02:51:09 +0300 Subject: fix(tvix/eval): address various clippy lints Change-Id: I3ea0f51475e80948adfeb5d1620c1f2665cc39bc Reviewed-on: https://cl.tvl.fyi/c/depot/+/6201 Tested-by: BuildkiteCI Reviewed-by: sterni --- tvix/eval/src/eval.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tvix/eval/src/eval.rs') diff --git a/tvix/eval/src/eval.rs b/tvix/eval/src/eval.rs index 456f2575cab7..d8037ea143c7 100644 --- a/tvix/eval/src/eval.rs +++ b/tvix/eval/src/eval.rs @@ -12,7 +12,7 @@ pub fn interpret(code: &str, location: Option) -> EvalResult { todo!() } - if let Ok(_) = std::env::var("TVIX_DISPLAY_AST") { + if std::env::var("TVIX_DISPLAY_AST").is_ok() { println!("{}", ast.root().dump()); } -- cgit 1.4.1