Pass tidy

This commit is contained in:
pjht 2024-09-20 14:37:01 -05:00
parent 202eb774c2
commit f5514cb92a
Signed by: pjht
GPG Key ID: CA239FC6934E6F3A
2 changed files with 4 additions and 11 deletions

View File

@ -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.
///

View File

@ -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 {