suppress warns

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou 2023-02-08 19:25:25 +08:00
parent 1588e44d61
commit c049e728fd

View File

@ -928,7 +928,7 @@ pub fn main_start_dbus_server() {
{ {
use crate::dbus::start_dbus_server; use crate::dbus::start_dbus_server;
// spawn new thread to start dbus server // spawn new thread to start dbus server
std::thread::spawn(|| { thread::spawn(|| {
let _ = start_dbus_server(); let _ = start_dbus_server();
}); });
} }
@ -1275,7 +1275,7 @@ pub fn main_is_login_wayland() -> SyncReturn<bool> {
pub fn main_start_pa() { pub fn main_start_pa() {
#[cfg(target_os = "linux")] #[cfg(target_os = "linux")]
std::thread::spawn(crate::ipc::start_pa); thread::spawn(crate::ipc::start_pa);
} }
pub fn main_hide_docker() -> SyncReturn<bool> { pub fn main_hide_docker() -> SyncReturn<bool> {
@ -1302,9 +1302,9 @@ pub fn main_start_ipc_url_server() {
/// ///
/// * macOS only /// * macOS only
#[allow(unused_variables)] #[allow(unused_variables)]
pub fn send_url_scheme(url: String) { pub fn send_url_scheme(_url: String) {
#[cfg(target_os = "macos")] #[cfg(target_os = "macos")]
thread::spawn(move || crate::ui::macos::handle_url_scheme(url)); thread::spawn(move || crate::ui::macos::handle_url_scheme(_url));
} }
#[cfg(target_os = "android")] #[cfg(target_os = "android")]
@ -1324,7 +1324,7 @@ pub mod server_side {
_class: JClass, _class: JClass,
) { ) {
log::debug!("startServer from java"); log::debug!("startServer from java");
std::thread::spawn(move || start_server(true)); thread::spawn(move || start_server(true));
} }
#[no_mangle] #[no_mangle]