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: clippy
Nathan37085042f8a8
diff --git a/frontend/rust-lib/build-tool/flowy-codegen/src/protobuf_file/mod.rs b/frontend/rust-lib/build-tool/flowy-codegen/src/protobuf_file/mod.rsindex 1ddb1bdeb0..8baa78c096 100644--- a/frontend/rust-lib/build-tool/flowy-codegen/src/protobuf_file/mod.rs+++ b/frontend/rust-lib/build-tool/flowy-codegen/src/protobuf_file/mod.rs@@ -77,7 +77,7 @@ pub fn dart_gen(crate_name: &str) {}#[allow(unused_variables)]-pub fn ts_gen(crate_name: &str, dest_folder_name: &str, project: Project) {+fn ts_gen(crate_name: &str, dest_folder_name: &str, project: Project) {// 1. generate the proto files to proto_file_dir#[cfg(feature = "proto_gen")]let proto_crates = gen_proto_files(crate_name);diff --git a/frontend/rust-lib/flowy-ai/src/ai_manager.rs b/frontend/rust-lib/flowy-ai/src/ai_manager.rsindex 81ab36bed6..e1e6a2724a 100644--- a/frontend/rust-lib/flowy-ai/src/ai_manager.rs+++ b/frontend/rust-lib/flowy-ai/src/ai_manager.rs@@ -55,20 +55,12 @@ pub trait AIExternalService: Send + Sync + 'static {async fn notify_did_send_message(&self, chat_id: &str, message: &str) -> Result<(), FlowyError>;}+#[derive(Debug, Default)]struct ServerModelsCache {models: Vec<String>,timestamp: Option<i64>,}-impl Default for ServerModelsCache {- fn default() -> Self {- Self {- models: Vec::new(),- timestamp: None,- }- }-}-pub struct AIManager {pub cloud_service_wm: Arc<AICloudServiceMiddleware>,pub user_service: Arc<dyn AIUserService>,diff --git a/frontend/rust-lib/flowy-search/build.rs b/frontend/rust-lib/flowy-search/build.rsindex 482ac05272..77c0c8125b 100644--- a/frontend/rust-lib/flowy-search/build.rs+++ b/frontend/rust-lib/flowy-search/build.rs@@ -1,10 +1,7 @@fn main() {- #[cfg(any(feature = "dart"))]- let crate_name = env!("CARGO_PKG_NAME");-#[cfg(feature = "dart")]{- flowy_codegen::protobuf_file::dart_gen(crate_name);- flowy_codegen::dart_event::gen(crate_name);+ flowy_codegen::protobuf_file::dart_gen(env!("CARGO_PKG_NAME"));+ flowy_codegen::dart_event::gen(env!("CARGO_PKG_NAME"));}}