Update to new struct version of FileWriteMode
This commit is contained in:
parent
4c67fd074a
commit
d3747cf77d
@ -98,10 +98,7 @@ impl file_rpc::Server for AhciState {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn dup(&self, fd: u64) -> Result<u64, Errno> {
|
fn dup(&self, fd: u64) -> Result<u64, Errno> {
|
||||||
let mut files = self.files.write();
|
Ok(fd)
|
||||||
let file = files[fd as usize];
|
|
||||||
files.push(file);
|
|
||||||
Ok((files.len() - 1) as u64)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(clippy::significant_drop_tightening)]
|
#[allow(clippy::significant_drop_tightening)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user