mirror of
https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation.git
synced 2026-08-28 10:18:09 +02:00
build(rust-edition): cargo fix --edition & update Cargo.toml
This commit is contained in:
parent
1d296b3728
commit
607475ff24
2 changed files with 5 additions and 5 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue