chore: clippy

This commit is contained in:
Nathan
2025-03-24 12:40:29 +08:00
parent 2cbcb320fe
commit 37085042f8
3 changed files with 4 additions and 15 deletions

View File

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

View File

@ -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>,

View File

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