Skip to content

Commit

Permalink
[Misc]: addressing new clippy lints in rust 1.76 (aws-cloudformation#454
Browse files Browse the repository at this point in the history
)
  • Loading branch information
joshfried-aws authored Feb 8, 2024
1 parent 3272723 commit 328e7eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion guard/src/rules/eval_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<LetValue<'loc>>,
parameters: &'value [LetValue<'loc>],
resolver: &'eval mut dyn EvalContext<'value, 'loc>,
) -> Result<Vec<QueryResult>> {
validate_number_of_params(name, parameters.len())?;
Expand Down
4 changes: 2 additions & 2 deletions guard/src/rules/evaluate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,9 @@ fn merge_mixed_results<'a>(incoming: &'a [&PathAwareValue]) -> Vec<&'a PathAware

#[allow(clippy::type_complexity)]
fn compare<F>(
lhs: &Vec<&PathAwareValue>,
lhs: &[&PathAwareValue],
_lhs_query: &[QueryPart<'_>],
rhs: &Vec<&PathAwareValue>,
rhs: &[&PathAwareValue],
_rhs_query: Option<&[QueryPart<'_>]>,
compare: F,
any: bool,
Expand Down

0 comments on commit 328e7eb

Please sign in to comment.