From ecdb3ee944f5c171faac3a71117e2ff27e064295 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 26 Oct 2026 21:48:54 +0100 Subject: turn all pub into pub(crate) --- src/api/auth.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/api/auth.rs') diff --git a/src/api/auth.rs b/src/api/auth.rs index c07db74..d58640e 100644 --- a/src/api/auth.rs +++ b/src/api/auth.rs @@ -50,7 +50,7 @@ fn load_users(path: &str) -> anyhow::Result> { } #[derive(Clone)] -pub struct AuthState { +pub(crate) struct AuthState { idle_timeout: Duration, users: Arc>, // user -> PHC hash string @@ -60,7 +60,7 @@ pub struct AuthState { } impl AuthState { - pub fn new(path: &str) -> anyhow::Result { + pub(crate) fn new(path: &str) -> anyhow::Result { let users = load_users(path)?; Ok(Self { @@ -136,7 +136,7 @@ async fn verify(state: &AuthState, user: &str, pass: String, hash: String) -> bo verified } -pub async fn basic_auth( +pub(crate) async fn basic_auth( State(state): State, headers: HeaderMap, mut request: Request, -- cgit v1.3.1