about summary refs log tree commit diff
path: root/src/expr.rs
diff options
context:
space:
mode:
authorCaleb Cartwright <caleb.cartwright@outlook.com>2021-01-27 19:46:32 -0600
committerCaleb Cartwright <calebcartwright@users.noreply.github.com>2021-01-27 20:58:42 -0600
commitc13d2452c058a32d9f9c97d4d44d45b644621d8b (patch)
tree1e77d000049dd46802d6edeba0460af10be47b55 /src/expr.rs
parentbd4dc36c4eb73a776143d51d15770d3060954d28 (diff)
chore: backport some empty block check fixes
Diffstat (limited to 'src/expr.rs')
-rw-r--r--src/expr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expr.rs b/src/expr.rs
index 9c5876ce647..7dfa4d57b13 100644
--- a/src/expr.rs
+++ b/src/expr.rs
@@ -429,7 +429,7 @@ fn rewrite_empty_block(
     prefix: &str,
     shape: Shape,
 ) -> Option<String> {
-    if !block.stmts.is_empty() {
+    if block_has_statements(&block) {
         return None;
     }