Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
crowlKats committed Jan 6, 2025
1 parent e6e7c4f commit b04886e
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions denokv/tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,11 @@ impl RemoteTransport for ReqwestClient {

impl RemoteResponse for ReqwestResponse {
async fn bytes(self) -> Result<Bytes, JsErrorBox> {
Ok(
self
.0
.bytes()
.await
.map_err(|e| JsErrorBox::generic(e.to_string()))?,
)
self
.0
.bytes()
.await
.map_err(|e| JsErrorBox::generic(e.to_string()))
}
fn stream(
self,
Expand All @@ -74,13 +72,11 @@ impl RemoteResponse for ReqwestResponse {
.map_err(|e| JsErrorBox::generic(e.to_string()))
}
async fn text(self) -> Result<String, JsErrorBox> {
Ok(
self
.0
.text()
.await
.map_err(|e| JsErrorBox::generic(e.to_string()))?,
)
self
.0
.text()
.await
.map_err(|e| JsErrorBox::generic(e.to_string()))
}
}

Expand Down

0 comments on commit b04886e

Please sign in to comment.