diff options
Diffstat (limited to 'crates/typst-cli/src/update.rs')
| -rw-r--r-- | crates/typst-cli/src/update.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/typst-cli/src/update.rs b/crates/typst-cli/src/update.rs index 95418d03..f3a75163 100644 --- a/crates/typst-cli/src/update.rs +++ b/crates/typst-cli/src/update.rs @@ -11,7 +11,7 @@ use xz2::bufread::XzDecoder; use zip::ZipArchive; use crate::args::UpdateCommand; -use crate::download::download_with_progress; +use crate::download::{download, download_with_progress}; const TYPST_GITHUB_ORG: &str = "typst"; const TYPST_REPO: &str = "typst"; @@ -111,7 +111,7 @@ impl Release { ), }; - match ureq::get(&url).call() { + match download(&url) { Ok(response) => response .into_json() .map_err(|err| eco_format!("unable to parse JSON response: {err}")), |
