From e0db481597c2bc311638118caf52a15bb06c8cfc Mon Sep 17 00:00:00 2001 From: Ben Frankel Date: Thu, 4 Jul 2024 16:25:36 -0700 Subject: [PATCH 1/2] Disable console on Windows for release builds --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.rs b/src/main.rs index 668b2080..9c64e2b4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,6 +4,9 @@ // Feel free to delete this line. #![allow(clippy::too_many_arguments, clippy::type_complexity)] +// Disable console on Windows for release builds. +#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] + use bevy::asset::AssetMetaCheck; use bevy::prelude::*; From 11bf27c1c4d0ea0785056f666b060953a11f618b Mon Sep 17 00:00:00 2001 From: Ben Frankel Date: Thu, 4 Jul 2024 16:27:30 -0700 Subject: [PATCH 2/2] Fix formatting --- src/main.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 9c64e2b4..895a257a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,7 +3,6 @@ // workflow treats them as errors, so this allows them throughout the project. // Feel free to delete this line. #![allow(clippy::too_many_arguments, clippy::type_complexity)] - // Disable console on Windows for release builds. #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]