From 49c8334e405b552baf69ca2c57381985fc4494a1 Mon Sep 17 00:00:00 2001 From: Sherzod Mutalov Date: Thu, 26 Jun 2025 01:01:12 +0500 Subject: [PATCH] chore: replaced with macros call to remove warning --- src-tauri/src/core/mcp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/src/core/mcp.rs b/src-tauri/src/core/mcp.rs index 95382b3a1..fecf24fab 100644 --- a/src-tauri/src/core/mcp.rs +++ b/src-tauri/src/core/mcp.rs @@ -514,7 +514,7 @@ async fn schedule_mcp_start_task( let mut cmd = Command::new(command.clone()); let mut is_macos_without_avx2 = false; - #[cfg(all(target_os="macos", any(target_arch = "x86", target_arch = "x86_64"))) ] + if cfg!(all(target_os="macos", any(target_arch = "x86", target_arch = "x86_64"))) { is_macos_without_avx2 = !is_x86_feature_detected!("avx2"); if is_macos_without_avx2 {