make everything pub(crate) instead of pub

conduwuit is not a library

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-04-22 23:48:57 -04:00 committed by June
parent 472c32f453
commit 66bb88a03a
135 changed files with 1366 additions and 1247 deletions

View file

@ -54,10 +54,10 @@ mod routes;
mod service;
mod utils;
pub static SERVICES: RwLock<Option<&'static Services<'static>>> = RwLock::new(None);
pub(crate) static SERVICES: RwLock<Option<&'static Services<'static>>> = RwLock::new(None);
#[must_use]
pub fn services() -> &'static Services<'static> {
pub(crate) fn services() -> &'static Services<'static> {
SERVICES
.read()
.unwrap()