mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Remove some unused arguments.
The change to the unit test is necessary because the resource thread is not resilient against either of these Senders being dropped while the resource thread is running. Before this change, it held clones of those senders itself (public_setup_chan_clone, private_setup_chan_clone).
This commit is contained in:
parent
69f856486a
commit
761524c01b
2 changed files with 7 additions and 14 deletions
|
@ -20,7 +20,7 @@ fn ip(s: &str) -> IpAddr {
|
|||
fn test_exit() {
|
||||
let (tx, _rx) = ipc::channel().unwrap();
|
||||
let (sender, receiver) = ipc::channel().unwrap();
|
||||
let (resource_thread, _) = new_core_resource_thread(
|
||||
let (resource_thread, _private_resource_thread) = new_core_resource_thread(
|
||||
"".into(), None, ProfilerChan(tx), None);
|
||||
resource_thread.send(CoreResourceMsg::Exit(sender)).unwrap();
|
||||
receiver.recv().unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue