Skip to content
This repository was archived by the owner on Jul 27, 2023. It is now read-only.

Commit a1afe64

Browse files
committed
Review
1 parent fbfb4ed commit a1afe64

File tree

2 files changed

+1
-63496
lines changed

2 files changed

+1
-63496
lines changed

parser/src/python.lalrpop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ IfStatement: ast::Stmt = {
773773
let end_location = elif_else_clauses
774774
.last()
775775
.map(|last| last.end())
776-
.unwrap_or(body.last().unwrap().end());
776+
.unwrap_or_else(|| body.last().unwrap().end());
777777

778778
ast::Stmt::If(
779779
ast::StmtIf { test: Box::new(test), body, elif_else_clauses, range: (location..end_location).into() }

0 commit comments

Comments
 (0)