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

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

commit c5fed25246927b14b0037fd1294b4eae334654e6
Author: Xuanwo <[email protected]>
AuthorDate: Mon Sep 11 14:16:03 2023 +0800

    Make clippy happy
    
    Signed-off-by: Xuanwo <[email protected]>
---
 core/src/raw/oio/write/api.rs                | 2 ++
 core/src/services/vercel_artifacts/writer.rs | 8 ++++++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/core/src/raw/oio/write/api.rs b/core/src/raw/oio/write/api.rs
index c38221675..dfc8ef6ab 100644
--- a/core/src/raw/oio/write/api.rs
+++ b/core/src/raw/oio/write/api.rs
@@ -143,10 +143,12 @@ pub trait WriteExt: Write {
         WriteFuture { writer: self, buf }
     }
 
+    /// Build a future for `poll_close`.
     fn close(&mut self) -> CloseFuture<Self> {
         CloseFuture { writer: self }
     }
 
+    /// Build a future for `poll_abort`.
     fn abort(&mut self) -> AbortFuture<Self> {
         AbortFuture { writer: self }
     }
diff --git a/core/src/services/vercel_artifacts/writer.rs 
b/core/src/services/vercel_artifacts/writer.rs
index 61e5681e0..f62d76cf5 100644
--- a/core/src/services/vercel_artifacts/writer.rs
+++ b/core/src/services/vercel_artifacts/writer.rs
@@ -26,14 +26,18 @@ use crate::*;
 
 pub struct VercelArtifactsWriter {
     backend: VercelArtifactsBackend,
-    op: OpWrite,
+    _op: OpWrite,
 
     path: String,
 }
 
 impl VercelArtifactsWriter {
     pub fn new(backend: VercelArtifactsBackend, op: OpWrite, path: String) -> 
Self {
-        VercelArtifactsWriter { backend, op, path }
+        VercelArtifactsWriter {
+            backend,
+            _op: op,
+            path,
+        }
     }
 }
 

Reply via email to