chore: fmt

This commit is contained in:
Ryan Chandler 2022-12-09 22:40:03 +00:00
parent f933149525
commit 0a25ec4583
No known key found for this signature in database
GPG Key ID: F113BCADDB3B0CCA

View File

@ -1417,7 +1417,14 @@ fn interpolated_string_part(state: &mut State) -> ParseResult<Option<StringPart>
let span = state.current.span;
state.next();
if let TokenKind::LiteralInteger(i) = &state.current.kind {
let e = Expression::ArithmeticOperation(ArithmeticOperation::Negation { span, right: Box::new(Expression::LiteralInteger { i: i.clone() }) });
let e = Expression::ArithmeticOperation(
ArithmeticOperation::Negation {
span,
right: Box::new(Expression::LiteralInteger {
i: i.clone(),
}),
},
);
state.next();
e
} else {