diff --git a/protocols/upnp/src/behaviour.rs b/protocols/upnp/src/behaviour.rs index 035561689f6..e2d4f328c62 100644 --- a/protocols/upnp/src/behaviour.rs +++ b/protocols/upnp/src/behaviour.rs @@ -182,6 +182,7 @@ where { /// Builds a new `UPnP` behaviour. pub fn new(config: Config) -> Self { + #![allow(clippy::disallowed_methods)] let (events_sender, mut task_receiver) = mpsc::unbounded(); let (mut task_sender, events_queue) = mpsc::channel(0); P::spawn(async move { @@ -467,8 +468,7 @@ where ); self.events_sender .unbounded_send( - remove_port_mapping::

(gateway.clone(), mapping.clone()) - .boxed(), + remove_port_mapping::

(gateway.clone(), mapping).boxed(), ) .expect("receiver should be available"); }