From d9660a38cd8d802d26aef774b94f5fd4333c3ac7 Mon Sep 17 00:00:00 2001 From: david barinas Date: Thu, 18 Apr 2024 10:51:35 -0500 Subject: [PATCH] chore: fmt --- libwallet/src/key_pair.rs | 3 +-- sube/examples/query_balance_ws.rs | 2 +- sube/examples/send_tx.rs | 5 ++++- sube/examples/send_tx_libwallet.rs | 5 ++++- sube/src/ws.rs | 1 - 5 files changed, 10 insertions(+), 6 deletions(-) diff --git a/libwallet/src/key_pair.rs b/libwallet/src/key_pair.rs index 9e67cce..84dd9ae 100644 --- a/libwallet/src/key_pair.rs +++ b/libwallet/src/key_pair.rs @@ -1,6 +1,5 @@ -pub use derive::Derive; use core::{convert::TryInto, fmt::Debug}; - +pub use derive::Derive; type Bytes = [u8; N]; diff --git a/sube/examples/query_balance_ws.rs b/sube/examples/query_balance_ws.rs index 9063921..0d9e660 100644 --- a/sube/examples/query_balance_ws.rs +++ b/sube/examples/query_balance_ws.rs @@ -1,6 +1,6 @@ use env_logger; use serde::Deserialize; -use sube::{builder::SubeBuilder, sube, ExtrinsicBody, Response, Result, SignerFn, Error}; +use sube::{builder::SubeBuilder, sube, Error, ExtrinsicBody, Response, Result, SignerFn}; #[derive(Debug, Deserialize)] pub struct AccountInfo { diff --git a/sube/examples/send_tx.rs b/sube/examples/send_tx.rs index 0aa60fc..195d35f 100644 --- a/sube/examples/send_tx.rs +++ b/sube/examples/send_tx.rs @@ -21,7 +21,10 @@ async fn main() -> Result<(), Box> { }; let mut wallet = Wallet::new(vault); - wallet.unlock(None).await.map_err(|_| anyhow!("error wallet"))?; + wallet + .unlock(None) + .await + .map_err(|_| anyhow!("error wallet"))?; let account = wallet.default_account(); let public = account.public(); diff --git a/sube/examples/send_tx_libwallet.rs b/sube/examples/send_tx_libwallet.rs index 4b5908d..3237ae4 100644 --- a/sube/examples/send_tx_libwallet.rs +++ b/sube/examples/send_tx_libwallet.rs @@ -21,7 +21,10 @@ async fn main() -> Result<()> { }; let mut wallet = Wallet::new(vault); - wallet.unlock(None).await.map_err(|e| anyhow!("Error unlocking the wallet"))?; + wallet + .unlock(None) + .await + .map_err(|e| anyhow!("Error unlocking the wallet"))?; let account = wallet.default_account(); let public = account.public(); diff --git a/sube/src/ws.rs b/sube/src/ws.rs index 29f342d..1483456 100644 --- a/sube/src/ws.rs +++ b/sube/src/ws.rs @@ -180,7 +180,6 @@ impl Backend { } log::warn!("WS connection closed"); - }); } }