We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c97996f commit 46e5f14Copy full SHA for 46e5f14
src/stmt.rs
@@ -100,7 +100,7 @@ impl<'a> Rewrite for Stmt<'a> {
100
shape,
101
self.as_ast_node(),
102
expr_type,
103
- self.is_last_expr(),
+ self.is_last,
104
)
105
}
106
@@ -110,14 +110,14 @@ fn format_stmt(
110
shape: Shape,
111
stmt: &ast::Stmt,
112
expr_type: ExprType,
113
- is_last_expr: bool,
+ is_last: bool,
114
) -> Option<String> {
115
skip_out_of_file_lines_range!(context, stmt.span());
116
117
let result = match stmt.kind {
118
ast::StmtKind::Local(ref local) => local.rewrite(context, shape),
119
ast::StmtKind::Expr(ref ex) | ast::StmtKind::Semi(ref ex) => {
120
- let suffix = if semicolon_for_stmt(context, stmt, is_last_expr) {
+ let suffix = if semicolon_for_stmt(context, stmt, is_last) {
121
";"
122
} else {
123
""
0 commit comments