mirror of
https://github.com/qingchencloud/clawpanel.git
synced 2026-06-27 18:51:57 +08:00
fix(ci): gate Windows-only functions with #[cfg(target_os = windows)] for Clippy
This commit is contained in:
2
src-tauri/Cargo.lock
generated
2
src-tauri/Cargo.lock
generated
@@ -328,7 +328,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "clawpanel"
|
||||
version = "0.7.3"
|
||||
version = "0.7.4"
|
||||
dependencies = [
|
||||
"base64 0.22.1",
|
||||
"chrono",
|
||||
|
||||
@@ -18,11 +18,13 @@ fn description_map() -> HashMap<&'static str, &'static str> {
|
||||
])
|
||||
}
|
||||
|
||||
#[cfg(target_os = "windows")]
|
||||
fn looks_like_gateway_command_line(command_line: &str) -> bool {
|
||||
let text = command_line.to_ascii_lowercase();
|
||||
text.contains("openclaw") && text.contains("gateway")
|
||||
}
|
||||
|
||||
#[cfg(target_os = "windows")]
|
||||
fn parse_listening_pids_from_netstat(stdout: &str, port: u16) -> Vec<u32> {
|
||||
let port_pattern = format!(":{port}");
|
||||
let mut pids = HashSet::new();
|
||||
|
||||
Reference in New Issue
Block a user