about summary refs log tree commit diff
path: root/src/expr.rs
diff options
context:
space:
mode:
authorcad97 <cad97@cad97.com>2018-08-23 17:14:19 -0400
committercad97 <cad97@cad97.com>2018-08-23 17:14:19 -0400
commitfc1909d311cebd2920b968b8fe161267c12c5fe1 (patch)
tree35815432eb26fda22cb20f39d2b4c82d59c8995b /src/expr.rs
parent04d804c3655eaaa262d1147446290e8fe4aabc67 (diff)
Reformat
Diffstat (limited to 'src/expr.rs')
-rw-r--r--src/expr.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/expr.rs b/src/expr.rs
index 909ea46f75d..e6161c0c42b 100644
--- a/src/expr.rs
+++ b/src/expr.rs
@@ -12,13 +12,12 @@ use std::borrow::Cow;
 use std::cmp::min;
 
 use config::lists::*;
-use syntax::source_map::{BytePos, SourceMap, Span};
 use syntax::parse::token::DelimToken;
+use syntax::source_map::{BytePos, SourceMap, Span};
 use syntax::{ast, ptr};
 
 use chains::rewrite_chain;
 use closures;
-use source_map::{LineRangeUtils, SpanUtils};
 use comment::{
     combine_strs_with_missing_comments, contains_comment, recover_comment_removed, rewrite_comment,
     rewrite_missing_comment, CharClasses, FindUncommented,
@@ -35,6 +34,7 @@ use pairs::{rewrite_all_pairs, rewrite_pair, PairParts};
 use patterns::{can_be_overflowed_pat, is_short_pattern, TuplePatField};
 use rewrite::{Rewrite, RewriteContext};
 use shape::{Indent, Shape};
+use source_map::{LineRangeUtils, SpanUtils};
 use spanned::Spanned;
 use string::{rewrite_string, StringFormat};
 use types::{can_be_overflowed_type, rewrite_path, PathContext};
@@ -425,7 +425,9 @@ fn rewrite_empty_block(
         return None;
     }
 
-    if block.stmts.is_empty() && !block_contains_comment(block, context.source_map) && shape.width >= 2
+    if block.stmts.is_empty()
+        && !block_contains_comment(block, context.source_map)
+        && shape.width >= 2
     {
         return Some(format!("{}{}{{}}", prefix, label_str));
     }