修复错误警告

This commit is contained in:
xintaofei
2026-03-31 13:11:08 +08:00
parent 007b52c183
commit f2a53acc9d
8 changed files with 27 additions and 29 deletions

View File

@@ -50,6 +50,7 @@ pub async fn create_chat_channel_core(
Ok(ChatChannelInfo::from(model))
}
#[allow(clippy::too_many_arguments)]
pub async fn update_chat_channel_core(
db: &AppDatabase,
id: i32,
@@ -369,6 +370,7 @@ pub async fn create_chat_channel(
create_chat_channel_core(&db, name, channel_type, config_json, enabled, daily_report_enabled, daily_report_time).await
}
#[allow(clippy::too_many_arguments)]
#[cfg(feature = "tauri-runtime")]
#[tauri::command]
pub async fn update_chat_channel(

View File

@@ -2997,7 +2997,7 @@ pub async fn list_directory_entries(
.filter_map(|e| e.ok())
.any(|e| {
let ft = e.file_type().ok();
let is_sub_dir = ft.map_or(false, |ft| {
let is_sub_dir = ft.is_some_and(|ft| {
if ft.is_symlink() {
e.path().is_dir()
} else {