Skip to content

Commit

Permalink
Fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyMorganz committed Nov 11, 2023
1 parent b24c171 commit c145612
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/formatters/expression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ pub fn is_brackets_string(expression: &Expression) -> bool {
..
}
),
#[cfg(feature = "luau")]
Expression::TypeAssertion { expression, .. } => is_brackets_string(expression),
_ => false,
}
Expand Down
1 change: 1 addition & 0 deletions src/sort_requires.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ fn get_expression_kind(expression: &Expression) -> Option<GroupKind> {
None
}
}
#[cfg(feature = "luau")]
Expression::TypeAssertion { expression, .. } => get_expression_kind(expression),
_ => None,
}
Expand Down

0 comments on commit c145612

Please sign in to comment.