From 0e1e8d2b1694bc4fcd5bdaa560ce1833de96f2df Mon Sep 17 00:00:00 2001 From: rustdesk Date: Thu, 27 Jul 2023 10:51:27 +0800 Subject: [PATCH] revert my stupid --- src/core_main.rs | 2 +- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core_main.rs b/src/core_main.rs index a55d2ec8d..cd972b25d 100644 --- a/src/core_main.rs +++ b/src/core_main.rs @@ -102,7 +102,7 @@ pub fn core_main() -> Option> { } if args.len() > 0 && args[0] == "--version" { // not use my_println here, because check super use using this command, no dialog expected - my_println!("{}", crate::VERSION); + println!("{}", crate::VERSION); return None; } #[cfg(windows)] diff --git a/src/main.rs b/src/main.rs index 2ab940d35..e5c218ec4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,5 @@ #![cfg_attr( - all(target_os = "windows"), + all(not(debug_assertions), target_os = "windows"), windows_subsystem = "windows" )]