From e4556e8929f1be4dfb3eb979b5604b06ec908c1c Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Sat, 4 Aug 2018 20:37:07 +0300 Subject: [PATCH] Replace to-be-deprecated `std::end::home_dir()` with `dirs::home_dir()` Found by building on nightly --- Cargo.toml | 1 + src/config.rs | 2 +- src/lib.rs | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index a487c48..1aa2f46 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,6 +18,7 @@ bitcoin = "0.13" chan = "0.1" chan-signal = "0.3" clap = "2.31" +dirs = "1.0" error-chain = "0.12" glob = "0.2" hex = "0.3" diff --git a/src/config.rs b/src/config.rs index 04e381b..e6d3f5a 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1,5 +1,5 @@ use clap::{App, Arg}; -use std::env::home_dir; +use dirs::home_dir; use std::fs; use std::net::SocketAddr; use std::path::{Path, PathBuf}; diff --git a/src/lib.rs b/src/lib.rs index 5d7f96c..2ac8f28 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -5,6 +5,7 @@ extern crate bincode; extern crate bitcoin; extern crate chan_signal; extern crate crypto; +extern crate dirs; extern crate glob; extern crate hex; extern crate libc;