Skip to content

Commit a8874ca

Browse files
committed
Get rid of unwanted 'public' module.
1 parent 821271c commit a8874ca

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/avatars/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ impl Avatar {
6262
}
6363
}
6464

65+
// Builder for Avatar instances.
6566
#[derive(Default)]
6667
pub struct AvatarBuilder {
6768
email: String,

src/lib.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ mod _avatars;
99
#[path = "common/mod.rs"]
1010
mod _common;
1111

12-
pub use public::*;
13-
pub mod public {
14-
pub mod avatars {
15-
pub use crate::_avatars::{Avatar, AvatarBuilder, Rating, _Default as Default};
16-
}
12+
pub use avatars::*;
13+
pub mod avatars {
14+
pub use crate::_avatars::{Avatar, AvatarBuilder, Rating, _Default as Default};
1715
}

0 commit comments

Comments
 (0)