Skip to content

Commit

Permalink
last version of rust did not show all clippy errors as are on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielLazarHTDM authored and SebastianSchildt committed Feb 13, 2024
1 parent e7fe07f commit 010a5b2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions kuksa_databroker/databroker/src/query/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ impl CompilationInput for TestCompilationInput {

#[cfg(test)]
fn assert_expected(res: Option<Vec<(String, DataValue)>>, expected: &Vec<(String, DataValue)>) {
assert!(matches!(res, Some(_)));
assert!(res.is_some());
if let Some(fields) = &res {
assert_eq!(fields.len(), expected.len());
for (i, (name, value)) in fields.iter().enumerate() {
Expand Down Expand Up @@ -525,7 +525,7 @@ fn executor_test() {
);
let res = compiled_query.execute(&execution_input1).unwrap();

assert!(matches!(res, None));
assert!(res.is_none());
}

#[test]
Expand Down Expand Up @@ -555,7 +555,7 @@ fn executor_lag_test() {
},
);
let res = compiled_query.execute(&execution_input1).unwrap();
assert!(matches!(res, Some(_)));
assert!(res.is_some());
let expected = vec![
(
"Vehicle.Cabin.Seat.Row1.Pos1.Position".to_owned(),
Expand Down Expand Up @@ -593,7 +593,7 @@ fn executor_lag_subquery_test() {
},
);
let res = compiled_query.execute(&execution_input1).unwrap();
assert!(matches!(res, Some(_)));
assert!(res.is_some());
let expected = vec![
(
"Vehicle.Cabin.Seat.Row1.Pos1.Position".to_owned(),
Expand Down Expand Up @@ -627,7 +627,7 @@ fn executor_where_lag_subquery_test() {
},
);
let res = compiled_query.execute(&execution_input1).unwrap();
assert!(matches!(res, Some(_)));
assert!(res.is_some());
let expected = vec![(
"Vehicle.Cabin.Seat.Row1.Pos1.Position".to_owned(),
DataValue::Int32(230),
Expand All @@ -643,5 +643,5 @@ fn executor_where_lag_subquery_test() {
},
);
let res = compiled_query.execute(&execution_input1).unwrap();
assert!(matches!(res, None));
assert!(res.is_none());
}

0 comments on commit 010a5b2

Please sign in to comment.