This is an automated email from the ASF dual-hosted git repository.

xuanwo pushed a commit to branch refactor-write
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git

commit 7cbfe029cd1c4710beba44394194f364af456276
Author: Xuanwo <[email protected]>
AuthorDate: Thu Sep 7 23:38:49 2023 +0800

    Fix typo
    
    Signed-off-by: Xuanwo <[email protected]>
---
 core/src/types/writer.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/src/types/writer.rs b/core/src/types/writer.rs
index f7f84e465..6714d8017 100644
--- a/core/src/types/writer.rs
+++ b/core/src/types/writer.rs
@@ -337,7 +337,7 @@ impl tokio::io::AsyncWrite for Writer {
                     let bs = Bytes::copy_from_slice(buf);
                     let fut = async move {
                         let n = w.write(&bs).await?;
-                        Ok((n as usize, w))
+                        Ok((n, w))
                     };
                     self.state = State::Write(Box::pin(fut));
                 }

Reply via email to