From 5fc49604db4dff18a2d0f96547169a0fc166d342 Mon Sep 17 00:00:00 2001 From: my-vegetable-has-exploded Date: Fri, 18 Oct 2024 21:57:40 +0800 Subject: [PATCH] fix clippy. --- datafusion/core/src/physical_optimizer/join_selection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datafusion/core/src/physical_optimizer/join_selection.rs b/datafusion/core/src/physical_optimizer/join_selection.rs index 6d0d3ce4d21c..56c8c45829c0 100644 --- a/datafusion/core/src/physical_optimizer/join_selection.rs +++ b/datafusion/core/src/physical_optimizer/join_selection.rs @@ -1310,7 +1310,7 @@ mod tests_statistical { let swapped_join = swapped.as_any().downcast_ref::().expect( "ProjectionExec won't be added above if HashJoinExec contains embedded projection", ); - assert_eq!(swapped_join.projection, Some(vec![0 as usize])); + assert_eq!(swapped_join.projection, Some(vec![0_usize])); assert_eq!(swapped.schema().fields.len(), 1); assert_eq!(swapped.schema().fields[0].name(), "small_col"); Ok(())