We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f234c8a commit 64affa2Copy full SHA for 64affa2
src/crates/registry.rs
@@ -10,12 +10,12 @@ use tar::Archive;
10
11
static CRATES_ROOT: &str = "https://static.crates.io/crates";
12
13
-pub struct AlternativeRegistry {
+pub(crate) struct AlternativeRegistry {
14
registry_index: String,
15
}
16
17
impl AlternativeRegistry {
18
- pub fn new(registry_index: impl Into<String>) -> AlternativeRegistry {
+ pub(crate) fn new(registry_index: impl Into<String>) -> AlternativeRegistry {
19
AlternativeRegistry {
20
registry_index: registry_index.into(),
21
@@ -30,7 +30,7 @@ impl AlternativeRegistry {
30
31
32
33
-pub enum Registry {
+pub(crate) enum Registry {
34
CratesIo,
35
Alternative(AlternativeRegistry),
36
0 commit comments