Skip to content

Commit 7aac118

Browse files
committed
Fix deprecation warning for rust-lang/rust#123748
1 parent dcba480 commit 7aac118

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

common/src/api.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ impl Client {
215215
.await?
216216
.error_for_status()?
217217
.json()
218-
.await?;
219-
Ok(())
218+
.await
219+
.map_err(Error::from)
220220
}
221221

222222
pub async fn pop_queue(&self, query: &WorkQuery) -> Result<JobAssignment> {
@@ -237,8 +237,8 @@ impl Client {
237237
.await?
238238
.error_for_status()?
239239
.json()
240-
.await?;
241-
Ok(())
240+
.await
241+
.map_err(Error::from)
242242
}
243243

244244
pub async fn requeue_pkgs(&self, requeue: &RequeueQuery) -> Result<()> {
@@ -248,8 +248,8 @@ impl Client {
248248
.await?
249249
.error_for_status()?
250250
.json()
251-
.await?;
252-
Ok(())
251+
.await
252+
.map_err(Error::from)
253253
}
254254

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

0 commit comments

Comments
 (0)