Skip to content

Commit 488e6fd

Browse files
committed
Remove some unnecessary pubs
1 parent 261238e commit 488e6fd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/reorder.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ enum ReorderableItemKind {
194194
}
195195

196196
impl ReorderableItemKind {
197-
pub fn from(item: &ast::Item) -> Self {
197+
fn from(item: &ast::Item) -> Self {
198198
match item.node {
199199
_ if contains_macro_use_attr(item) => ReorderableItemKind::Other,
200200
ast::ItemKind::ExternCrate(..) => ReorderableItemKind::ExternCrate,
@@ -204,11 +204,11 @@ impl ReorderableItemKind {
204204
}
205205
}
206206

207-
pub fn is_same_item_kind(&self, item: &ast::Item) -> bool {
207+
fn is_same_item_kind(&self, item: &ast::Item) -> bool {
208208
ReorderableItemKind::from(item) == *self
209209
}
210210

211-
pub fn is_reorderable(&self, config: &Config) -> bool {
211+
fn is_reorderable(&self, config: &Config) -> bool {
212212
match *self {
213213
ReorderableItemKind::ExternCrate => config.reorder_imports(),
214214
ReorderableItemKind::Mod => config.reorder_modules(),
@@ -217,7 +217,7 @@ impl ReorderableItemKind {
217217
}
218218
}
219219

220-
pub fn in_group(&self) -> bool {
220+
fn in_group(&self) -> bool {
221221
match *self {
222222
ReorderableItemKind::ExternCrate
223223
| ReorderableItemKind::Mod

0 commit comments

Comments
 (0)