mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: clippy
This commit is contained in:
parent
916d9be4f9
commit
9d4d027030
@ -125,7 +125,7 @@ where
|
|||||||
fn summary_database_row(
|
fn summary_database_row(
|
||||||
&self,
|
&self,
|
||||||
workspace_id: &str,
|
workspace_id: &str,
|
||||||
object_id: &str,
|
_object_id: &str,
|
||||||
summary_row: SummaryRowContent,
|
summary_row: SummaryRowContent,
|
||||||
) -> FutureResult<String, FlowyError> {
|
) -> FutureResult<String, FlowyError> {
|
||||||
let workspace_id = workspace_id.to_string();
|
let workspace_id = workspace_id.to_string();
|
||||||
|
@ -18,7 +18,7 @@ impl DatabaseCloudService for LocalServerDatabaseCloudServiceImpl {
|
|||||||
&self,
|
&self,
|
||||||
object_id: &str,
|
object_id: &str,
|
||||||
collab_type: CollabType,
|
collab_type: CollabType,
|
||||||
workspace_id: &str,
|
_workspace_id: &str,
|
||||||
) -> FutureResult<Option<Vec<u8>>, Error> {
|
) -> FutureResult<Option<Vec<u8>>, Error> {
|
||||||
let object_id = object_id.to_string();
|
let object_id = object_id.to_string();
|
||||||
// create the minimal required data for the given collab type
|
// 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(
|
fn batch_get_database_object_doc_state(
|
||||||
&self,
|
&self,
|
||||||
object_ids: Vec<String>,
|
_object_ids: Vec<String>,
|
||||||
object_ty: CollabType,
|
_object_ty: CollabType,
|
||||||
workspace_id: &str,
|
_workspace_id: &str,
|
||||||
) -> FutureResult<CollabDocStateByOid, Error> {
|
) -> FutureResult<CollabDocStateByOid, Error> {
|
||||||
FutureResult::new(async move { Ok(CollabDocStateByOid::default()) })
|
FutureResult::new(async move { Ok(CollabDocStateByOid::default()) })
|
||||||
}
|
}
|
||||||
@ -80,9 +80,9 @@ impl DatabaseCloudService for LocalServerDatabaseCloudServiceImpl {
|
|||||||
|
|
||||||
fn summary_database_row(
|
fn summary_database_row(
|
||||||
&self,
|
&self,
|
||||||
workspace_id: &str,
|
_workspace_id: &str,
|
||||||
object_id: &str,
|
_object_id: &str,
|
||||||
summary_row: SummaryRowContent,
|
_summary_row: SummaryRowContent,
|
||||||
) -> FutureResult<String, FlowyError> {
|
) -> FutureResult<String, FlowyError> {
|
||||||
// TODO(lucas): local ai
|
// TODO(lucas): local ai
|
||||||
FutureResult::new(async move { Ok("".to_string()) })
|
FutureResult::new(async move { Ok("".to_string()) })
|
||||||
@ -90,9 +90,9 @@ impl DatabaseCloudService for LocalServerDatabaseCloudServiceImpl {
|
|||||||
|
|
||||||
fn translate_database_row(
|
fn translate_database_row(
|
||||||
&self,
|
&self,
|
||||||
workspace_id: &str,
|
_workspace_id: &str,
|
||||||
translate_row: TranslateRowContent,
|
_translate_row: TranslateRowContent,
|
||||||
language: &str,
|
_language: &str,
|
||||||
) -> FutureResult<TranslateRowResponse, FlowyError> {
|
) -> FutureResult<TranslateRowResponse, FlowyError> {
|
||||||
// TODO(lucas): local ai
|
// TODO(lucas): local ai
|
||||||
FutureResult::new(async move { Ok(TranslateRowResponse::default()) })
|
FutureResult::new(async move { Ok(TranslateRowResponse::default()) })
|
||||||
|
@ -33,7 +33,7 @@ where
|
|||||||
&self,
|
&self,
|
||||||
object_id: &str,
|
object_id: &str,
|
||||||
collab_type: CollabType,
|
collab_type: CollabType,
|
||||||
workspace_id: &str,
|
_workspace_id: &str,
|
||||||
) -> FutureResult<Option<Vec<u8>>, Error> {
|
) -> FutureResult<Option<Vec<u8>>, Error> {
|
||||||
let try_get_postgrest = self.server.try_get_weak_postgrest();
|
let try_get_postgrest = self.server.try_get_weak_postgrest();
|
||||||
let object_id = object_id.to_string();
|
let object_id = object_id.to_string();
|
||||||
@ -57,7 +57,7 @@ where
|
|||||||
&self,
|
&self,
|
||||||
object_ids: Vec<String>,
|
object_ids: Vec<String>,
|
||||||
object_ty: CollabType,
|
object_ty: CollabType,
|
||||||
workspace_id: &str,
|
_workspace_id: &str,
|
||||||
) -> FutureResult<CollabDocStateByOid, Error> {
|
) -> FutureResult<CollabDocStateByOid, Error> {
|
||||||
let try_get_postgrest = self.server.try_get_weak_postgrest();
|
let try_get_postgrest = self.server.try_get_weak_postgrest();
|
||||||
let (tx, rx) = channel();
|
let (tx, rx) = channel();
|
||||||
@ -101,18 +101,18 @@ where
|
|||||||
|
|
||||||
fn summary_database_row(
|
fn summary_database_row(
|
||||||
&self,
|
&self,
|
||||||
workspace_id: &str,
|
_workspace_id: &str,
|
||||||
object_id: &str,
|
_object_id: &str,
|
||||||
summary_row: SummaryRowContent,
|
_summary_row: SummaryRowContent,
|
||||||
) -> FutureResult<String, FlowyError> {
|
) -> FutureResult<String, FlowyError> {
|
||||||
FutureResult::new(async move { Ok("".to_string()) })
|
FutureResult::new(async move { Ok("".to_string()) })
|
||||||
}
|
}
|
||||||
|
|
||||||
fn translate_database_row(
|
fn translate_database_row(
|
||||||
&self,
|
&self,
|
||||||
workspace_id: &str,
|
_workspace_id: &str,
|
||||||
translate_row: TranslateRowContent,
|
_translate_row: TranslateRowContent,
|
||||||
language: &str,
|
_language: &str,
|
||||||
) -> FutureResult<TranslateRowResponse, FlowyError> {
|
) -> FutureResult<TranslateRowResponse, FlowyError> {
|
||||||
FutureResult::new(async move { Ok(TranslateRowResponse::default()) })
|
FutureResult::new(async move { Ok(TranslateRowResponse::default()) })
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user