compile warn
This commit is contained in:
1 parent
3da8c8a1cd
commit
8866360e59
1 file changed
+1
-2
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user