fix: resolve default-feature clippy errors

This commit is contained in:
Tunglies
2026-07-28 02:45:14 +08:00
parent 1cf6e2c6bd
commit 912f93fe85
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -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")]
{
+3
View File
@@ -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) {