diff options
Diffstat (limited to 'src/componentparameter.rs')
| -rw-r--r-- | src/componentparameter.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/componentparameter.rs b/src/componentparameter.rs index e6e0062..a76f243 100644 --- a/src/componentparameter.rs +++ b/src/componentparameter.rs @@ -62,7 +62,7 @@ impl ComponentParameter { } } - pub fn get_type(&self, arguments: &Vec<(String, ParameterType, Option<Parameter>)>) -> Result<ParameterType, &'static str>{ + pub fn get_type(&self, arguments: &[(String, ParameterType, Option<Parameter>)]) -> Result<ParameterType, &'static str>{ Ok(match self { Self::Constant(param) => param.paramtype(), Self::Argument(argname) => arguments.iter().find(|(n, _t, _d)| n == argname).ok_or("unknown argument name")?.1, |
