From bcadcb20147dca06d47699ae43ee70fd3b0699d7 Mon Sep 17 00:00:00 2001 From: PThorpe92 Date: Thu, 7 Aug 2025 17:07:53 -0400 Subject: [PATCH] Remove RefCell from copy_to method in io trait --- core/io/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/io/mod.rs b/core/io/mod.rs index e209561d3..52b9be2e2 100644 --- a/core/io/mod.rs +++ b/core/io/mod.rs @@ -68,7 +68,7 @@ pub trait File: Send + Sync { while pos < file_size { let chunk_size = (file_size - pos).min(BUFFER_SIZE); // Read from source - let read_buffer = Arc::new(RefCell::new(Buffer::allocate(chunk_size, Rc::new(|_| {})))); + let read_buffer = Arc::new(Buffer::allocate(chunk_size, Rc::new(|_| {}))); let read_completion = self.pread( pos, Completion::new_read(read_buffer.clone(), move |_, _| {}),