From c6567beed7a31c12eb8b1f6edef49c1b947c3cbe Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Tue, 6 Aug 2024 20:32:56 +0400 Subject: [PATCH] refactor: mod client, move builder to ::client::builder --- src/{ => client}/builder.rs | 0 src/{client.rs => client/mod.rs} | 5 ++++- src/lib.rs | 1 - 3 files changed, 4 insertions(+), 2 deletions(-) rename src/{ => client}/builder.rs (100%) rename src/{client.rs => client/mod.rs} (97%) diff --git a/src/builder.rs b/src/client/builder.rs similarity index 100% rename from src/builder.rs rename to src/client/builder.rs diff --git a/src/client.rs b/src/client/mod.rs similarity index 97% rename from src/client.rs rename to src/client/mod.rs index c4e44ce..869fc5d 100644 --- a/src/client.rs +++ b/src/client/mod.rs @@ -1,4 +1,7 @@ -use crate::{builder::ClientBuilder, error::*, response::Response, status::*}; +pub mod builder; + +use crate::{error::*, response::Response, status::*}; +use builder::ClientBuilder; use std::net::ToSocketAddrs; use std::sync::Arc; diff --git a/src/lib.rs b/src/lib.rs index d079639..e6f456e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,3 @@ -pub mod builder; pub mod certs; pub mod client; pub mod error;