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> {
100100 shape,
101101 self . as_ast_node ( ) ,
102102 expr_type,
103- self . is_last_expr ( ) ,
103+ self . is_last ,
104104 )
105105 }
106106}
@@ -110,14 +110,14 @@ fn format_stmt(
110110 shape : Shape ,
111111 stmt : & ast:: Stmt ,
112112 expr_type : ExprType ,
113- is_last_expr : bool ,
113+ is_last : bool ,
114114) -> Option < String > {
115115 skip_out_of_file_lines_range ! ( context, stmt. span( ) ) ;
116116
117117 let result = match stmt. kind {
118118 ast:: StmtKind :: Local ( ref local) => local. rewrite ( context, shape) ,
119119 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 ) {
121121 ";"
122122 } else {
123123 ""
You can’t perform that action at this time.
0 commit comments