From 8e64c5e449eb9d80f70753c9c3e727b2808add76 Mon Sep 17 00:00:00 2001 From: pjht Date: Sun, 17 Nov 2024 21:52:05 -0600 Subject: [PATCH] Update to new struct version of FileWriteMode --- src/main.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index dff3001..1760d11 100644 --- a/src/main.rs +++ b/src/main.rs @@ -102,10 +102,7 @@ impl file_rpc::Server for Serv { } fn dup(&self, fd: u64) -> Result { - let mut files = self.files.write(); - let file = files[fd as usize].clone(); - files.push(file); - Ok((files.len() - 1) as u64) + Ok(fd) } fn seek(&self, fd: u64, pos: file_rpc::SeekFrom) -> Result {