Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
jxs committed Jul 8, 2023
1 parent 7d679c8 commit 28e0fde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions protocols/upnp/src/behaviour.rs
Expand Up @@ -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 {
Expand Down Expand Up @@ -467,8 +468,7 @@ where
);
self.events_sender
.unbounded_send(
remove_port_mapping::<P>(gateway.clone(), mapping.clone())
.boxed(),
remove_port_mapping::<P>(gateway.clone(), mapping).boxed(),
)
.expect("receiver should be available");
}
Expand Down

0 comments on commit 28e0fde

Please sign in to comment.