summaryrefslogtreecommitdiffstats
path: root/src/release.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/release.rs')
-rw-r--r--src/release.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/release.rs b/src/release.rs
index bbd1225..9661fb5 100644
--- a/src/release.rs
+++ b/src/release.rs
@@ -400,11 +400,11 @@ async fn download_asset(
let release = find_release(repo, api, &release).await?;
let file = match &*asset {
"source.zip" => {
- api.download_release_zip(repo.owner(), repo.name(), release.id)
+ api.download_zip_archive(repo.owner(), repo.name(), &release.tag_name)
.await?
}
"source.tar.gz" => {
- api.download_release_tarball(repo.owner(), repo.name(), release.id)
+ api.download_tarball_archive(repo.owner(), repo.name(), &release.tag_name)
.await?
}
name => {