Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
matthme committed Nov 11, 2024
1 parent 26de8be commit 5c768be
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 5c768be

Please sign in to comment.