Fix bad global

This commit is contained in:
Mikayla Maki 2023-03-22 22:11:31 -07:00
parent 455cdc8b37
commit 9a99eaee96
2 changed files with 6 additions and 2 deletions

View file

@ -34,6 +34,7 @@ pub async fn latest_github_release(
.read_to_end(&mut body)
.await
.context("error reading latest release")?;
let release: GithubRelease =
serde_json::from_slice(body.as_slice()).context("error deserializing latest release")?;
Ok(release)