diff options
author | Vincent Ambo <mail@tazj.in> | 2022-08-25T15·39+0300 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2022-09-03T00·47+0000 |
commit | edee8eecdf706803d3182a4a427c33ba33c71db1 (patch) | |
tree | a87d66253160c1b53d086c6ab5779d3d5a7794dd /tvix/eval/src/builtins | |
parent | 39b01c302937fe3e91c15758b520c3ecc5379c7b (diff) |
fix(tvix/eval): address all current clippy lints r/4608
Change-Id: I758fc4f3b9078de7ca6228a75a4351c3e085c4cf Reviewed-on: https://cl.tvl.fyi/c/depot/+/6272 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/eval/src/builtins')
-rw-r--r-- | tvix/eval/src/builtins/mod.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tvix/eval/src/builtins/mod.rs b/tvix/eval/src/builtins/mod.rs index 99a63c97998d..49f047543994 100644 --- a/tvix/eval/src/builtins/mod.rs +++ b/tvix/eval/src/builtins/mod.rs @@ -43,11 +43,10 @@ fn pure_builtins() -> Vec<Builtin> { Ok(Value::Bool(matches!(args[0], Value::Float(_)))) }), Builtin::new("isFunction", 1, |args| { - Ok(Value::Bool(match args[0] { - Value::Closure(_) => true, - Value::Builtin(_) => true, - _ => false, - })) + Ok(Value::Bool(matches!( + args[0], + Value::Closure(_) | Value::Builtin(_) + ))) }), Builtin::new("isInt", 1, |args| { Ok(Value::Bool(matches!(args[0], Value::Integer(_)))) |