Skip to content

Commit

Permalink
Clippy fixes for 1.76
Browse files Browse the repository at this point in the history
  • Loading branch information
argerus authored and SebastianSchildt committed Feb 14, 2024
1 parent b7d3da5 commit f4d1fa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kuksa_databroker/databroker/src/query/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ impl CompilationInput for TestCompilationInput {
}

#[cfg(test)]
fn assert_expected(res: Option<Vec<(String, DataValue)>>, expected: &Vec<(String, DataValue)>) {
fn assert_expected(res: Option<Vec<(String, DataValue)>>, expected: &[(String, DataValue)]) {
assert!(res.is_some());
if let Some(fields) = &res {
assert_eq!(fields.len(), expected.len());
Expand Down Expand Up @@ -579,7 +579,7 @@ fn executor_lag_subquery_test() {
let test_compilation_input = TestCompilationInput {};
let compiled_query = compiler::compile(sql, &test_compilation_input).unwrap();
assert_eq!(compiled_query.subquery.len(), 2);
if let Some(subquery) = compiled_query.subquery.get(0) {
if let Some(subquery) = compiled_query.subquery.first() {
assert!(subquery
.input_spec
.contains("Vehicle.Cabin.Seat.Row1.Pos1.Position"));
Expand Down

0 comments on commit f4d1fa2

Please sign in to comment.