fix(tvix/eval): address all current clippy lints
Change-Id: I758fc4f3b9078de7ca6228a75a4351c3e085c4cf Reviewed-on: https://cl.tvl.fyi/c/depot/+/6272 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
This commit is contained in:
parent
39b01c3029
commit
edee8eecdf
6 changed files with 10 additions and 13 deletions
|
|
@ -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(_))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue