Skip to content

Commit

Permalink
refactor: modify visibility of some types and modules
Browse files Browse the repository at this point in the history
Signed-off-by: bsbds <[email protected]>
  • Loading branch information
bsbds committed Aug 3, 2023
1 parent bc06a3b commit 7179e5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xline-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -388,7 +388,7 @@ impl ClientOptions {

/// Authentication service.
#[derive(Debug, Clone)]
pub struct AuthService<S> {
struct AuthService<S> {
/// A `Service` trait object
inner: S,
/// Auth token
Expand All @@ -398,7 +398,7 @@ pub struct AuthService<S> {
impl<S> AuthService<S> {
/// Create a new `AuthService`
#[inline]
pub fn new(inner: S, token: Option<Arc<HeaderValue>>) -> Self {
fn new(inner: S, token: Option<Arc<HeaderValue>>) -> Self {
Self { inner, token }
}
}
Expand Down

0 comments on commit 7179e5a

Please sign in to comment.