Skip to content

Commit

Permalink
Fix deprecation warning for rust-lang/rust#123748
Browse files Browse the repository at this point in the history
  • Loading branch information
kpcyrd committed Dec 1, 2024
1 parent dcba480 commit 7aac118
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions common/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ impl Client {
.await?
.error_for_status()?
.json()
.await?;
Ok(())
.await
.map_err(Error::from)
}

pub async fn pop_queue(&self, query: &WorkQuery) -> Result<JobAssignment> {
Expand All @@ -237,8 +237,8 @@ impl Client {
.await?
.error_for_status()?
.json()
.await?;
Ok(())
.await
.map_err(Error::from)
}

pub async fn requeue_pkgs(&self, requeue: &RequeueQuery) -> Result<()> {
Expand All @@ -248,8 +248,8 @@ impl Client {
.await?
.error_for_status()?
.json()
.await?;
Ok(())
.await
.map_err(Error::from)
}

pub async fn ping_build(&self, body: &PingRequest) -> Result<()> {
Expand Down

0 comments on commit 7aac118

Please sign in to comment.