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); }