From 9d4d0270305d698a47292c8f8b9390fe5fc909da Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 19 Jul 2024 14:45:39 +0800 Subject: [PATCH] chore: clippy --- .../src/af_cloud/impls/database.rs | 2 +- .../src/local_server/impls/database.rs | 20 +++++++++---------- .../flowy-server/src/supabase/api/database.rs | 16 +++++++-------- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/frontend/rust-lib/flowy-server/src/af_cloud/impls/database.rs b/frontend/rust-lib/flowy-server/src/af_cloud/impls/database.rs index a3407c4148..c26c8d262d 100644 --- a/frontend/rust-lib/flowy-server/src/af_cloud/impls/database.rs +++ b/frontend/rust-lib/flowy-server/src/af_cloud/impls/database.rs @@ -125,7 +125,7 @@ where fn summary_database_row( &self, workspace_id: &str, - object_id: &str, + _object_id: &str, summary_row: SummaryRowContent, ) -> FutureResult { let workspace_id = workspace_id.to_string(); diff --git a/frontend/rust-lib/flowy-server/src/local_server/impls/database.rs b/frontend/rust-lib/flowy-server/src/local_server/impls/database.rs index 1bef7db39b..5f55710057 100644 --- a/frontend/rust-lib/flowy-server/src/local_server/impls/database.rs +++ b/frontend/rust-lib/flowy-server/src/local_server/impls/database.rs @@ -18,7 +18,7 @@ impl DatabaseCloudService for LocalServerDatabaseCloudServiceImpl { &self, object_id: &str, collab_type: CollabType, - workspace_id: &str, + _workspace_id: &str, ) -> FutureResult>, Error> { let object_id = object_id.to_string(); // create the minimal required data for the given collab type @@ -63,9 +63,9 @@ impl DatabaseCloudService for LocalServerDatabaseCloudServiceImpl { fn batch_get_database_object_doc_state( &self, - object_ids: Vec, - object_ty: CollabType, - workspace_id: &str, + _object_ids: Vec, + _object_ty: CollabType, + _workspace_id: &str, ) -> FutureResult { FutureResult::new(async move { Ok(CollabDocStateByOid::default()) }) } @@ -80,9 +80,9 @@ impl DatabaseCloudService for LocalServerDatabaseCloudServiceImpl { fn summary_database_row( &self, - workspace_id: &str, - object_id: &str, - summary_row: SummaryRowContent, + _workspace_id: &str, + _object_id: &str, + _summary_row: SummaryRowContent, ) -> FutureResult { // TODO(lucas): local ai FutureResult::new(async move { Ok("".to_string()) }) @@ -90,9 +90,9 @@ impl DatabaseCloudService for LocalServerDatabaseCloudServiceImpl { fn translate_database_row( &self, - workspace_id: &str, - translate_row: TranslateRowContent, - language: &str, + _workspace_id: &str, + _translate_row: TranslateRowContent, + _language: &str, ) -> FutureResult { // TODO(lucas): local ai FutureResult::new(async move { Ok(TranslateRowResponse::default()) }) diff --git a/frontend/rust-lib/flowy-server/src/supabase/api/database.rs b/frontend/rust-lib/flowy-server/src/supabase/api/database.rs index f4dcbc7845..cd074e12fb 100644 --- a/frontend/rust-lib/flowy-server/src/supabase/api/database.rs +++ b/frontend/rust-lib/flowy-server/src/supabase/api/database.rs @@ -33,7 +33,7 @@ where &self, object_id: &str, collab_type: CollabType, - workspace_id: &str, + _workspace_id: &str, ) -> FutureResult>, Error> { let try_get_postgrest = self.server.try_get_weak_postgrest(); let object_id = object_id.to_string(); @@ -57,7 +57,7 @@ where &self, object_ids: Vec, object_ty: CollabType, - workspace_id: &str, + _workspace_id: &str, ) -> FutureResult { let try_get_postgrest = self.server.try_get_weak_postgrest(); let (tx, rx) = channel(); @@ -101,18 +101,18 @@ where fn summary_database_row( &self, - workspace_id: &str, - object_id: &str, - summary_row: SummaryRowContent, + _workspace_id: &str, + _object_id: &str, + _summary_row: SummaryRowContent, ) -> FutureResult { FutureResult::new(async move { Ok("".to_string()) }) } fn translate_database_row( &self, - workspace_id: &str, - translate_row: TranslateRowContent, - language: &str, + _workspace_id: &str, + _translate_row: TranslateRowContent, + _language: &str, ) -> FutureResult { FutureResult::new(async move { Ok(TranslateRowResponse::default()) }) }