Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
S0c5 committed Apr 18, 2024
1 parent 3e117c0 commit d9660a3
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
3 changes: 1 addition & 2 deletions libwallet/src/key_pair.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
pub use derive::Derive;
use core::{convert::TryInto, fmt::Debug};

pub use derive::Derive;

type Bytes<const N: usize> = [u8; N];

Expand Down
2 changes: 1 addition & 1 deletion sube/examples/query_balance_ws.rs
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
5 changes: 4 additions & 1 deletion sube/examples/send_tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
};

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();
Expand Down
5 changes: 4 additions & 1 deletion sube/examples/send_tx_libwallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
1 change: 0 additions & 1 deletion sube/src/ws.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ impl Backend {
}

log::warn!("WS connection closed");

});
}
}

0 comments on commit d9660a3

Please sign in to comment.