This is an automated email from the ASF dual-hosted git repository. manjusaka pushed a commit to branch manjusaka/python-suport-copy in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
commit 3ec822a8d10f35ef1fe32db1e47a544287bb07d4 Author: Manjusaka <[email protected]> AuthorDate: Wed Nov 1 19:27:53 2023 +0800 Update code Signed-off-by: Manjusaka <[email protected]> --- bindings/python/src/asyncio.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bindings/python/src/asyncio.rs b/bindings/python/src/asyncio.rs index 9f0cf6a18..a97285851 100644 --- a/bindings/python/src/asyncio.rs +++ b/bindings/python/src/asyncio.rs @@ -140,8 +140,13 @@ impl AsyncOperator { } /// Copy from `src` to `dst`. - - pub fn copy<'p>(&'p self, py: Python<'p>, source: String, target: String) -> PyResult<&'p PyAny> { + + pub fn copy<'p>( + &'p self, + py: Python<'p>, + source: String, + target: String, + ) -> PyResult<&'p PyAny> { let this = self.0.clone(); future_into_py(py, async move { this.copy(&source, &target).await.map_err(format_pyerr)
