summaryrefslogtreecommitdiff
path: root/op_crates/fetch/lib.rs
diff options
context:
space:
mode:
authorcrowlKats <13135287+crowlKats@users.noreply.github.com>2021-03-19 01:55:31 +0100
committerGitHub <noreply@github.com>2021-03-18 20:55:31 -0400
commit197305908b721340041be03e5a11fe60a1711fb2 (patch)
tree732f63ef3d14c174e0eb5e29414ab57ccc232dbd /op_crates/fetch/lib.rs
parent277e19f4d26b66bbba99b0a3d6539b524dc88830 (diff)
normalize rids (#9832)
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);