mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-10-30 18:52:12 +08:00
fix: resolve default-feature clippy errors
This commit is contained in:
@@ -423,6 +423,7 @@ where
|
||||
}
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
#[cfg_attr(not(feature = "verge-dev"), allow(clippy::unnecessary_wraps))]
|
||||
fn macos_service_tool_path(source: &Path) -> Result<PathBuf> {
|
||||
#[cfg(feature = "verge-dev")]
|
||||
{
|
||||
|
||||
@@ -179,7 +179,10 @@ fn start_embedded_server(listener: tokio::net::TcpListener, token: String) {
|
||||
let (shutdown_tx, shutdown_rx) = oneshot::channel();
|
||||
let _ = SHUTDOWN_SENDER.set(Mutex::new(Some(shutdown_tx)));
|
||||
|
||||
#[cfg(feature = "verge-dev")]
|
||||
let auth = instance_auth(token.clone());
|
||||
#[cfg(not(feature = "verge-dev"))]
|
||||
let auth = instance_auth(token);
|
||||
|
||||
let visible = warp::path!("commands" / "visible").and_then(|| async {
|
||||
if !COMMANDS_READY.load(Ordering::Acquire) {
|
||||
|
||||
Reference in New Issue
Block a user