style: reorder use statements for consistency across multiple files

This commit is contained in:
Kevin Yue committed 2026-05-06 23:20:56 +08:00
1 parent d06ce925ac
commit d48b29025e
18 files changed
+21 -21

No files matched your search

+2 -2
View File
@@ -1,9 +1,9 @@
use auth::{auth_prelogin, BrowserAuthenticator};
use auth::{BrowserAuthenticator, auth_prelogin};
use clap::Parser;
use common::constants::GP_USER_AGENT;
use gpapi::{
auth::{SamlAuthData, SamlAuthResult},
clap::{args::Os, handle_error, Args, InfoLevelVerbosity},
clap::{Args, InfoLevelVerbosity, args::Os, handle_error},
gp_params::{ClientOs, GpParams},
utils::{normalize_server, openssl},
};
+1 -1
View File
@@ -159,7 +159,7 @@ mod signals {
pub async fn handle_signals(vpn_ctx: Arc<VpnTaskContext>, ws_ctx: Arc<WsServerContext>) {
use gpapi::service::event::WsEvent;
use tokio::signal::unix::{signal, Signal, SignalKind};
use tokio::signal::unix::{Signal, SignalKind, signal};
let (mut user_sig1, mut user_sig2) = match || -> anyhow::Result<(Signal, Signal)> {
let user_sig1 = signal(SignalKind::user_defined1())?;
+1 -1
View File
@@ -11,8 +11,8 @@ use anyhow::bail;
use axum::{
body::Bytes,
extract::{
ws::{self, CloseFrame, Message, Utf8Bytes, WebSocket},
State, WebSocketUpgrade,
ws::{self, CloseFrame, Message, Utf8Bytes, WebSocket},
},
http::StatusCode,
response::IntoResponse,
+1 -1
View File
@@ -1,8 +1,8 @@
use std::sync::Arc;
use axum::{
routing::{get, post},
Router,
routing::{get, post},
};
use crate::{handlers, ws_server::WsServerContext};
+1 -1
View File
@@ -11,7 +11,7 @@ use openconnect::{find_csd_wrapper, find_vpnc_script};
use serde::de::DeserializeOwned;
use tokio::{
net::TcpListener,
sync::{mpsc, watch, RwLock},
sync::{RwLock, mpsc, watch},
};
use tokio_util::sync::CancellationToken;