Use dirs-next instead of dirs since the latter is unmantained

This commit is contained in:
Riccardo Casatta 2020-11-19 15:22:46 +01:00
parent dbfa0506db
commit 73326068f8
No known key found for this signature in database
GPG Key ID: FD986A969E450397
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ bdk-testutils-macros = { version = "0.1.0-beta.1", path = "./testutils-macros" }
serial_test = "0.4" serial_test = "0.4"
lazy_static = "1.4" lazy_static = "1.4"
rustyline = "6.0" rustyline = "6.0"
dirs = "2.0" dirs-next = "2.0"
env_logger = "0.7" env_logger = "0.7"
[[example]] [[example]]

View File

@ -48,7 +48,7 @@ use bdk::blockchain::esplora::EsploraBlockchainConfig;
fn prepare_home_dir() -> PathBuf { fn prepare_home_dir() -> PathBuf {
let mut dir = PathBuf::new(); let mut dir = PathBuf::new();
dir.push(&dirs::home_dir().unwrap()); dir.push(&dirs_next::home_dir().unwrap());
dir.push(".bdk-bitcoin"); dir.push(".bdk-bitcoin");
if !dir.exists() { if !dir.exists() {