Skip to content

Commit 241a6f6

Browse files
committed
Remove crate visibility modifier in libs, tests
1 parent 86940d2 commit 241a6f6

File tree

4 files changed

+2
-28
lines changed

4 files changed

+2
-28
lines changed

Diff for: tests/source/fn-simple.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ mod foo {
6363
// #2082
6464
pub(crate) fn init() {}
6565

66-
crate fn init() {}
66+
pub(crate) fn init() {}
6767

6868
// #2630
6969
fn make_map<T, F: (Fn(&T) -> String)>(records: &Vec<T>, key_fn: F) -> HashMap<String, usize> {}

Diff for: tests/source/pub-restricted.rs

-13
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,6 @@ pub( crate ) enum WriteState<D> {
2424
WriteData(Writer<D>),
2525
}
2626

27-
crate enum WriteState<D> {
28-
WriteId {
29-
id: U64Writer,
30-
size: U64Writer,
31-
payload: Option<Writer<D>>,
32-
},
33-
WriteSize {
34-
size: U64Writer,
35-
payload: Option<Writer<D>>,
36-
},
37-
WriteData(Writer<D>),
38-
}
39-
4027
pub(in ::global:: path :: to::some_mod ) enum WriteState<D> {
4128
WriteId {
4229
id: U64Writer,

Diff for: tests/target/fn-simple.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ mod foo {
105105
// #2082
106106
pub(crate) fn init() {}
107107

108-
crate fn init() {}
108+
pub(crate) fn init() {}
109109

110110
// #2630
111111
fn make_map<T, F: (Fn(&T) -> String)>(records: &Vec<T>, key_fn: F) -> HashMap<String, usize> {}

Diff for: tests/target/pub-restricted.rs

-13
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,6 @@ pub(crate) enum WriteState<D> {
2424
WriteData(Writer<D>),
2525
}
2626

27-
crate enum WriteState<D> {
28-
WriteId {
29-
id: U64Writer,
30-
size: U64Writer,
31-
payload: Option<Writer<D>>,
32-
},
33-
WriteSize {
34-
size: U64Writer,
35-
payload: Option<Writer<D>>,
36-
},
37-
WriteData(Writer<D>),
38-
}
39-
4027
pub(in global::path::to::some_mod) enum WriteState<D> {
4128
WriteId {
4229
id: U64Writer,

0 commit comments

Comments
 (0)