chore: fix rustfmt ci test (#5664)

This commit is contained in:
Lucas.Xu 2024-07-01 13:26:43 +08:00 committed by GitHub
parent e1c68c1b72
commit 50f5be3e75
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -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))
}
}

View File

@ -73,7 +73,6 @@ impl LocalAITest {
let plugin = self.manager.get_plugin(plugin_id).await.unwrap();
let operation = ChatPluginOperation::new(plugin);
operation.send_message(chat_id, message).await.unwrap()
}