Remove redundant Box-ing.

This commit is contained in:
svyatonik 2016-10-04 16:01:39 +03:00
parent cb0e0abc4a
commit abc5db0f80

View File

@ -100,7 +100,7 @@ fn import_geth(i: ImportFromGethAccounts) -> Result<String, String> {
use ethcore::ethstore::Error; use ethcore::ethstore::Error;
let dir = Box::new(try!(keys_dir(i.to))); let dir = Box::new(try!(keys_dir(i.to)));
let secret_store = Box::new(EthStore::open(dir).unwrap()); let secret_store = EthStore::open(dir).unwrap();
let geth_accounts = read_geth_accounts(i.testnet); let geth_accounts = read_geth_accounts(i.testnet);
match secret_store.import_geth_accounts(geth_accounts, i.testnet) { match secret_store.import_geth_accounts(geth_accounts, i.testnet) {
Ok(v) => Ok(format!("Successfully imported {} account(s) from geth.", v.len())), Ok(v) => Ok(format!("Successfully imported {} account(s) from geth.", v.len())),