mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-05-15 10:25:40 +00:00
clippy all codes (#1214)
1. clippy code 2. add fmt and clippy check in ci
This commit is contained in:
@@ -11,9 +11,15 @@ pub struct WebClient {
|
||||
}
|
||||
|
||||
impl WebClient {
|
||||
pub fn new<T: TunnelConnector + 'static, S: ToString, H: ToString>(connector: T, token: S, hostname: H) -> Self {
|
||||
let controller = Arc::new(controller::Controller::new(token.to_string(),
|
||||
hostname.to_string()));
|
||||
pub fn new<T: TunnelConnector + 'static, S: ToString, H: ToString>(
|
||||
connector: T,
|
||||
token: S,
|
||||
hostname: H,
|
||||
) -> Self {
|
||||
let controller = Arc::new(controller::Controller::new(
|
||||
token.to_string(),
|
||||
hostname.to_string(),
|
||||
));
|
||||
|
||||
let controller_clone = controller.clone();
|
||||
let tasks = ScopedTask::from(tokio::spawn(async move {
|
||||
|
||||
Reference in New Issue
Block a user