diff --git a/src/resource.rs b/src/resource.rs index 1209908b3..e3f4852c1 100644 --- a/src/resource.rs +++ b/src/resource.rs @@ -169,7 +169,7 @@ impl OpDef { pub fn new_with_yaml_types( name: SmolStr, description: String, - args: Vec, + params: Vec, misc: HashMap, inputs: String, // TODO this is likely the wrong type outputs: String, // TODO similarly @@ -179,7 +179,7 @@ impl OpDef { resource: Default::default(), // Currently overwritten when OpDef added to Resource name, description, - params: args, + params, misc, signature_func: SignatureFunc::FromYAML { inputs, outputs }, lower_funcs: Vec::new(), @@ -190,7 +190,7 @@ impl OpDef { pub fn new_with_custom_sig( name: SmolStr, description: String, - args: Vec, + params: Vec, misc: HashMap, sig_func: impl CustomSignatureFunc + 'static, ) -> Self { @@ -198,7 +198,7 @@ impl OpDef { resource: Default::default(), // Currently overwritten when OpDef added to Resource name, description, - params: args, + params, misc, signature_func: SignatureFunc::CustomFunc(Box::new(sig_func)), lower_funcs: Vec::new(), diff --git a/src/types/custom.rs b/src/types/custom.rs index 5317e6a99..fc3a8f89c 100644 --- a/src/types/custom.rs +++ b/src/types/custom.rs @@ -22,10 +22,10 @@ pub struct CustomType { impl CustomType { /// Creates a new opaque type. - pub fn new(id: impl Into, params: impl Into>) -> Self { + pub fn new(id: impl Into, args: impl Into>) -> Self { Self { id: id.into(), - args: params.into(), + args: args.into(), } }