From a0682a2d34b28aec5f426a85b2faecf5169a2d2f Mon Sep 17 00:00:00 2001 From: Jonas da Silva Date: Fri, 18 Oct 2024 13:46:43 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20cfg=20macro=20for=20platfo?= =?UTF-8?q?rm=20detection?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cli/sync.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cli/sync.rs b/src/cli/sync.rs index fd88548..49cf471 100644 --- a/src/cli/sync.rs +++ b/src/cli/sync.rs @@ -52,14 +52,14 @@ mod location { } pub fn get() -> Option { - if cfg!(android) { + if cfg!(target_os = "android") { android_termux() - } else if cfg!(ios) { + } else if cfg!(target_os = "ios") { log::error!("iOS devices are not supported for syncing yet"); None - } else if cfg!(windows) { + } else if cfg!(target_os = "windows") { windows() - } else if cfg!(linux) { + } else if cfg!(target_os = "linux") { linux() } else { log::error!("Your OS is not supported for syncing");