Skip to content

Commit 64affa2

Browse files
committed
Reduce more items to crate visibility
1 parent f234c8a commit 64affa2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/crates/registry.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ use tar::Archive;
1010

1111
static CRATES_ROOT: &str = "https://static.crates.io/crates";
1212

13-
pub struct AlternativeRegistry {
13+
pub(crate) struct AlternativeRegistry {
1414
registry_index: String,
1515
}
1616

1717
impl AlternativeRegistry {
18-
pub fn new(registry_index: impl Into<String>) -> AlternativeRegistry {
18+
pub(crate) fn new(registry_index: impl Into<String>) -> AlternativeRegistry {
1919
AlternativeRegistry {
2020
registry_index: registry_index.into(),
2121
}
@@ -30,7 +30,7 @@ impl AlternativeRegistry {
3030
}
3131
}
3232

33-
pub enum Registry {
33+
pub(crate) enum Registry {
3434
CratesIo,
3535
Alternative(AlternativeRegistry),
3636
}

0 commit comments

Comments
 (0)