build(rust-edition): cargo fix --edition & update Cargo.toml

This commit is contained in:
Rudxain 2025-02-22 13:28:04 -04:00
commit 607475ff24
No known key found for this signature in database
GPG key ID: 0DAC837DDEF8E96C
2 changed files with 5 additions and 5 deletions

View file

@ -9,7 +9,7 @@ repository = "https://github.com/Universal-Debloater-Alliance/universal-android-
readme = "README.md"
keywords = ["debloater", "android", "adb", "privacy", "bloatware"]
categories = ["gui"]
edition = "2021"
edition = "2024"
[features]
default = ["wgpu", "self-update"]

View file

@ -182,8 +182,8 @@ pub fn get_latest_release() -> Result<Option<Release>, ()> {
pub fn get_latest_release() -> Result<Option<Release>, ()> {
debug!("Checking for {NAME} update");
if let Ok(res) = ureq::get("https://api.github.com/repos/Universal-Debloater-Alliance/universal-android-debloater/releases/latest")
.call() {
match ureq::get("https://api.github.com/repos/Universal-Debloater-Alliance/universal-android-debloater/releases/latest")
.call() { Ok(res) => {
let release: Release = serde_json::from_value(
res.into_json::<serde_json::Value>()
.map_err(|_| ())?
@ -200,10 +200,10 @@ pub fn get_latest_release() -> Result<Option<Release>, ()> {
} else {
Ok(None)
}
} else {
} _ => {
debug!("Failed to check {NAME} update");
Err(())
}
}}
}
/// Extracts the binary from a `tar.gz` archive to `temp_file` path