chore(tvix/eval): fix all current clippy lints
Change-Id: I28d6af8cb408f8427a75d30b9120aaa809a1ea40 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6784 Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
This commit is contained in:
parent
d54aeb1f20
commit
e31f8f735f
4 changed files with 6 additions and 6 deletions
|
|
@ -59,7 +59,7 @@ fn pure_builtins() -> Vec<Builtin> {
|
|||
|args, vm| arithmetic_op!(&*args[0].force(vm)?, &*args[1].force(vm)?, +),
|
||||
),
|
||||
Builtin::new("abort", &[true], |args, _| {
|
||||
return Err(ErrorKind::Abort(args[0].to_str()?.to_string()));
|
||||
Err(ErrorKind::Abort(args[0].to_str()?.to_string()))
|
||||
}),
|
||||
Builtin::new("attrNames", &[true], |args, _| {
|
||||
let xs = args[0].to_attrs()?;
|
||||
|
|
@ -313,7 +313,7 @@ fn pure_builtins() -> Vec<Builtin> {
|
|||
}
|
||||
}),
|
||||
Builtin::new("throw", &[true], |args, _| {
|
||||
return Err(ErrorKind::Throw(args[0].to_str()?.to_string()));
|
||||
Err(ErrorKind::Throw(args[0].to_str()?.to_string()))
|
||||
}),
|
||||
// coerce_to_string forces for us
|
||||
Builtin::new("toString", &[false], |args, vm| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue