mirror of
https://github.com/rustdesk/rustdesk-server.git
synced 2025-07-04 00:35:35 +00:00
compile warn
This commit is contained in:
parent
3da8c8a1cd
commit
8866360e59
@ -2,7 +2,6 @@ use hbb_common::{
|
|||||||
allow_err,
|
allow_err,
|
||||||
bytes::{Bytes, BytesMut},
|
bytes::{Bytes, BytesMut},
|
||||||
bytes_codec::BytesCodec,
|
bytes_codec::BytesCodec,
|
||||||
config,
|
|
||||||
futures_util::{
|
futures_util::{
|
||||||
sink::SinkExt,
|
sink::SinkExt,
|
||||||
stream::{SplitSink, StreamExt},
|
stream::{SplitSink, StreamExt},
|
||||||
@ -74,7 +73,7 @@ impl PeerMap {
|
|||||||
let mut db: String = "hbbs.db".to_owned();
|
let mut db: String = "hbbs.db".to_owned();
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
{
|
{
|
||||||
if let Some(path) = config::Config::icon_path().parent() {
|
if let Some(path) = hbb_common::config::Config::icon_path().parent() {
|
||||||
db = format!("{}\\{}", path.to_str().unwrap_or("."), db);
|
db = format!("{}\\{}", path.to_str().unwrap_or("."), db);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user