Skip to content

Commit

Permalink
Fix nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
garious committed Jul 13, 2018
1 parent 428f220 commit 3d9acdd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ futures = "0.1.21"
clap = "2.31"
reqwest = "0.8.6"
influx_db_client = "0.3.4"
dirs = "1.0.2"

[dev-dependencies]
criterion = "0.2"
Expand Down
4 changes: 2 additions & 2 deletions src/bin/fullnode-config.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
extern crate clap;
extern crate dirs;
extern crate serde_json;
extern crate solana;

Expand All @@ -7,7 +8,6 @@ use solana::crdt::{get_ip_addr, parse_port_or_addr};
use solana::fullnode::Config;
use solana::nat::get_public_ip_addr;
use solana::signature::read_pkcs8;
use std::env;
use std::io;
use std::net::SocketAddr;

Expand Down Expand Up @@ -64,7 +64,7 @@ fn main() {
bind_addr
};

let mut path = env::home_dir().expect("home directory");
let mut path = dirs::home_dir().expect("home directory");
let id_path = if matches.is_present("keypair") {
matches.value_of("keypair").unwrap()
} else {
Expand Down
4 changes: 2 additions & 2 deletions src/bin/keygen.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
extern crate clap;
extern crate dirs;
extern crate ring;
extern crate serde_json;

use clap::{App, Arg};
use ring::rand::SystemRandom;
use ring::signature::Ed25519KeyPair;
use std::env;
use std::error;
use std::fs::{self, File};
use std::io::Write;
Expand All @@ -27,7 +27,7 @@ fn main() -> Result<(), Box<error::Error>> {
let pkcs8_bytes = Ed25519KeyPair::generate_pkcs8(&rnd)?;
let serialized = serde_json::to_string(&pkcs8_bytes.to_vec())?;

let mut path = env::home_dir().expect("home directory");
let mut path = dirs::home_dir().expect("home directory");
let outfile = if matches.is_present("outfile") {
matches.value_of("outfile").unwrap()
} else {
Expand Down
4 changes: 2 additions & 2 deletions src/bin/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ extern crate atty;
extern crate bincode;
extern crate bs58;
extern crate clap;
extern crate dirs;
extern crate env_logger;
extern crate serde_json;
extern crate solana;
Expand All @@ -13,7 +14,6 @@ use solana::drone::DroneRequest;
use solana::fullnode::Config;
use solana::signature::{read_keypair, KeyPair, KeyPairUtil, PublicKey, Signature};
use solana::thin_client::ThinClient;
use std::env;
use std::error;
use std::fmt;
use std::fs::File;
Expand Down Expand Up @@ -148,7 +148,7 @@ fn parse_args() -> Result<WalletConfig, Box<error::Error>> {
leader = NodeInfo::new_leader(&server_addr);
};

let mut path = env::home_dir().expect("home directory");
let mut path = dirs::home_dir().expect("home directory");
let id_path = if matches.is_present("keypair") {
matches.value_of("keypair").unwrap()
} else {
Expand Down

0 comments on commit 3d9acdd

Please sign in to comment.