Fixed build warning on linux.

This commit is contained in:
Revertron
2022-01-03 22:06:41 +01:00
parent f7799fefd6
commit b2aa001dc5
+1 -1
View File
@@ -35,7 +35,7 @@ const SETTINGS_FILENAME: &str = "alfis.toml";
const LOG_TARGET_MAIN: &str = "alfis::Main"; const LOG_TARGET_MAIN: &str = "alfis::Main";
fn main() { fn main() {
#[allow(unused_assignments)] #[allow(unused_assignments, unused_mut)]
let mut console_attached = true; let mut console_attached = true;
// When linked with the windows subsystem windows won't automatically attach // When linked with the windows subsystem windows won't automatically attach
// to the console of the parent process, so we do it explicitly. This fails silently if the parent has no console. // to the console of the parent process, so we do it explicitly. This fails silently if the parent has no console.