Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
chore: fix rustfmt ci test (#5664)
Lucas.Xu50f5be3e751b
diff --git a/frontend/rust-lib/flowy-chat/src/local_ai/chat_plugin.rs b/frontend/rust-lib/flowy-chat/src/local_ai/chat_plugin.rsindex 2e26e1b582..8287e86c8b 100644--- a/frontend/rust-lib/flowy-chat/src/local_ai/chat_plugin.rs+++ b/frontend/rust-lib/flowy-chat/src/local_ai/chat_plugin.rs@@ -122,7 +122,8 @@ impl ResponseParser for ChatRelatedQuestionsResponseParser {fn parse_json(json: JsonValue) -> Result<Self::ValueType, RemoteError> {json.get("data")- .and_then(|data| data.as_array()).cloned()+ .and_then(|data| data.as_array())+ .cloned().ok_or(RemoteError::ParseResponse(json))}}diff --git a/frontend/rust-lib/flowy-chat/tests/util.rs b/frontend/rust-lib/flowy-chat/tests/util.rsindex 5dbf37d8c8..a1f9e51d1e 100644--- a/frontend/rust-lib/flowy-chat/tests/util.rs+++ b/frontend/rust-lib/flowy-chat/tests/util.rs@@ -72,7 +72,6 @@ impl LocalAITest {) -> String {let plugin = self.manager.get_plugin(plugin_id).await.unwrap();let operation = ChatPluginOperation::new(plugin);-operation.send_message(chat_id, message).await.unwrap()}@@ -95,7 +94,7 @@ impl LocalAITest {) -> Vec<serde_json::Value> {let plugin = self.manager.get_plugin(plugin_id).await.unwrap();let operation = ChatPluginOperation::new(plugin);-+operation.get_related_questions(chat_id).await.unwrap()}