From dcff75e17044c911bd85fce27456eeea9e0fd303 Mon Sep 17 00:00:00 2001 From: bsbds <69835502+bsbds@users.noreply.github.com> Date: Wed, 2 Aug 2023 11:51:48 +0800 Subject: [PATCH] refactor: modify visibility of some types and modules Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com> --- xline-client/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xline-client/src/lib.rs b/xline-client/src/lib.rs index e618196ed..3e248f79b 100644 --- a/xline-client/src/lib.rs +++ b/xline-client/src/lib.rs @@ -172,7 +172,7 @@ pub mod clients; /// Error definitions for `xline-client`. pub mod error; /// Lease Id generator -pub mod lease_gen; +mod lease_gen; /// Request type definitions. pub mod types; /// Xline proto types API @@ -388,7 +388,7 @@ impl ClientOptions { /// Authentication service. #[derive(Debug, Clone)] -pub struct AuthService { +struct AuthService { /// A `Service` trait object inner: S, /// Auth token @@ -398,7 +398,7 @@ pub struct AuthService { impl AuthService { /// Create a new `AuthService` #[inline] - pub fn new(inner: S, token: Option>) -> Self { + fn new(inner: S, token: Option>) -> Self { Self { inner, token } } }