From c616942bf23d4d688686503657fa14fb7a419829 Mon Sep 17 00:00:00 2001 From: zu1k Date: Tue, 9 Apr 2024 11:29:46 +0800 Subject: [PATCH] fix(CI): format code --- .cargo/{config => config.toml} | 0 build.rs | 3 +-- rust-toolchain | 3 --- src/lib.rs | 13 ++++++------- 4 files changed, 7 insertions(+), 12 deletions(-) rename .cargo/{config => config.toml} (100%) delete mode 100644 rust-toolchain diff --git a/.cargo/config b/.cargo/config.toml similarity index 100% rename from .cargo/config rename to .cargo/config.toml diff --git a/build.rs b/build.rs index e1615d2..eccc607 100644 --- a/build.rs +++ b/build.rs @@ -1,8 +1,7 @@ use std::{env, net::Ipv4Addr}; fn main() { - let auth_server_ip = - env!( + let auth_server_ip = env!( "AUTH_SERVER_IP", "Expect env AUTH_SERVER_IP, export AUTH_SERVER_IP=10.0.0.1" ); diff --git a/rust-toolchain b/rust-toolchain deleted file mode 100644 index 391ab1f..0000000 --- a/rust-toolchain +++ /dev/null @@ -1,3 +0,0 @@ -[toolchain] -channel = "1.73" -components = ["rustfmt", "clippy", "rust-src"] \ No newline at end of file diff --git a/src/lib.rs b/src/lib.rs index 26d51d4..20e47ea 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,16 +1,15 @@ pub use file::read_config_from_file; pub use srun::*; pub use user::User; -pub use utils::get_ip_by_if_name; -pub use utils::select_ip; +pub use utils::{get_ip_by_if_name, select_ip}; pub use xencode::param_i; -mod user; -mod srun; -mod xencode; mod file; -mod utils; #[cfg(feature = "ureq")] mod http_client; +mod srun; +mod user; +mod utils; +mod xencode; -pub type Result = std::result::Result>; \ No newline at end of file +pub type Result = std::result::Result>;