From 16f2e826e438c01d4ed835bcc0a7e735e3448644 Mon Sep 17 00:00:00 2001 From: harupy Date: Mon, 12 Dec 2022 22:18:26 +0900 Subject: [PATCH] Format --- parser/python.lalrpop | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/parser/python.lalrpop b/parser/python.lalrpop index 32bf834..3c980b0 100644 --- a/parser/python.lalrpop +++ b/parser/python.lalrpop @@ -364,11 +364,11 @@ IfStatement: ast::Stmt = { // Determine last else: let mut last = s3.map(|s| s.2).unwrap_or_default(); let end_location = last - .last() - .or_else(|| s2.last().and_then(|last| last.4.last())) - .or_else(|| body.last()) - .unwrap() - .end_location; + .last() + .or_else(|| s2.last().and_then(|last| last.4.last())) + .or_else(|| body.last()) + .unwrap() + .end_location; // handle elif: for i in s2.into_iter().rev() { let x = ast::Stmt {