diff --git a/Cargo.lock b/Cargo.lock index 4d388ef98fa..fae149e92dd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2059,7 +2059,7 @@ dependencies = [ "heck", "proc-macro2", "quote", - "syn 2.0.40", + "syn 2.0.41", ] [[package]] @@ -4663,7 +4663,7 @@ dependencies = [ "heck", "proc-macro2", "quote", - "syn 2.0.40", + "syn 2.0.41", ] [[package]] diff --git a/crates/services/p2p/src/heartbeat.rs b/crates/services/p2p/src/heartbeat.rs index e5ec0d75253..f0e6f406f49 100644 --- a/crates/services/p2p/src/heartbeat.rs +++ b/crates/services/p2p/src/heartbeat.rs @@ -106,9 +106,7 @@ impl NetworkBehaviour for Heartbeat { Ok(HeartbeatHandler::new(self.config.clone())) } - fn on_swarm_event(&mut self, _event: FromSwarm) { - () - } + fn on_swarm_event(&mut self, _event: FromSwarm) {} fn on_connection_handler_event( &mut self,