You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by ki...@apache.org on 2025/09/24 04:54:56 UTC

(opendal) branch fix-clippy-happy created (now 5dbe31926)

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

kingsword09 pushed a change to branch fix-clippy-happy
in repository https://gitbox.apache.org/repos/asf/opendal.git


      at 5dbe31926 chore: make clippy happy when using rust 1.90.0

This branch includes the following new commits:

     new 5dbe31926 chore: make clippy happy when using rust 1.90.0

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(opendal) 01/01: chore: make clippy happy when using rust 1.90.0

Posted by ki...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

kingsword09 pushed a commit to branch fix-clippy-happy
in repository https://gitbox.apache.org/repos/asf/opendal.git

commit 5dbe31926fdb97ac62b7c14e5f8dd64e485451b0
Author: Kingsword <ki...@gmail.com>
AuthorDate: Wed Sep 24 12:54:48 2025 +0800

    chore: make clippy happy when using rust 1.90.0
---
 core/src/services/cloudflare_kv/model.rs |  7 ------
 core/src/services/dropbox/core.rs        | 39 --------------------------------
 core/src/services/oss/core.rs            |  8 -------
 3 files changed, 54 deletions(-)

diff --git a/core/src/services/cloudflare_kv/model.rs b/core/src/services/cloudflare_kv/model.rs
index 2ae6c9d9d..390f11d82 100644
--- a/core/src/services/cloudflare_kv/model.rs
+++ b/core/src/services/cloudflare_kv/model.rs
@@ -37,13 +37,6 @@ pub struct CfKvError {
     pub code: i32,
 }
 
-#[derive(Debug, Deserialize, Serialize)]
-pub struct CfKvSetData {
-    pub key: String,
-    pub value: String,
-    pub metadata: CfKvMetadata,
-}
-
 #[derive(Debug, Deserialize)]
 pub struct CfKvDeleteResult {
     pub successful_key_count: usize,
diff --git a/core/src/services/dropbox/core.rs b/core/src/services/dropbox/core.rs
index faeaafe0c..8c095a5a4 100644
--- a/core/src/services/dropbox/core.rs
+++ b/core/src/services/dropbox/core.rs
@@ -390,21 +390,6 @@ struct DropboxDeleteArgs {
     path: String,
 }
 
-#[derive(Clone, Debug, Deserialize, Serialize)]
-struct DropboxDeleteBatchEntry {
-    path: String,
-}
-
-#[derive(Clone, Debug, Deserialize, Serialize)]
-struct DropboxDeleteBatchArgs {
-    entries: Vec<DropboxDeleteBatchEntry>,
-}
-
-#[derive(Clone, Debug, Deserialize, Serialize)]
-struct DropboxDeleteBatchCheckArgs {
-    async_job_id: String,
-}
-
 #[derive(Clone, Debug, Deserialize, Serialize)]
 struct DropboxCreateFolderArgs {
     path: String,
@@ -509,27 +494,3 @@ pub struct DropboxListResponse {
     pub cursor: String,
     pub has_more: bool,
 }
-
-#[derive(Default, Debug, Deserialize)]
-#[serde(default)]
-pub struct DropboxDeleteBatchResponse {
-    #[serde(rename(deserialize = ".tag"))]
-    pub tag: String,
-    pub async_job_id: Option<String>,
-    pub entries: Option<Vec<DropboxDeleteBatchResponseEntry>>,
-}
-
-#[derive(Default, Debug, Deserialize)]
-#[serde(default)]
-pub struct DropboxDeleteBatchResponseEntry {
-    #[serde(rename(deserialize = ".tag"))]
-    pub tag: String,
-    pub metadata: Option<DropboxMetadataResponse>,
-}
-
-#[derive(Default, Debug, Deserialize)]
-#[serde(default)]
-pub struct DropboxDeleteBatchFailureResponseCause {
-    #[serde(rename(deserialize = ".tag"))]
-    pub tag: String,
-}
diff --git a/core/src/services/oss/core.rs b/core/src/services/oss/core.rs
index ec8ca8922..abad53842 100644
--- a/core/src/services/oss/core.rs
+++ b/core/src/services/oss/core.rs
@@ -777,14 +777,6 @@ pub struct DeleteObjectsResultDeleted {
     pub version_id: Option<String>,
 }
 
-#[derive(Default, Debug, Deserialize)]
-#[serde(default, rename_all = "PascalCase")]
-pub struct DeleteObjectsResultError {
-    pub code: String,
-    pub key: String,
-    pub message: String,
-}
-
 #[derive(Default, Debug, Deserialize)]
 #[serde(rename_all = "PascalCase")]
 pub struct InitiateMultipartUploadResult {