From 650b92b3aef7cc58142cfa0fa2e66a7340cd3829 Mon Sep 17 00:00:00 2001 From: pjht Date: Tue, 17 Sep 2024 11:41:32 -0500 Subject: [PATCH] Add file RPC dup call --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.rs b/src/main.rs index 1203df1..7dc30c6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -56,6 +56,10 @@ impl file_rpc::Server for FileServ { fn size(&self, _fd: u64) -> Option { None } + + fn dup(&self, fd: u64) -> Option { + Some(fd) + } } static SCANDODE_DECODER: Mutex = Mutex::new(ScancodeSet2::new());