From 24118d58eb36e74cf415e655c5fffcd8dca300dd Mon Sep 17 00:00:00 2001 From: Chris Beck Date: Thu, 26 May 2022 21:11:02 -0600 Subject: [PATCH] fix clippy --- mobilecoind-dev-faucet/src/bin/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mobilecoind-dev-faucet/src/bin/main.rs b/mobilecoind-dev-faucet/src/bin/main.rs index 385d35318c..2edacadac7 100644 --- a/mobilecoind-dev-faucet/src/bin/main.rs +++ b/mobilecoind-dev-faucet/src/bin/main.rs @@ -90,7 +90,7 @@ impl State { let ch = ChannelBuilder::new(grpc_env.clone()) .max_receive_message_len(std::i32::MAX) .max_send_message_len(std::i32::MAX) - .connect_to_uri(&config.mobilecoind_uri, &logger); + .connect_to_uri(&config.mobilecoind_uri, logger); let mobilecoind_api_client = MobilecoindApiClient::new(ch); @@ -156,7 +156,7 @@ impl State { loop { let resp = self .mobilecoind_api_client - .get_tx_status_as_sender(&prev_tx) + .get_tx_status_as_sender(prev_tx) .map_err(|err| format!("Failed getting network status: {}", err))?; if resp.status == TxStatus::Unknown { std::thread::sleep(Duration::from_millis(10)); @@ -194,7 +194,7 @@ fn post( )); }; - let token_id = TokenId::from(req.token_id.unwrap_or_else(Default::default).as_ref()); + let token_id = TokenId::from(req.token_id.unwrap_or_default().as_ref()); let value = *state.faucet_amounts.get(&token_id).ok_or(format!( "token_id: '{}' is not supported by the network",