From b83720af0a53521f2a389c6b87e1a9e81189c519 Mon Sep 17 00:00:00 2001 From: mxve <68632137+mxve@users.noreply.github.com> Date: Sat, 12 Aug 2023 14:31:58 +0200 Subject: [PATCH] fix: unix build --- src/main.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index c464f55..fbadb1f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,6 +2,8 @@ mod http; #[cfg(windows)] use mslnk::ShellLink; use semver::Version; +#[cfg(not(windows))] +use std::thread; use std::time::{SystemTime, UNIX_EPOCH}; use std::{fs, path::PathBuf}; #[cfg(windows)] @@ -62,10 +64,7 @@ fn self_update_available() -> bool { #[cfg(not(windows))] fn self_update() { if self_update_available() { - println!( - "A new version of the AlterWare launcher is available: {}", - latest_version - ); + println!("A new version of the AlterWare launcher is available."); println!("Download it at https://github.com/{}/releases/latest", REPO); println!("Launching in 10 seconds.."); thread::sleep(time::Duration::from_secs(10));