This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -41,9 +41,6 @@ pub use crate::rustfmt_diff::{ModifiedChunk, ModifiedLines};
4141#[ macro_use]
4242mod utils;
4343
44- #[ macro_use]
45- mod release_channel;
46-
4744mod attr;
4845mod chains;
4946mod closures;
@@ -66,6 +63,7 @@ pub(crate) mod modules;
6663mod overflow;
6764mod pairs;
6865mod patterns;
66+ mod release_channel;
6967mod reorder;
7068mod rewrite;
7169pub ( crate ) mod rustfmt_diff;
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ use std::cmp::{Ord, Ordering};
1010
1111use syntax:: { ast, attr, source_map:: Span , symbol:: sym} ;
1212
13- use crate :: attr:: filter_inline_attrs;
1413use crate :: config:: Config ;
1514use crate :: imports:: { merge_use_trees, UseTree } ;
1615use crate :: items:: { is_mod_decl, rewrite_extern_crate, rewrite_mod} ;
@@ -149,10 +148,7 @@ fn rewrite_reorderable_items(
149148}
150149
151150fn contains_macro_use_attr ( item : & ast:: Item ) -> bool {
152- attr:: contains_name (
153- & filter_inline_attrs ( & item. attrs , item. span ( ) ) ,
154- sym:: macro_use,
155- )
151+ attr:: contains_name ( & item. attrs , sym:: macro_use)
156152}
157153
158154/// A simplified version of `ast::ItemKind`.
You can’t perform that action at this time.
0 commit comments