From 33f2c6f0033d27d112ea1f7fb6d825f9c55b2db9 Mon Sep 17 00:00:00 2001 From: pjht Date: Sun, 18 Aug 2024 08:36:15 -0500 Subject: [PATCH] Update to latest std --- devfs_rpc/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devfs_rpc/src/lib.rs b/devfs_rpc/src/lib.rs index a7bb74c..1da4867 100644 --- a/devfs_rpc/src/lib.rs +++ b/devfs_rpc/src/lib.rs @@ -45,7 +45,7 @@ fn callback(call: IncomingCall) { let server_lock = SERVER.read(); let server = server_lock.as_ref().unwrap(); if call.func == 0 { - let kind = postcard::from_bytes(&call.args).unwrap(); + let kind = postcard::from_bytes(&call.args()).unwrap(); let ret = postcard::to_stdvec(&server.register_dev(call.from, kind)).unwrap(); call.send_return(&ret); }