You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by ma...@apache.org on 2023/11/01 11:28:05 UTC
(incubator-opendal) 01/01: Update code
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 <me...@manjusaka.me>
AuthorDate: Wed Nov 1 19:27:53 2023 +0800
Update code
Signed-off-by: Manjusaka <me...@manjusaka.me>
---
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)