From b886db1d5c54c08ead50a99d306cb6b89d87d18b Mon Sep 17 00:00:00 2001 From: "Nathan.fooo" <86001920+appflowy@users.noreply.github.com> Date: Sun, 29 Dec 2024 12:47:34 +0800 Subject: [PATCH] chore: fix clippy warnings (#1103) --- .gitignore | 1 + admin_frontend/src/ext/entities.rs | 3 +++ admin_frontend/src/ext/error.rs | 1 + services/appflowy-worker/src/import_worker/worker.rs | 2 +- 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index d701c4e4..f71c5eb9 100644 --- a/.gitignore +++ b/.gitignore @@ -18,4 +18,5 @@ flake.lock .envrc .direnv/ +**/.DS_Store **/.env.* \ No newline at end of file diff --git a/admin_frontend/src/ext/entities.rs b/admin_frontend/src/ext/entities.rs index 1c2a17ef..4d814063 100644 --- a/admin_frontend/src/ext/entities.rs +++ b/admin_frontend/src/ext/entities.rs @@ -2,6 +2,7 @@ use serde::{Deserialize, Serialize}; use uuid::Uuid; #[derive(Debug, Deserialize)] +#[allow(dead_code)] pub struct JsonResponse { pub code: u16, pub data: T, @@ -21,6 +22,7 @@ pub struct WorkspaceUsageLimits { } #[derive(Deserialize)] +#[allow(dead_code)] pub struct WorkspaceMember { pub name: String, pub email: String, @@ -38,6 +40,7 @@ pub struct WorkspaceDocUsage { } #[derive(Deserialize)] +#[allow(dead_code)] pub struct UserProfile { pub uid: i64, pub uuid: Uuid, diff --git a/admin_frontend/src/ext/error.rs b/admin_frontend/src/ext/error.rs index ee683d48..6ea8a14c 100644 --- a/admin_frontend/src/ext/error.rs +++ b/admin_frontend/src/ext/error.rs @@ -2,6 +2,7 @@ use axum::response::{IntoResponse, Response}; use shared_entity::response::AppResponseError; #[derive(Debug)] +#[allow(dead_code)] pub enum Error { NotOk(u16, String), // HTTP status code, payload Reqwest(reqwest::Error), diff --git a/services/appflowy-worker/src/import_worker/worker.rs b/services/appflowy-worker/src/import_worker/worker.rs index 3af4f7d6..e2b7a68c 100644 --- a/services/appflowy-worker/src/import_worker/worker.rs +++ b/services/appflowy-worker/src/import_worker/worker.rs @@ -513,7 +513,7 @@ async fn xack_task( group_name: &str, entry_id: &str, ) -> Result<(), ImportError> { - redis_client + let _: () = redis_client .xack(stream_name, group_name, &[entry_id]) .await .map_err(|e| {