Skip to content

Commit

Permalink
Print URL of the release web page (vs API resource)
Browse files Browse the repository at this point in the history
... when a newer release is available.
  • Loading branch information
imikushin committed Feb 18, 2024
1 parent 34dc952 commit d443e93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const RELEASES_URL: &str = "https://api.github.com/repos/sigma0-xyz/zkbitcoin/re

#[derive(Deserialize, Debug)]
struct Release {
url: String,
html_url: String,
tag_name: String,
}

Expand All @@ -34,7 +34,7 @@ pub async fn check_version() -> Result<()> {
if current_version < latest_version {
warn!(
"You are using an old version. Please download the latest version: {}",
latest_release.url
latest_release.html_url
)
}

Expand Down

0 comments on commit d443e93

Please sign in to comment.