mirror of
https://github.com/alterware/alterware-launcher.git
synced 2025-12-04 07:17:50 +00:00
github::latest -> latest_tag
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use semver::Version;
|
||||
|
||||
pub fn latest(owner: &str, repo: &str) -> String {
|
||||
pub fn latest_tag(owner: &str, repo: &str) -> String {
|
||||
let github_body = crate::http::get_body_string(
|
||||
format!(
|
||||
"https://api.github.com/repos/{}/{}/releases/latest",
|
||||
@@ -15,7 +15,7 @@ pub fn latest(owner: &str, repo: &str) -> String {
|
||||
}
|
||||
|
||||
pub fn latest_version(owner: &str, repo: &str) -> Version {
|
||||
Version::parse(&latest(owner, repo)).unwrap()
|
||||
Version::parse(&latest_tag(owner, repo)).unwrap()
|
||||
}
|
||||
|
||||
pub fn latest_release_url(owner: &str, repo: &str) -> String {
|
||||
|
||||
Reference in New Issue
Block a user