mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-23 21:21:05 +03:00
refact: suppress warns on macos (#12449)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -1,19 +1,16 @@
|
||||
#[cfg(target_os = "windows")]
|
||||
use crate::ipc::ClipboardNonFile;
|
||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||
use crate::ipc::Connection;
|
||||
#[cfg(not(any(target_os = "ios")))]
|
||||
use crate::{
|
||||
clipboard::ClipboardSide,
|
||||
ipc::{self, Data},
|
||||
};
|
||||
use crate::ipc::{self, Data};
|
||||
#[cfg(target_os = "windows")]
|
||||
use crate::{clipboard::ClipboardSide, ipc::ClipboardNonFile};
|
||||
#[cfg(target_os = "windows")]
|
||||
use clipboard::ContextSend;
|
||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||
use hbb_common::tokio::sync::mpsc::unbounded_channel;
|
||||
use hbb_common::{
|
||||
allow_err,
|
||||
config::{keys::*, option2bool, Config},
|
||||
config::Config,
|
||||
fs::is_write_need_confirmation,
|
||||
fs::{self, get_string, new_send_confirm, DigestCheckResult},
|
||||
log,
|
||||
@@ -25,12 +22,16 @@ use hbb_common::{
|
||||
task::spawn_blocking,
|
||||
},
|
||||
};
|
||||
#[cfg(any(target_os = "windows", target_os = "linux", target_os = "macos"))]
|
||||
use hbb_common::{tokio::sync::Mutex as TokioMutex, ResultType};
|
||||
#[cfg(target_os = "windows")]
|
||||
use hbb_common::{
|
||||
config::{keys::*, option2bool},
|
||||
tokio::sync::Mutex as TokioMutex,
|
||||
ResultType,
|
||||
};
|
||||
use serde_derive::Serialize;
|
||||
#[cfg(any(target_os = "android", target_os = "ios", feature = "flutter"))]
|
||||
use std::iter::FromIterator;
|
||||
#[cfg(any(target_os = "windows", target_os = "linux", target_os = "macos"))]
|
||||
#[cfg(target_os = "windows")]
|
||||
use std::sync::Arc;
|
||||
use std::{
|
||||
collections::HashMap,
|
||||
|
||||
Reference in New Issue
Block a user