From e5283c317e1fd682b5f698114db99a8cabe0821a Mon Sep 17 00:00:00 2001 From: dimxy Date: Thu, 2 Nov 2023 20:32:00 +0500 Subject: [PATCH] fix cargo fmt --- mm2src/coins/utxo/utxo_common.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/mm2src/coins/utxo/utxo_common.rs b/mm2src/coins/utxo/utxo_common.rs index fa62e546f9..890a57272f 100644 --- a/mm2src/coins/utxo/utxo_common.rs +++ b/mm2src/coins/utxo/utxo_common.rs @@ -3096,8 +3096,14 @@ pub fn convert_to_address(coin: &T, from: &str, to_address_for json::from_value(to_address_format).map_err(|e| ERRL!("Error on parse UTXO address format {:?}", e))?; let from_address = try_s!(coin.address_from_str(from)); match to_address_format { - UtxoAddressFormat::Standard => { // assuming convertion to p2pkh - Ok(LegacyAddress::new(&from_address.hash, coin.as_ref().conf.address_prefixes.p2pkh.clone(), coin.as_ref().conf.checksum_type).to_string()) + UtxoAddressFormat::Standard => { + // assuming convertion to p2pkh + Ok(LegacyAddress::new( + &from_address.hash, + coin.as_ref().conf.address_prefixes.p2pkh.clone(), + coin.as_ref().conf.checksum_type, + ) + .to_string()) }, UtxoAddressFormat::Segwit => { let bech32_hrp = &coin.as_ref().conf.bech32_hrp;