- reduce github calls
- latest_tag returns full tag
- rev_to_int default to 0 on strip_prefix
- lint
This commit is contained in:
2023-08-30 13:06:49 +02:00
parent 0ec2a44082
commit 932c41d369
5 changed files with 28 additions and 29 deletions

View File

@@ -16,7 +16,10 @@ pub fn self_update_available() -> bool {
pub fn run(_update_only: bool) {
if self_update_available() {
println!("A new version of the AlterWare launcher is available.");
println!("Download it at {}", github::latest_release_url(GH_OWNER, GH_REPO));
println!(
"Download it at {}",
github::latest_release_url(GH_OWNER, GH_REPO)
);
println!("Launching in 10 seconds..");
thread::sleep(time::Duration::from_secs(10));
}