Pass tidy
This commit is contained in:
parent
202eb774c2
commit
f5514cb92a
@ -4,10 +4,10 @@
|
||||
|
||||
pub mod address_space;
|
||||
pub mod ffi;
|
||||
pub mod fs;
|
||||
pub mod ipc;
|
||||
pub mod loader;
|
||||
pub mod syscalls;
|
||||
pub mod fs;
|
||||
|
||||
/// A prelude for conveniently writing platform-specific code.
|
||||
///
|
||||
|
@ -360,16 +360,9 @@ impl File {
|
||||
}
|
||||
|
||||
pub fn duplicate(&self) -> io::Result<File> {
|
||||
let msg_data = &rpc::send_call(
|
||||
self.fs_pid,
|
||||
4,
|
||||
0,
|
||||
&postcard::to_allocvec(
|
||||
&self.fd,
|
||||
)
|
||||
.unwrap(),
|
||||
)
|
||||
.get_return();
|
||||
let msg_data =
|
||||
&rpc::send_call(self.fs_pid, 4, 0, &postcard::to_allocvec(&self.fd).unwrap())
|
||||
.get_return();
|
||||
let dup_res: Option<u64> = postcard::from_bytes(msg_data).unwrap();
|
||||
let dup_data = dup_res.unwrap();
|
||||
Ok(Self {
|
||||
|
Loading…
x
Reference in New Issue
Block a user