mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-13 01:51:23 +00:00
*: Format with rustfmt (#2188)
Co-authored-by: Thomas Eizinger <thomas@eizinger.io>
This commit is contained in:
@ -79,7 +79,7 @@ fn main() -> Result<(), Box<dyn Error>> {
|
||||
block_on(future::poll_fn(move |cx| loop {
|
||||
match swarm.poll_next_unpin(cx) {
|
||||
Poll::Ready(Some(event)) => match event {
|
||||
SwarmEvent::NewListenAddr{ address, .. } => println!("Listening on {:?}", address),
|
||||
SwarmEvent::NewListenAddr { address, .. } => println!("Listening on {:?}", address),
|
||||
SwarmEvent::Behaviour(event) => println!("{:?}", event),
|
||||
_ => {}
|
||||
},
|
||||
|
Reference in New Issue
Block a user