Fix a few variadic signatures

This commit is contained in:
Laurenz 2024-01-10 12:58:13 +01:00
parent c20b6ec6e1
commit 0340497e00
2 changed files with 3 additions and 3 deletions

View File

@ -253,7 +253,7 @@ impl Args {
/// The arguments to construct.
#[external]
#[variadic]
arguments: Vec<Args>,
arguments: Vec<Value>,
) -> Args {
args.take()
}

View File

@ -311,7 +311,7 @@ impl Func {
/// The arguments to apply to the function.
#[external]
#[variadic]
arguments: Vec<Args>,
arguments: Vec<Value>,
) -> Func {
let span = self.span;
Self {
@ -331,7 +331,7 @@ impl Func {
/// The fields to filter for.
#[variadic]
#[external]
fields: Vec<Args>,
fields: Vec<Value>,
) -> StrResult<Selector> {
let fields = args.to_named();
args.items.retain(|arg| arg.name.is_none());