From befcf9f44661ffdd4950da6b5ea00734acd8c698 Mon Sep 17 00:00:00 2001 From: Artem Badrtdinov Date: Mon, 11 Dec 2023 17:47:31 +0500 Subject: [PATCH] fmt --- src/model/account/private_key.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/model/account/private_key.rs b/src/model/account/private_key.rs index da2a6d7..707cebd 100644 --- a/src/model/account/private_key.rs +++ b/src/model/account/private_key.rs @@ -17,7 +17,9 @@ impl std::str::FromStr for PrivateKey { fn from_str(base58string: &str) -> Result { let bytes = Base58::decode(base58string)?; - let bytes_array: [u8; 32] = bytes.try_into().map_err(|e| Error::VectorToArrayConversionError(e))?; + let bytes_array: [u8; 32] = bytes + .try_into() + .map_err(|e| Error::VectorToArrayConversionError(e))?; PrivateKey::from_bytes(bytes_array) } }