From 7aac118ec7155afe2340214c8cd78e2cac14fa1d Mon Sep 17 00:00:00 2001 From: kpcyrd Date: Sun, 1 Dec 2024 03:56:32 +0100 Subject: [PATCH] Fix deprecation warning for rust-lang/rust#123748 --- common/src/api.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/common/src/api.rs b/common/src/api.rs index 3d906ea..c23c615 100644 --- a/common/src/api.rs +++ b/common/src/api.rs @@ -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 { @@ -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<()> { @@ -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<()> {