@@ -5,26 +5,26 @@ use std::iter::repeat;
55use rustc_ast:: { ast, ptr} ;
66use rustc_span:: { BytePos , Span } ;
77
8+ use crate :: config:: {
9+ lists:: * ,
10+ Config , ControlBraceStyle , IndentStyle , MatchArmLeadingPipe ,
11+ } ;
812use crate :: formatting:: {
913 comment:: { combine_strs_with_missing_comments, rewrite_comment} ,
1014 expr:: {
11- format_expr, is_empty_block, is_simple_block, is_unsafe_block, prefer_next_line, rewrite_cond ,
12- ExprType , RhsTactics ,
15+ format_expr, is_empty_block, is_simple_block, is_unsafe_block, prefer_next_line,
16+ rewrite_cond , ExprType , RhsTactics ,
1317 } ,
1418 lists:: { itemize_list, write_list, ListFormatting } ,
1519 rewrite:: { Rewrite , RewriteContext } ,
1620 shape:: Shape ,
1721 source_map:: SpanUtils ,
1822 spanned:: Spanned ,
1923 utils:: {
20- contains_skip, extra_offset, first_line_width, inner_attributes, last_line_extendable, mk_sp ,
21- semicolon_for_expr, trimmed_last_line_width, unicode_str_width,
24+ contains_skip, extra_offset, first_line_width, inner_attributes, last_line_extendable,
25+ mk_sp , semicolon_for_expr, trimmed_last_line_width, unicode_str_width,
2226 } ,
2327} ;
24- use crate :: config:: {
25- lists:: * ,
26- Config , ControlBraceStyle , IndentStyle , MatchArmLeadingPipe ,
27- } ;
2828
2929/// A simple wrapper type against `ast::Arm`. Used inside `write_list()`.
3030struct ArmWrapper < ' a > {
0 commit comments