From 50806b54b715a1d4450d037191c6cc812edb8e59 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 12 Oct 2021 13:33:42 +0200 Subject: fix cargo fmt style --- src/netapp.rs | 8 +++++--- src/peering/basalt.rs | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/netapp.rs b/src/netapp.rs index 86f14fe..e49f599 100644 --- a/src/netapp.rs +++ b/src/netapp.rs @@ -27,9 +27,11 @@ type DynMsg = Box; type OnConnectHandler = Box; type OnDisconnectHandler = Box; -pub(crate) type LocalHandler = Box Pin + Sync + Send>> + Sync + Send>; +pub(crate) type LocalHandler = + Box Pin + Sync + Send>> + Sync + Send>; pub(crate) type NetHandler = Box< - dyn Fn(NodeID, Bytes) -> Pin> + Sync + Send>> + Sync + Send>; + dyn Fn(NodeID, Bytes) -> Pin> + Sync + Send>> + Sync + Send, +>; pub(crate) struct Handler { pub(crate) local_handler: LocalHandler, @@ -132,7 +134,7 @@ impl NetApp { let netapp2 = netapp.clone(); netapp.add_msg_handler::(move |from: NodeID, msg: HelloMessage| { netapp2.handle_hello_message(from, msg); - async { } + async {} }); netapp diff --git a/src/peering/basalt.rs b/src/peering/basalt.rs index a53571e..3109e72 100644 --- a/src/peering/basalt.rs +++ b/src/peering/basalt.rs @@ -290,7 +290,7 @@ impl Basalt { let basalt2 = basalt.clone(); netapp.add_msg_handler::(move |_from: NodeID, push_msg: PushMessage| { basalt2.handle_peer_list(&push_msg.peers[..]); - async move { } + async move {} }); basalt -- cgit v1.2.3