From 78ba0955b65459e4890d42259023840ac1eb0b4f Mon Sep 17 00:00:00 2001 From: Pranav Gaddamadugu Date: Tue, 17 Oct 2023 15:38:35 -0400 Subject: [PATCH] Clippy --- compiler/passes/src/flattening/flatten_expression.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/passes/src/flattening/flatten_expression.rs b/compiler/passes/src/flattening/flatten_expression.rs index ef37593980..b5ea08b7f4 100644 --- a/compiler/passes/src/flattening/flatten_expression.rs +++ b/compiler/passes/src/flattening/flatten_expression.rs @@ -86,13 +86,13 @@ impl ExpressionReconstructor for Flattener<'_> { assert!(first_type.eq_flat(&second_type)); match &first_type { - Type::Array(first_type) => self.ternary_array(&first_type, &input.condition, &first, &second), + Type::Array(first_type) => self.ternary_array(first_type, &input.condition, &first, &second), Type::Identifier(first_type) => { // Get the struct definitions. let first_type = self.symbol_table.lookup_struct(first_type.name).unwrap(); - self.ternary_struct(&first_type, &input.condition, &first, &second) + self.ternary_struct(first_type, &input.condition, &first, &second) } - Type::Tuple(first_type) => self.ternary_tuple(&first_type, &input.condition, &first, &second), + Type::Tuple(first_type) => self.ternary_tuple(first_type, &input.condition, &first, &second), _ => { // Reconstruct the true case. let (if_true, stmts) = self.reconstruct_expression(Expression::Identifier(first));