From adc2102dc1d7748b45eca9ed4eef34db87ee60fb Mon Sep 17 00:00:00 2001 From: pjht Date: Sun, 18 Aug 2024 08:39:20 -0500 Subject: [PATCH] Update to latest std --- vfs_rpc/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vfs_rpc/src/lib.rs b/vfs_rpc/src/lib.rs index e266296..81112f5 100644 --- a/vfs_rpc/src/lib.rs +++ b/vfs_rpc/src/lib.rs @@ -67,15 +67,15 @@ 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_fs(call.from, kind)).unwrap(); call.send_return(&ret); } else if call.func == 1 { - let (dev, kind, path) = postcard::from_bytes(&call.args).unwrap(); + let (dev, kind, path) = postcard::from_bytes(call.args()).unwrap(); let ret = postcard::to_stdvec(&server.mount(dev, kind, path)).unwrap(); call.send_return(&ret); } else if call.func == 2 { - let path = postcard::from_bytes(&call.args).unwrap(); + let path = postcard::from_bytes(call.args()).unwrap(); let ret = postcard::to_stdvec(&server.open(path)).unwrap(); call.send_return(&ret); }