mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-03 15:01:27 +03:00
refact: suppress warns on macos (#12449)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -254,7 +254,7 @@ fn update_daemon_agent(agent_plist_file: String, update_source_dir: String, sync
|
||||
|
||||
let func = move || {
|
||||
let mut binding = std::process::Command::new("osascript");
|
||||
let mut cmd = binding
|
||||
let cmd = binding
|
||||
.arg("-e")
|
||||
.arg(update_script_body)
|
||||
.arg(daemon_plist_body)
|
||||
@@ -876,6 +876,7 @@ pub fn hide_dock() {
|
||||
}
|
||||
|
||||
#[inline]
|
||||
#[allow(dead_code)]
|
||||
fn get_server_start_time_of(p: &Process, path: &Path) -> Option<i64> {
|
||||
let cmd = p.cmd();
|
||||
if cmd.len() <= 1 {
|
||||
@@ -894,6 +895,7 @@ fn get_server_start_time_of(p: &Process, path: &Path) -> Option<i64> {
|
||||
}
|
||||
|
||||
#[inline]
|
||||
#[allow(dead_code)]
|
||||
fn get_server_start_time(sys: &mut System, path: &Path) -> Option<(i64, Pid)> {
|
||||
sys.refresh_processes_specifics(ProcessRefreshKind::new());
|
||||
for (_, p) in sys.processes() {
|
||||
|
||||
Reference in New Issue
Block a user