Skip to content

Commit

Permalink
Get rid of unwanted 'public' module.
Browse files Browse the repository at this point in the history
  • Loading branch information
headcr4sh committed Aug 29, 2024
1 parent 821271c commit a8874ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/avatars/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ impl Avatar {
}
}

// Builder for Avatar instances.
#[derive(Default)]
pub struct AvatarBuilder {
email: String,
Expand Down
8 changes: 3 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ mod _avatars;
#[path = "common/mod.rs"]
mod _common;

pub use public::*;
pub mod public {
pub mod avatars {
pub use crate::_avatars::{Avatar, AvatarBuilder, Rating, _Default as Default};
}
pub use avatars::*;
pub mod avatars {
pub use crate::_avatars::{Avatar, AvatarBuilder, Rating, _Default as Default};
}

0 comments on commit a8874ca

Please sign in to comment.