File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ enum ReorderableItemKind {
194
194
}
195
195
196
196
impl ReorderableItemKind {
197
- pub fn from ( item : & ast:: Item ) -> Self {
197
+ fn from ( item : & ast:: Item ) -> Self {
198
198
match item. node {
199
199
_ if contains_macro_use_attr ( item) => ReorderableItemKind :: Other ,
200
200
ast:: ItemKind :: ExternCrate ( ..) => ReorderableItemKind :: ExternCrate ,
@@ -204,11 +204,11 @@ impl ReorderableItemKind {
204
204
}
205
205
}
206
206
207
- pub fn is_same_item_kind ( & self , item : & ast:: Item ) -> bool {
207
+ fn is_same_item_kind ( & self , item : & ast:: Item ) -> bool {
208
208
ReorderableItemKind :: from ( item) == * self
209
209
}
210
210
211
- pub fn is_reorderable ( & self , config : & Config ) -> bool {
211
+ fn is_reorderable ( & self , config : & Config ) -> bool {
212
212
match * self {
213
213
ReorderableItemKind :: ExternCrate => config. reorder_imports ( ) ,
214
214
ReorderableItemKind :: Mod => config. reorder_modules ( ) ,
@@ -217,7 +217,7 @@ impl ReorderableItemKind {
217
217
}
218
218
}
219
219
220
- pub fn in_group ( & self ) -> bool {
220
+ fn in_group ( & self ) -> bool {
221
221
match * self {
222
222
ReorderableItemKind :: ExternCrate
223
223
| ReorderableItemKind :: Mod
You can’t perform that action at this time.
0 commit comments