diff --git a/bindings/javascript/src/lib.rs b/bindings/javascript/src/lib.rs index 5c06766cb..d55da2e61 100644 --- a/bindings/javascript/src/lib.rs +++ b/bindings/javascript/src/lib.rs @@ -530,7 +530,12 @@ impl turso_core::DatabaseStorage for DatabaseFile { let c = self.file.truncate(len, c)?; Ok(c) } - fn copy_to(&self, io: &dyn turso_core::IO, path: &str) -> turso_core::Result<()> { - self.file.copy_to(io, path) + fn copy_to( + &self, + src_io: &dyn turso_core::IO, + dest_io: &dyn turso_core::IO, + path: &str, + ) -> turso_core::Result<()> { + self.file.copy_to(src_io, dest_io, path) } } diff --git a/core/storage/database.rs b/core/storage/database.rs index ddcf39827..97098c4aa 100644 --- a/core/storage/database.rs +++ b/core/storage/database.rs @@ -23,7 +23,7 @@ pub trait DatabaseStorage: Send + Sync { fn sync(&self, c: Completion) -> Result; fn size(&self) -> Result; fn truncate(&self, len: usize, c: Completion) -> Result; - fn copy_to(&self, io: &dyn crate::IO, path: &str) -> Result<()>; + fn copy_to(&self, src_io: &dyn crate::IO, dest_io: &dyn crate::IO, path: &str) -> Result<()>; } #[cfg(feature = "fs")] @@ -103,8 +103,8 @@ impl DatabaseStorage for DatabaseFile { } #[instrument(skip_all, level = Level::INFO)] - fn copy_to(&self, io: &dyn crate::IO, path: &str) -> Result<()> { - self.file.copy_to(io, path) + fn copy_to(&self, src_io: &dyn crate::IO, dest_io: &dyn crate::IO, path: &str) -> Result<()> { + self.file.copy_to(src_io, dest_io, path) } }