mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-07-02 11:11:36 +00:00
PollParameters is now a trait (#1177)
* PollParameters is now a trait * Fix unused variable
This commit is contained in:
@ -123,7 +123,7 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
fn poll(&mut self, params: &mut PollParameters<'_>)
|
||||
fn poll(&mut self, params: &mut impl PollParameters)
|
||||
-> Async<NetworkBehaviourAction<<<Self::ProtocolsHandler as IntoProtocolsHandler>::Handler as ProtocolsHandler>::InEvent, Self::OutEvent>>
|
||||
{
|
||||
if let Some(inner) = self.inner.as_mut() {
|
||||
|
Reference in New Issue
Block a user