Update to latest std
This commit is contained in:
parent
92b6d4c5a3
commit
6dc688aa28
@ -45,7 +45,7 @@ fn callback(call: IncomingCall) {
|
|||||||
let server_lock = SERVER.read();
|
let server_lock = SERVER.read();
|
||||||
let server = server_lock.as_ref().unwrap();
|
let server = server_lock.as_ref().unwrap();
|
||||||
if call.func == 0 {
|
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();
|
let ret = postcard::to_stdvec(&server.open(path)).unwrap();
|
||||||
call.send_return(&ret);
|
call.send_return(&ret);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user