remove warns

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou 2023-04-10 15:06:11 +08:00
parent ceb2e6614c
commit 7de5b7dbc0
2 changed files with 5 additions and 6 deletions

View File

@ -24,6 +24,7 @@ use sha2::{Digest, Sha256};
use uuid::Uuid; use uuid::Uuid;
pub use file_trait::FileManager; pub use file_trait::FileManager;
#[cfg(not(feature = "flutter"))]
#[cfg(not(any(target_os = "android", target_os = "ios")))] #[cfg(not(any(target_os = "android", target_os = "ios")))]
use hbb_common::tokio::sync::mpsc::UnboundedSender; use hbb_common::tokio::sync::mpsc::UnboundedSender;
use hbb_common::{ use hbb_common::{
@ -58,10 +59,10 @@ use crate::{
}; };
#[cfg(not(any(target_os = "android", target_os = "ios")))] #[cfg(not(any(target_os = "android", target_os = "ios")))]
use crate::{ use crate::common::{check_clipboard, ClipboardContext, CLIPBOARD_INTERVAL};
common::{check_clipboard, ClipboardContext, CLIPBOARD_INTERVAL}, #[cfg(not(feature = "flutter"))]
ui_session_interface::SessionPermissionConfig, #[cfg(not(any(target_os = "android", target_os = "ios")))]
}; use crate::ui_session_interface::SessionPermissionConfig;
pub use super::lang::*; pub use super::lang::*;

View File

@ -1,7 +1,5 @@
use std::collections::HashMap; use std::collections::HashMap;
use std::num::NonZeroI64; use std::num::NonZeroI64;
#[cfg(not(any(target_os = "android", target_os = "ios")))]
use std::sync::Mutex;
use std::sync::{ use std::sync::{
atomic::{AtomicUsize, Ordering}, atomic::{AtomicUsize, Ordering},
Arc, Arc,