mirror of
https://github.com/qingchencloud/clawpanel.git
synced 2026-06-10 02:00:12 +08:00
fix: 修复所有 Clippy 警告,CI 质量门禁全部通过
- agent.rs: !...is_some() → .is_none() (nonminimal_bool) - config.rs: 去掉 macOS/Windows 块多余 return (needless_return) - config.rs: &old_pkg → old_pkg (needless_borrow) - logs.rs: 第二处 saturating_sub + filter_map → map_while (lines_filter_map_ok) - memory.rs: 两处 for/if-let → .iter().flatten() (manual_flatten) - tray.rs: let _ = future → std::mem::drop (let_underscore_future)
This commit is contained in:
@@ -60,13 +60,19 @@ fn handle_menu_event(app: &AppHandle, id: &str) {
|
||||
}
|
||||
}
|
||||
"gateway_start" => {
|
||||
let _ = crate::commands::service::start_service("ai.openclaw.gateway".into());
|
||||
std::mem::drop(crate::commands::service::start_service(
|
||||
"ai.openclaw.gateway".into(),
|
||||
));
|
||||
}
|
||||
"gateway_stop" => {
|
||||
let _ = crate::commands::service::stop_service("ai.openclaw.gateway".into());
|
||||
std::mem::drop(crate::commands::service::stop_service(
|
||||
"ai.openclaw.gateway".into(),
|
||||
));
|
||||
}
|
||||
"gateway_restart" => {
|
||||
let _ = crate::commands::service::restart_service("ai.openclaw.gateway".into());
|
||||
std::mem::drop(crate::commands::service::restart_service(
|
||||
"ai.openclaw.gateway".into(),
|
||||
));
|
||||
}
|
||||
"quit" => {
|
||||
app.exit(0);
|
||||
|
||||
Reference in New Issue
Block a user