Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
d0cd committed Oct 20, 2023
1 parent 929d4c1 commit 42398b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/passes/src/flattening/flatten_expression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 42398b9

Please sign in to comment.