remove warns

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-11-14 21:01:31 +08:00
parent d2ff675fbc
commit 13bade262f
3 changed files with 11 additions and 9 deletions

View File

@@ -14,8 +14,6 @@ use crossbeam_queue::ArrayQueue;
use hbb_common::sleep;
#[cfg(not(target_os = "ios"))]
use hbb_common::tokio::sync::mpsc::error::TryRecvError;
#[cfg(any(target_os = "windows", target_os = "linux", target_os = "macos"))]
use hbb_common::tokio::sync::Mutex as TokioMutex;
use hbb_common::{
allow_err,
config::{PeerConfig, TransferSerde},
@@ -34,8 +32,10 @@ use hbb_common::{
sync::mpsc,
time::{self, Duration, Instant, Interval},
},
ResultType, Stream,
Stream,
};
#[cfg(any(target_os = "windows", target_os = "linux", target_os = "macos"))]
use hbb_common::{tokio::sync::Mutex as TokioMutex, ResultType};
use scrap::CodecFormat;
use crate::client::{