From e5e7c8ad93b88729b97489c04c84f0b8ea0999b6 Mon Sep 17 00:00:00 2001 From: "Benjamin P. Jung" Date: Thu, 29 Aug 2024 15:17:11 +0200 Subject: [PATCH] Get rid of unwanted 'public' module. Signed-off-by: Benjamin P. Jung --- src/avatars/mod.rs | 1 + src/lib.rs | 8 +++----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/avatars/mod.rs b/src/avatars/mod.rs index 5d7f467..9d26826 100644 --- a/src/avatars/mod.rs +++ b/src/avatars/mod.rs @@ -62,6 +62,7 @@ impl Avatar { } } +// Builder for Avatar instances. #[derive(Default)] pub struct AvatarBuilder { email: String, diff --git a/src/lib.rs b/src/lib.rs index 4be4a75..fe8fbe0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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}; }