Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
neonphog committed Oct 18, 2024
1 parent 0cc0387 commit 13fb23c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/tx5-go-pion-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ impl Api {
}

// need to forget it every time, otherwise drop will run
Box::into_raw(closure);
let _ = Box::into_raw(closure);
return;
}
TY_PEER_CON_ON_ICE_CANDIDATE => Event::PeerConICECandidate {
Expand Down Expand Up @@ -356,7 +356,7 @@ impl Api {
closure(evt);

// need to forget it every time, otherwise drop will run
Box::into_raw(closure);
let _ = Box::into_raw(closure);
}

let cb: DynCb = Box::new(Arc::new(cb));
Expand Down

0 comments on commit 13fb23c

Please sign in to comment.