compile warn

This commit is contained in:
open-trade 2021-03-22 18:03:06 +08:00
parent 3da8c8a1cd
commit 8866360e59

View File

@ -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);
} }
} }