|
11 | 11 | use std::borrow::Cow;
|
12 | 12 | use std::cmp::min;
|
13 | 13 |
|
14 |
| -use config::lists::*; |
15 | 14 | use syntax::parse::token::DelimToken;
|
16 | 15 | use syntax::source_map::{BytePos, SourceMap, Span};
|
17 | 16 | use syntax::{ast, ptr};
|
18 | 17 |
|
19 |
| -use chains::rewrite_chain; |
20 |
| -use closures; |
21 |
| -use comment::{ |
| 18 | +use crate::chains::rewrite_chain; |
| 19 | +use crate::closures; |
| 20 | +use crate::comment::{ |
22 | 21 | combine_strs_with_missing_comments, contains_comment, recover_comment_removed, rewrite_comment,
|
23 | 22 | rewrite_missing_comment, CharClasses, FindUncommented,
|
24 | 23 | };
|
25 |
| -use config::{Config, ControlBraceStyle, IndentStyle, Version}; |
26 |
| -use lists::{ |
| 24 | +use crate::config::lists::*; |
| 25 | +use crate::config::{Config, ControlBraceStyle, IndentStyle, Version}; |
| 26 | +use crate::lists::{ |
27 | 27 | definitive_tactic, itemize_list, shape_for_tactic, struct_lit_formatting, struct_lit_shape,
|
28 | 28 | struct_lit_tactic, write_list, ListFormatting, ListItem, Separator,
|
29 | 29 | };
|
30 |
| -use macros::{rewrite_macro, MacroPosition}; |
31 |
| -use matches::rewrite_match; |
32 |
| -use overflow::{self, IntoOverflowableItem, OverflowableItem}; |
33 |
| -use pairs::{rewrite_all_pairs, rewrite_pair, PairParts}; |
34 |
| -use patterns::is_short_pattern; |
35 |
| -use rewrite::{Rewrite, RewriteContext}; |
36 |
| -use shape::{Indent, Shape}; |
37 |
| -use source_map::{LineRangeUtils, SpanUtils}; |
38 |
| -use spanned::Spanned; |
39 |
| -use string::{rewrite_string, StringFormat}; |
40 |
| -use types::{rewrite_path, PathContext}; |
41 |
| -use utils::{ |
| 30 | +use crate::macros::{rewrite_macro, MacroPosition}; |
| 31 | +use crate::matches::rewrite_match; |
| 32 | +use crate::overflow::{self, IntoOverflowableItem, OverflowableItem}; |
| 33 | +use crate::pairs::{rewrite_all_pairs, rewrite_pair, PairParts}; |
| 34 | +use crate::patterns::is_short_pattern; |
| 35 | +use crate::rewrite::{Rewrite, RewriteContext}; |
| 36 | +use crate::shape::{Indent, Shape}; |
| 37 | +use crate::source_map::{LineRangeUtils, SpanUtils}; |
| 38 | +use crate::spanned::Spanned; |
| 39 | +use crate::string::{rewrite_string, StringFormat}; |
| 40 | +use crate::types::{rewrite_path, PathContext}; |
| 41 | +use crate::utils::{ |
42 | 42 | colon_spaces, contains_skip, count_newlines, first_line_ends_with, inner_attributes,
|
43 | 43 | last_line_extendable, last_line_width, mk_sp, outer_attributes, ptr_vec_to_ref_vec,
|
44 | 44 | semicolon_for_expr, semicolon_for_stmt, wrap_str,
|
45 | 45 | };
|
46 |
| -use vertical::rewrite_with_alignment; |
47 |
| -use visitor::FmtVisitor; |
| 46 | +use crate::vertical::rewrite_with_alignment; |
| 47 | +use crate::visitor::FmtVisitor; |
48 | 48 |
|
49 | 49 | impl Rewrite for ast::Expr {
|
50 | 50 | fn rewrite(&self, context: &RewriteContext, shape: Shape) -> Option<String> {
|
|
0 commit comments