mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-08-05 17:15:49 +00:00
Run cargo fmt on the whole code base (#9394)
* Run cargo fmt on the whole code base * Second run * Add CI check * Fix compilation * More unnecessary braces * Handle weights * Use --all * Use correct attributes... * Fix UI tests * AHHHHHHHHH * 🤦 * Docs * Fix compilation * 🤷 * Please stop * 🤦 x 2 * More * make rustfmt.toml consistent with polkadot Co-authored-by: André Silva <andrerfosilva@gmail.com>
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
|
||||
use futures::Stream;
|
||||
use sc_transaction_pool_api::TransactionStatus;
|
||||
use sp_utils::mpsc::{tracing_unbounded, TracingUnboundedSender, TracingUnboundedReceiver};
|
||||
use sp_utils::mpsc::{tracing_unbounded, TracingUnboundedReceiver, TracingUnboundedSender};
|
||||
|
||||
/// Extrinsic watcher.
|
||||
///
|
||||
@@ -41,7 +41,7 @@ impl<H, BH> Watcher<H, BH> {
|
||||
/// Pipe the notifications to given sink.
|
||||
///
|
||||
/// Make sure to drive the future to completion.
|
||||
pub fn into_stream(self) -> impl Stream<Item=TransactionStatus<H, BH>> {
|
||||
pub fn into_stream(self) -> impl Stream<Item = TransactionStatus<H, BH>> {
|
||||
self.receiver
|
||||
}
|
||||
}
|
||||
@@ -55,10 +55,7 @@ pub struct Sender<H, BH> {
|
||||
|
||||
impl<H, BH> Default for Sender<H, BH> {
|
||||
fn default() -> Self {
|
||||
Sender {
|
||||
receivers: Default::default(),
|
||||
is_finalized: false,
|
||||
}
|
||||
Sender { receivers: Default::default(), is_finalized: false }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,10 +64,7 @@ impl<H: Clone, BH: Clone> Sender<H, BH> {
|
||||
pub fn new_watcher(&mut self, hash: H) -> Watcher<H, BH> {
|
||||
let (tx, receiver) = tracing_unbounded("mpsc_txpool_watcher");
|
||||
self.receivers.push(tx);
|
||||
Watcher {
|
||||
receiver,
|
||||
hash,
|
||||
}
|
||||
Watcher { receiver, hash }
|
||||
}
|
||||
|
||||
/// Transaction became ready.
|
||||
|
||||
Reference in New Issue
Block a user