summaryrefslogtreecommitdiff
path: root/runtime/ops/net_unix.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 /runtime/ops/net_unix.rs
parent277e19f4d26b66bbba99b0a3d6539b524dc88830 (diff)
normalize rids (#9832)
Diffstat (limited to 'runtime/ops/net_unix.rs')
-rw-r--r--runtime/ops/net_unix.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/ops/net_unix.rs b/runtime/ops/net_unix.rs
index c3e561568..6d9afb70f 100644
--- a/runtime/ops/net_unix.rs
+++ b/runtime/ops/net_unix.rs
@@ -65,7 +65,7 @@ pub(crate) async fn accept_unix(
args: AcceptArgs,
_bufs: BufVec,
) -> Result<Value, AnyError> {
- let rid = args.rid as u32;
+ let rid = args.rid;
let resource = state
.borrow()
@@ -104,7 +104,7 @@ pub(crate) async fn receive_unix_packet(
) -> Result<Value, AnyError> {
assert_eq!(bufs.len(), 1, "Invalid number of arguments");
- let rid = args.rid as u32;
+ let rid = args.rid;
let mut buf = bufs.into_iter().next().unwrap();
let resource = state