summaryrefslogtreecommitdiff
path: root/op_crates/fetch/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'op_crates/fetch/lib.rs')
-rw-r--r--op_crates/fetch/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/op_crates/fetch/lib.rs b/op_crates/fetch/lib.rs
index f6f3e9607..ade071e39 100644
--- a/op_crates/fetch/lib.rs
+++ b/op_crates/fetch/lib.rs
@@ -296,7 +296,7 @@ pub async fn op_fetch_request_write(
let resource = state
.borrow()
.resource_table
- .get::<FetchRequestBodyResource>(rid as u32)
+ .get::<FetchRequestBodyResource>(rid)
.ok_or_else(bad_resource_id)?;
let body = RcRef::map(&resource, |r| &r.body).borrow_mut().await;
let cancel = RcRef::map(resource, |r| &r.cancel);
@@ -325,7 +325,7 @@ pub async fn op_fetch_response_read(
let resource = state
.borrow()
.resource_table
- .get::<FetchResponseBodyResource>(rid as u32)
+ .get::<FetchResponseBodyResource>(rid)
.ok_or_else(bad_resource_id)?;
let mut reader = RcRef::map(&resource, |r| &r.reader).borrow_mut().await;
let cancel = RcRef::map(resource, |r| &r.cancel);