diff --git a/guard/src/rules/eval_context.rs b/guard/src/rules/eval_context.rs index 15e644e0c..15e84e0c0 100644 --- a/guard/src/rules/eval_context.rs +++ b/guard/src/rules/eval_context.rs @@ -2245,7 +2245,7 @@ pub(crate) fn simplifed_json_from_root<'value>( pub(crate) fn resolve_function<'value, 'eval, 'loc: 'value>( name: &str, - parameters: &'value Vec>, + parameters: &'value [LetValue<'loc>], resolver: &'eval mut dyn EvalContext<'value, 'loc>, ) -> Result> { validate_number_of_params(name, parameters.len())?; diff --git a/guard/src/rules/evaluate.rs b/guard/src/rules/evaluate.rs index 1cff28327..df45063a8 100644 --- a/guard/src/rules/evaluate.rs +++ b/guard/src/rules/evaluate.rs @@ -219,9 +219,9 @@ fn merge_mixed_results<'a>(incoming: &'a [&PathAwareValue]) -> Vec<&'a PathAware #[allow(clippy::type_complexity)] fn compare( - lhs: &Vec<&PathAwareValue>, + lhs: &[&PathAwareValue], _lhs_query: &[QueryPart<'_>], - rhs: &Vec<&PathAwareValue>, + rhs: &[&PathAwareValue], _rhs_query: Option<&[QueryPart<'_>]>, compare: F, any: bool,