mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-07-26 03:23:01 +00:00
chore: clippy
This commit is contained in:
@ -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);
|
||||
|
@ -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>,
|
||||
|
@ -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"));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user