From a3bc383d4cfbf6a0391e0ad1cf393a1bc6a56cfd Mon Sep 17 00:00:00 2001 From: Antioch Peverell <30642645+antiochp@users.noreply.github.com> Date: Mon, 11 Jun 2018 22:21:16 +0100 Subject: [PATCH] fix build error (#1157) --- src/bin/grin.rs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/bin/grin.rs b/src/bin/grin.rs index 0f1ee5ae2..4936674b6 100644 --- a/src/bin/grin.rs +++ b/src/bin/grin.rs @@ -371,7 +371,12 @@ fn server_command(server_args: Option<&ArgMatches>, mut global_config: GlobalCon info!( LOGGER, "Starting the Grin server from configuration file at {}", - global_config.config_file_path.as_ref().unwrap().to_str().unwrap() + global_config + .config_file_path + .as_ref() + .unwrap() + .to_str() + .unwrap() ); global::set_mining_mode( global_config @@ -446,9 +451,10 @@ fn server_command(server_args: Option<&ArgMatches>, mut global_config: GlobalCon let _ = thread::Builder::new() .name("wallet_owner_listener".to_string()) .spawn(move || { - let wallet = FileWallet::new(wallet_config.clone(), "").unwrap_or_else(|e| { - panic!("Error creating wallet: {:?} Config: {:?}", e, wallet_config) - }); + let wallet: FileWallet = FileWallet::new(wallet_config.clone(), "") + .unwrap_or_else(|e| { + panic!("Error creating wallet: {:?} Config: {:?}", e, wallet_config) + }); wallet::controller::owner_listener(wallet, "127.0.0.1:13420").unwrap_or_else(|e| { panic!( "Error creating wallet api listener: {:?} Config: {:?}",