File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ impl<'a> Rewrite for Stmt<'a> {
100
100
shape,
101
101
self . as_ast_node ( ) ,
102
102
expr_type,
103
- self . is_last_expr ( ) ,
103
+ self . is_last ,
104
104
)
105
105
}
106
106
}
@@ -110,14 +110,14 @@ fn format_stmt(
110
110
shape : Shape ,
111
111
stmt : & ast:: Stmt ,
112
112
expr_type : ExprType ,
113
- is_last_expr : bool ,
113
+ is_last : bool ,
114
114
) -> Option < String > {
115
115
skip_out_of_file_lines_range ! ( context, stmt. span( ) ) ;
116
116
117
117
let result = match stmt. kind {
118
118
ast:: StmtKind :: Local ( ref local) => local. rewrite ( context, shape) ,
119
119
ast:: StmtKind :: Expr ( ref ex) | ast:: StmtKind :: Semi ( ref ex) => {
120
- let suffix = if semicolon_for_stmt ( context, stmt, is_last_expr ) {
120
+ let suffix = if semicolon_for_stmt ( context, stmt, is_last ) {
121
121
";"
122
122
} else {
123
123
""
You can’t perform that action at this time.
0 commit comments