summaryrefslogtreecommitdiff
path: root/runtime/ops/net_unix.rs
diff options
context:
space:
mode:
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