From 6dc688aa2890253baa249278322a90c9558e9909 Mon Sep 17 00:00:00 2001 From: pjht Date: Sun, 18 Aug 2024 08:35:50 -0500 Subject: [PATCH] Update to latest std --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index a5b8a15..b74f000 100644 --- a/src/lib.rs +++ b/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 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); }