Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwparas committed Nov 9, 2024
1 parent 7d80c69 commit d9cc856
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/steel-core/src/parser/expand_visitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -636,9 +636,10 @@ fn expand_keyword_arguments(lambda_function: &mut super::ast::LambdaFunction) ->
// This is a bit wasteful... come back to this
let (var_name, expr) = if let ExprKind::List(l) = original_var_name {
if l.len() != 2 {
stop!(BadSyntax => "Missing default argument for keyword"; lambda_function.location.span)
stop!(BadSyntax => "Missing default argument for keyword";
lambda_function.location.span)
}

(l[0].clone(), l[1].clone())
} else {
(original_var_name.clone(), original_var_name.clone())
Expand Down

0 comments on commit d9cc856

Please sign in to comment.