Switch to dirs-next
This commit is contained in:
committed by
mergify[bot]
parent
2f778725d6
commit
23fe3a86d9
@@ -2,19 +2,19 @@ pub const JSON_RPC_URL: &str = "http://devnet.solana.com";
|
||||
|
||||
lazy_static! {
|
||||
pub static ref CONFIG_FILE: Option<String> = {
|
||||
dirs::home_dir().map(|mut path| {
|
||||
dirs_next::home_dir().map(|mut path| {
|
||||
path.extend(&[".config", "solana", "install", "config.yml"]);
|
||||
path.to_str().unwrap().to_string()
|
||||
})
|
||||
};
|
||||
pub static ref USER_KEYPAIR: Option<String> = {
|
||||
dirs::home_dir().map(|mut path| {
|
||||
dirs_next::home_dir().map(|mut path| {
|
||||
path.extend(&[".config", "solana", "id.json"]);
|
||||
path.to_str().unwrap().to_string()
|
||||
})
|
||||
};
|
||||
pub static ref DATA_DIR: Option<String> = {
|
||||
dirs::home_dir().map(|mut path| {
|
||||
dirs_next::home_dir().map(|mut path| {
|
||||
path.extend(&[".local", "share", "solana", "install"]);
|
||||
path.to_str().unwrap().to_string()
|
||||
})
|
||||
|
Reference in New Issue
Block a user